Skip to content

Commit 690f490

Browse files
committed
fixed mz calc with n_term mod
1 parent 64aae2d commit 690f490

File tree

4 files changed

+2130
-1
lines changed

4 files changed

+2130
-1
lines changed

spectrum_fundamentals/fragments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def initialize_peaks(
181181

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

0 commit comments

Comments
 (0)