wilhelm-lab / spectrum_fundamentals

Fundamentals public repo
MIT License
8 stars 2 forks source link

fixed mz calc with n_term mod #134

Closed picciama closed 2 months ago

picciama commented 2 months ago

PR Checklist

Description of changes

Technical details

Instead of just adding a potential n-term mod mass to the first aa position before adding all other mod masses to the respecitve aa masses, the n-term mod mass is removed from the mod dictionary mapping the mod positions in the aa sequence to their mass. Since n-term mods are stored at position -2, this lead to y2-yn ions getting it added by mistake after calculating the cumsum.

Additional context