feat: add topic version emission to quant-related modules#10931
Merged
pinin4fjords merged 1 commit intomasterfrom Mar 17, 2026
Merged
feat: add topic version emission to quant-related modules#10931pinin4fjords merged 1 commit intomasterfrom
pinin4fjords merged 1 commit intomasterfrom
Conversation
Convert custom/tx2gene, tximeta/tximport, and summarizedexperiment/summarizedexperiment to emit versions via topic channels, enabling automatic version collection in downstream subworkflows. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
maxulysse
approved these changes
Mar 17, 2026
maxulysse
reviewed
Mar 17, 2026
| output: | ||
| tuple val(meta), path("*tx2gene.tsv"), emit: tx2gene | ||
| path "versions.yml" , emit: versions | ||
| path "versions.yml" , emit: versions, topic: versions |
Member
There was a problem hiding this comment.
Suggested change
| path "versions.yml" , emit: versions, topic: versions | |
| path "versions.yml" , emit: versions_tx2gene, topic: versions |
maxulysse
approved these changes
Mar 17, 2026
Member
maxulysse
left a comment
There was a problem hiding this comment.
Nevermind, we agreed on a decision.
So versions.yml emitted via template are sent to the versions topics and emitted via versions only.
Member
Author
|
Thanks @maxulysse ! |
pinin4fjords
added a commit
that referenced
this pull request
Mar 17, 2026
…view issues - Remove ch_versions collection and versions emit from all three quant subworkflows (versions now handled via topic channels from #10931) - Remove `def` keyword from channel variable declarations for consistency - Add comment explaining why .first() is safe for tx2gene discovery Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2 tasks
pinin4fjords
added a commit
to pinin4fjords/nf-core-modules
that referenced
this pull request
Mar 17, 2026
Add an optional skip_merge boolean input to quant_tximport_summarizedexperiment, quantify_pseudo_alignment, and quantify_rsem. When true: - tximport runs per-sample (preserving input meta) instead of collecting all - SummarizedExperiment creation is skipped - RSEM merge counts are skipped (quantify_rsem only) When false (default), behavior is identical to before. Additional improvements made alongside this feature: - CUSTOM_TX2GENE now uses .first() unconditionally for transcript ID discovery, since it only ever reads one sample's files. This assumes all samples were quantified against the same transcriptome (documented in meta.yml). If mixed-transcriptome support is needed in future, tx2gene would need to run independently per sample. - Version collection removed from all three subworkflows. The underlying modules now emit via topic channels (nf-core#10931), so manual ch_versions plumbing is no longer needed. Used by nf-core/rnaseq --skip_quantification_merge (nf-core/rnaseq#1744). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
5 tasks
github-merge-queue bot
pushed a commit
that referenced
this pull request
Mar 17, 2026
#10928) Add an optional skip_merge boolean input to quant_tximport_summarizedexperiment, quantify_pseudo_alignment, and quantify_rsem. When true: - tximport runs per-sample (preserving input meta) instead of collecting all - SummarizedExperiment creation is skipped - RSEM merge counts are skipped (quantify_rsem only) When false (default), behavior is identical to before. Additional improvements made alongside this feature: - CUSTOM_TX2GENE now uses .first() unconditionally for transcript ID discovery, since it only ever reads one sample's files. This assumes all samples were quantified against the same transcriptome (documented in meta.yml). If mixed-transcriptome support is needed in future, tx2gene would need to run independently per sample. - Version collection removed from all three subworkflows. The underlying modules now emit via topic channels (#10931), so manual ch_versions plumbing is no longer needed. Used by nf-core/rnaseq --skip_quantification_merge (nf-core/rnaseq#1744). Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
custom/tx2gene,tximeta/tximport, andsummarizedexperiment/summarizedexperimentto emit versions viatopic: versionschannelstopicssection and updated version output descriptionsThis enables downstream subworkflows (e.g.
quant_tximport_summarizedexperiment) to collect versions automatically via topic channels instead of manualch_versions.mix(), which is needed for conditional execution paths like #10928.Follows the pattern I observed in #10873 for templated modules.
Test plan
process.out.versionsstill works in tests (emit is preserved alongside topic)🤖 Generated with Claude Code