Repository navigation
Prior tiers: knockoff q-values per substitution class and claim tier - #180
Merged
Merged
Conversation
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 58 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Every entry's origin now carries its source and a prior tier (sample, common, curated, catalogue). UniProt XML claims are curated (catalogue when only --uniprot-evidence any admits a variant), PEFF claims catalogue, and an annotation file row takes its tier from genotype, population_af, evidence and clinical_significance; merged equal claims keep the best tier. Knockoff q-values are estimated per substitution class within each tier; a class with fewer than 50 tested PSMs at the cutoff in a tier joins the class's other small tiers, and classes are never pooled together, so a one-tier run is stratified by class as before. The proteoform table gains source and prior_tier columns.
A variant peptide that a reference protein holds once I and L are taken as equal identifies that reference as much as the variant, but proteins are grouped by exact sequence, so it was reported as variant-specific. Before the class FDR, every variant-class target row that could be reported (real or knockoff alike) whose peptide a reference holds up to I/L now also names that reference.
ypriverol
force-pushed
the
feat/prior-tiers
branch
from
October 19, 2026 05:39
a3c7fe0 to
d2d911d
Compare
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.
Stacked on #178.
Claims of different reliability no longer share one error estimate. A sample's own variant calls, common polymorphisms, curated UniProt variants and catalogue entries each get their own knockoff estimate.
Change
sourceand a prior tier:sample,common,curatedorcatalogue.curated; a variant only--uniprot-evidence anyadmits iscatalogue.catalogue.genotype,population_af,evidenceandclinical_significance. The first rule that holds wins: the sample's own call, an allele frequency ≥ 0.01, curated evidence or a benign class, else catalogue.sourceandprior_tiercolumns. The run log names each stratum (other/sample,methyl-like/pooled, …).Validation
Setup: PXD022787 (four donors with known genotypes, TMT, 69 runs), searched against a FASTA of reviewed human UniProt plus an annotation file with UniProt's 83,472 single-residue variants.
Truth comes from the donor-haplotype tags of the deposited personal protein FASTA. At
--proteoform-fdr 0.05:Separate tiers recover half again as many carried variants and stay below the target, which one shared tier does not.
I/L sharing. The first run of this test showed 50 false variant PSMs. 42 of them were one tubulin variant, V→L, whose peptide spells tubulin alpha-1's
…VIDEVRas…VLDEVR. No spectrum tells I from L, but proteins are grouped by exact sequence, so the PSMs were reported as variant-specific. Before the class FDR, a variant-class row that could be reported, real or knockoff alike, whose peptide a reference protein holds up to I/L now also names that reference. Here that is 163 PSMs.Tests