Skip to content

Check terminal modification positions in the Sage reader - #474

Open
pjhartout wants to merge 1 commit into
MannLabs:mainfrom
pjhartout:fix/sage-modification-sites
Open

pjhartout wants to merge 1 commit into
MannLabs:mainfrom
pjhartout:fix/sage-modification-sites

Conversation

@pjhartout

@pjhartout pjhartout commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

For the Sage peptide AM[-29.992805]GM[-29.992805], AlphaBase should report an unnamed -29.992805 Da shift at site 2 and Met->Hse@M^Any_C-term at site 4. The previous reader assigned the C-terminal name to both methionines. The methionine at site 2 is followed by glycine, while the methionine at site 4 ends the peptide.

mods mod_sites aa_mass_diffs aa_mass_diff_sites
Met->Hse@M^Any_C-term 4 -29.992805 2

AlphaBase's existing precursor hashes use named modifications. Two PSMs differing only in numeric shifts can therefore share a hash.

Observed cases

For each scan below, the table shows the peptide that Sage scored highest when reanalyzing the raw files deposited in PRIDE. The last column shows where the previous AlphaBase reader assigned Met->Hse@M^Any_C-term. PRIDE project PXD015889

Raw file Scan Charge Peptide reported by Sage Sites given the C-terminal name
63_3.raw 25706 2+ FIAM[-29.992805]GYVDDTQFVR M4
62_1.raw 31875 2+ AM[+57.021465]GIM[-29.992805]N[+0.984016]SFVNDIFER M5
67_1.raw 24992 3+ AM[-29.992805]GIM[-29.992805]N[+0.984016]SFVNDIFER M2 and M5

All three peptides end in arginine. The updated reader retains the observed -29.992805 Da shift at each listed methionine.

Test coverage

The Sage integration test now covers terminal modification placement in single-file and multi-file imports.

@pjhartout pjhartout changed the title Fix Sage modification assignments at peptide termini Check terminal modification positions in the Sage reader Nov 18, 2026
@pjhartout
pjhartout force-pushed the fix/sage-modification-sites branch 3 times, most recently from 0c9c731 to 65d9321 Compare November 18, 2026 16:10
@pjhartout
pjhartout marked this pull request as ready for review November 18, 2026 17:57
@pjhartout
pjhartout force-pushed the fix/sage-modification-sites branch from 65d9321 to 3dba41d Compare November 18, 2026 18:00

This branch has not been deployed

No deployments
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