Skip to content

Commit

Permalink
Merge pull request #134 from wilhelm-lab/fix/mz_calc_with_n_term_mod
Browse files Browse the repository at this point in the history
fixed mz calc with n_term mod
  • Loading branch information
picciama authored Aug 12, 2024
2 parents 1fcf236 + 12584db commit 9a8c0ae
Show file tree
Hide file tree
Showing 4 changed files with 2,133 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 @@ -175,7 +175,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 9a8c0ae

Please sign in to comment.