Skip to content

Novel allele and genotype#443

Merged
ggabernet merged 31 commits into
nf-core:novel-allele-and-genotypefrom
ayeletperes:novel-allele-and-genotype
Feb 10, 2026
Merged

Novel allele and genotype#443
ggabernet merged 31 commits into
nf-core:novel-allele-and-genotypefrom
ayeletperes:novel-allele-and-genotype

Conversation

@ayeletperes

Copy link
Copy Markdown
Contributor

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/airrflow branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

…CLONAL_ANALYSIS` subworkflow, feeding its repertoire output into genotype inference.
…teps, and update `enchantr`'s `outputby` parameter to `cloneby`.
…AND_GENOTYPE` and update its conditional execution logic.
…yping is enabled and add `skip_clonal_analysis` to test configuration.
… `repertoire` output channel name to `repertoires` in `novel_alleles_and_genotyping`.
…g samplesheet collection and update test configurations.
…l allele and Bayesian genotype inference modules.
…ata and adjust `novel_alleles_and_genotyping` subworkflow data flow accordingly.
… perform clonal analysis before Bayesian genotype inference and correct a log file path.
…e` to use `species='auto'` and fix log output path for the latter.

@ggabernet ggabernet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some comments but otherwise looks good to me!

// infer clones (gets the reference from novel alleles inference in any case)

if (params.single_clone_representative) {
CLONAL_ANALYSIS(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ok for now if i works, however we'll change this and use here only the process that actually infers clones.

There is also a process missing (probably a separate enchantR report again that selects one representative per clone. Or we could update the existing clonal inference notebook to add an optional param to select one representative per clone so it doesn't need a separate Rmd script.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the one representative per clone is within the genotype inference report. If the user want to use all the sequences regardless of the clones, then there is no need to infer them at all.

ch_validated_samplesheet.collect()
ch_for_genotyping,
ch_for_reference,
[]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is not needed can the input channel be removed from the process?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

REASSIGN_ALLELES_NOVEL (
ch_grouped_repertoires,
NOVEL_ALLELE_INFERENCE.out.reference,
[],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this channel be removed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

NOVEL_ALLELE_INFERENCE (
ch_grouped_repertoires,
ch_reference_fasta,
[]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this channel be removed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

BAYESIAN_GENOTYPE_INFERENCE.out.reference,
ch_validated_samplesheet.collect(),
"segments" //TODO: update this to pass actual segments.
[],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be removed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

… parameter and remove `repertoires_samplesheet` input from enchantr modules.
@nf-core-bot

Copy link
Copy Markdown
Member

Warning

Newer version of the nf-core template is available.

Your pipeline is using an old version of the nf-core template: 3.5.1.
Please update your pipeline to the latest version.

For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation.

…nce FASTA within the main data tuple and introduce an `outputby` parameter for allele reassignment.
@ggabernet

Copy link
Copy Markdown
Member

Great, thank you @ayeletperes I'll be merging this PR and we can continue the development in follow-up PRs.

@ggabernet ggabernet merged commit 0ed5dde into nf-core:novel-allele-and-genotype Feb 10, 2026
10 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants