Skip to content

Proteoform table: specific means no entry of any family explains the peptide - #211

Merged
ypriverol merged 1 commit into
mainfrom
fix/proteoform-global-specificity
Oct 21, 2026
Merged

ypriverol merged 1 commit into
mainfrom
fix/proteoform-global-specificity

Conversation

@ypriverol

Copy link
Copy Markdown
Contributor

In the proteoform table, a peptide is now specific to a member only when no entry of any protein family explains it.

Why

Specificity was decided within the peptide's own family. A variant peptide that another family's canonical protein also contains therefore counted as specific evidence for the variant. That covers paralogs, and sequences that are equal once I and L are taken as equal, which share_isobaric_references adds as a second protein. The variant row was listed as a proteoform although the peptide shows the other protein just as well.

These PSMs are classed as canonical, because one of their proteins is a reference entry, so they take the canonical cutoff and never meet the knockoff null. This is the PSM-level error #180 fixed for TUBA3C-type V→L variants. On EN-TEx before #180, the paralog cases were 42 of 50 false variant PSMs.

Change

  • proteoform_table.rs: a peptide is specific when it names one entry across all families. Otherwise it is shared: it shows the family, or families, it names, and lists no isoform, variant or chain member.
  • The module doc states the rule.

The family's own members keep their specific evidence. Canonical entries that share a peptide with another family's canonical entry now count it as shared, not specific.

Tests

  • New: a_variant_peptide_another_family_contains_is_not_specific. A variant peptide that another family's canonical also contains lists no variant row and is shared evidence for that protein; the family's own canonical keeps its specific peptides.
  • Suites: clippy is clean; the output proteoform tests and the andes suite pass (232), including the UniProt end-to-end tests.

…ily explains it

Specificity was decided within the peptide's own family, so a variant
peptide that another family's canonical protein also contains (a paralog,
or an I/L-equal sequence named by the isobaric sharing step) counted as
specific evidence for the variant. Such a row was listed as a proteoform
although the peptide shows the other protein just as well. A peptide is now
specific only when it names one entry across all families; the family's own
members keep their specific evidence.
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@coderabbitai

coderabbitai Bot commented Oct 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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 36 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4dd50ddf-5345-42e3-a321-3df539ef1e7e
📥 Commits

Reviewing files that changed from the base of the PR and between 8c587fd and 63777b7.

📒 Files selected for processing: 1
  • crates/output/src/proteoform_table.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ypriverol
ypriverol merged commit 4b3a23d into main Oct 21, 2026
5 checks passed
@ypriverol
ypriverol deleted the fix/proteoform-global-specificity branch November 4, 2026 07:38
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.

1 participant