docs(orfnormalise): correct the GTF contract for rpbp and price - #12453
Open
pinin4fjords wants to merge 2 commits into
Open
docs(orfnormalise): correct the GTF contract for rpbp and price#12453pinin4fjords wants to merge 2 commits into
pinin4fjords wants to merge 2 commits into
Conversation
Both resolve gene_id from the ORF's transcript id through the supplied annotation, so the GTF is not unused for them and an empty one is not acceptable: price falls back to its Gene column, which concatenates every gene the ORF's genomic span overlaps. State the requirement that the annotation be a superset of what each caller was run against, in the module and in the orftable_fasta_gtf_buildorfcatalogue subworkflow that passes it through.
mashehu
reviewed
Jul 28, 2026
mashehu
left a comment
Contributor
There was a problem hiding this comment.
since it's docs only, can you please try to write them in your own words?
Comment on lines
+148
to
+157
| Annotation GTF. Every caller draws on it: ribocode requires it | ||
| (transcript-relative coordinates → genomic lift), ribotish and | ||
| ribotricer use it for multi-exon block recovery (from GenomePos | ||
| and the ORF_ID span respectively), and rpbp and price resolve | ||
| `gene_id` from the ORF's transcript id through it. Supply the | ||
| annotation the caller was run against, or a superset of it: a | ||
| transcript missing here cannot be resolved, and price then falls | ||
| back to its `Gene` column, which concatenates every gene the | ||
| ORF's genomic span overlaps. Passing `[ [:], [] ]` loses | ||
| multi-exon structure and, for rpbp and price, `gene_id`. |
Contributor
There was a problem hiding this comment.
can you please rewrite this in your own words, feels like marketing speak
pinin4fjords
enabled auto-merge
July 28, 2026 14:37
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.
Doc-only.
custom/orfnormalise'sgtfinput is documented as unused forrpbpandprice, with[ [:], [] ]offered as acceptable when the caller subset excludesribocodeandribotish. Neither holds:parse_rpbpresolvesgene_idastranscripts[tid].gene_id, so with no GTF every rpbp row gets an emptygene_id.parse_priceresolvesgene_idfrom the transcript id in theIdcolumn (fix(custom/orfnormalise): resolve PRICE gene ids from the annotation #12436), falling back to PRICE'sGenecolumn, which concatenates every gene the ORF's genomic span overlaps. With no GTF, every price row degrades to that compound value, which joins against nothing downstream.There is also an unstated requirement worth writing down: the annotation has to be a superset of the one each caller was run against. A transcript absent from it cannot be resolved, and a pipeline that hands the normaliser a narrower annotation than its callers used (a one-transcript-per-gene backbone, say) silently loses gene ids for ORFs on the isoforms it dropped.
Corrected in the module's
meta.ymland in theorftable_fasta_gtf_buildorfcataloguesubworkflow that passes the GTF through (meta.ymland thetake:comment), which carried the same claim.No behaviour change.
nf-core modules lint custom/orfnormaliseandnf-core subworkflows lint orftable_fasta_gtf_buildorfcataloguepass (the two module warnings are pre-existing container-version notes).🤖 Generated with Claude Code