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

Put those mods back where they came from or so help me #827

Merged
merged 24 commits into from
Jan 22, 2025

Conversation

nbollis
Copy link
Member

@nbollis nbollis commented Jan 21, 2025

My last PR made an incorrect assumption: modification localization restriction "peptide N-terminal" is meant to refer to ANY N-term, not just those that are generated during digestion.

In the last digestion PR, I made peptide N-terminal mod and N-terminal modification localization mutually exclusive.
This incorrect change results in no isobaric quantification labels being added to the peptide which contains the protein terminus.

The only integration test failing is due to the calibration change. This PR is safe

Changes

  • DigestionProduct.cs: Ensured correct application and management of protease-associated and terminal modifications. By maintining current overwriting behavior, but ensuring that protein n-term overwrites peptide and not the other way around when applicable.
  • ModificationLocalization.cs: "Peptide N-terminal." mods are now valid on ALL N-termini.
  • TestProteinDigestion.cs: Updated and added test cases to reflect new terminal modification logic.
  • TestDigestion.cs: Adjusted tests for expected digestion products and sequences with terminal modifications.

nbollis and others added 24 commits January 26, 2022 08:39
Me - 0
Improved logic in `DigestionProduct.cs` to ensure correct application of N-terminal and C-terminal modifications to biopolymers, preventing overwriting unless the new modification is more specific.

Updated assertions and modification order in test cases to reflect changes, enhancing accuracy and robustness of the digestion process.
@nbollis nbollis added the bug label Jan 21, 2025
Copy link

codecov bot commented Jan 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.76%. Comparing base (e33a478) to head (73c3eac).
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #827      +/-   ##
==========================================
+ Coverage   77.75%   77.76%   +0.01%     
==========================================
  Files         230      230              
  Lines       34144    34166      +22     
  Branches     3534     3540       +6     
==========================================
+ Hits        26547    26569      +22     
  Misses       6991     6991              
  Partials      606      606              
Files with missing lines Coverage Δ
mzLib/Omics/Digestion/DigestionProduct.cs 96.61% <100.00%> (+0.38%) ⬆️
...ib/Omics/Modifications/ModificationLocalization.cs 97.87% <100.00%> (-0.09%) ⬇️

@nbollis nbollis marked this pull request as ready for review January 21, 2025 22:50
@Alexander-Sol
Copy link
Contributor

Does this only apply to the behaviour of fixed mods? If you have peptide-N-term and protein-N-term variable mods, does one take precedence?

@nbollis nbollis changed the title Put those mods back on the termini Put those mods back where they came from or so help me Jan 22, 2025
@nbollis nbollis merged commit de68239 into smith-chem-wisc:master Jan 22, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants