Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed mz calc with n_term mod #134

Merged
merged 2 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading