Skip to content

Commit

Permalink
fixed mz calc with n_term mod
Browse files Browse the repository at this point in the history
  • Loading branch information
picciama committed Aug 12, 2024
1 parent 64aae2d commit 690f490
Show file tree
Hide file tree
Showing 4 changed files with 2,130 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spectrum_fundamentals/fragments.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def initialize_peaks(

if modification_deltas: # there were modifictions
sequence = internal_without_mods([sequence])[0]
n_term_delta = modification_deltas.get(-2, 0.0)
n_term_delta = modification_deltas.pop(-2, 0.0) # directly pop it to avoid readding it later
if n_term_delta != 0:
n_term_mod = 2
# add n_term mass to first aa for easy processing in the following calculation
Expand Down
Loading

0 comments on commit 690f490

Please sign in to comment.