fix(orftable_fasta_gtf_buildorfcatalogue): keep meta.id as the true sample id - #12896
Merged
pinin4fjords merged 5 commits intoSep 8, 2026
Merged
Conversation
4 tasks
Missed pushing this from the VM verification run earlier - the code fix was correct but the committed snapshot still had the old (sample1.ribotish/sample1.ribocode) sample_id content hash.
luisas
approved these changes
Sep 8, 2026
ext.prefix/ext.args config closures see every declared process input by name, not just meta - confirmed empirically. No need to duplicate caller into meta just to reach it from config.
pinin4fjords
added a commit
to nf-core/riboseq
that referenced
this pull request
Sep 8, 2026
…orfcatalogue Drop meta.caller, reference caller directly in ext.prefix - config closures see every declared process input by name, not just meta. Matches nf-core/modules#12896 after reviewer feedback. Output is byte-identical, no snapshot changes needed.
pinin4fjords
added a commit
to nf-core/riboseq
that referenced
this pull request
Sep 8, 2026
…mits fastq_qc_trim_filter_setstrandedness -> 0853b48c (nf-core/modules#12895) orftable_fasta_gtf_buildorfcatalogue -> 7baf88e0 (nf-core/modules#12896) Both PRs are merged. Synced modules.json and the two changed files to their exact merge-commit content (not current master HEAD, to avoid pulling in unrelated later changes). orftable_fasta_gtf_buildorfcatalogue was already byte-identical (riboseq's copy already matched). Resolves the check_local_copy lint failures that were expected pending these merges.
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
ORFTABLE_FASTA_GTF_BUILDORFCATALOGUEdisambiguatesCUSTOM_ORFNORMALISE's output filenames per caller by appending the caller name tometa.id("${meta.id}.${caller}") before calling the module. ButCUSTOM_ORFNORMALISEwritesmeta.idstraight through into each row'ssample_idcolumn, andCUSTOM_ORFMERGE's consensus view counts distinctsample_ids forn_samples/--min-samplesfiltering. So an ORF called by two different callers on the same sample gets counted as two samples, not one — corrupting the publishedn_samples/samplescatalogue columns, and the--min-samplesconsensus filter for anyone raising it above the default of 1.The subworkflow's own doc comment already states the intended contract ("caller id carried as a per-record val (not in meta)") — the code just didn't follow it.
What changed
ch_normalise_innow setsmeta.callerinstead of mutatingmeta.id.ext.prefixoverride in this subworkflow's ownnextflow.config("${meta.id}.${meta.caller}.normalised") to keep output filenames byte-identical to before, following the exact convention already established incustom/orfmerge's own test fixture (tests/setup_prefix.config).No test changes needed — the existing
ribotish + ribocodetest already exercises two callers on the same sample id (sample1), and its snapshot now correctly showssample_id = sample1(wassample1.ribotish/sample1.ribocode).Found while reviewing nf-core/riboseq's v2.0.0 release PR, which vendors this subworkflow.