Skip to content

Commit 9a8c0ae

Browse files
authored
Merge pull request #134 from wilhelm-lab/fix/mz_calc_with_n_term_mod
fixed mz calc with n_term mod
2 parents 1fcf236 + 12584db commit 9a8c0ae

File tree

4 files changed

+2133
-1
lines changed

4 files changed

+2133
-1
lines changed

spectrum_fundamentals/fragments.py

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

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

0 commit comments

Comments
 (0)