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

Edited the MatchedFramgentIon Equals method #751

Merged
merged 7 commits into from
Feb 12, 2024

Conversation

Alexander-Sol
Copy link
Contributor

Previously, the MatchedFragmentIon.Equals method used a naive check (==) when comparing mz and intensity of two fragment ions.

This causes issues when comparing ions that are equivalent, but were converted to string and then back to ion objects, because of how double comparison works. For example, comparing ions between an equivalent PSM and PsmFromTsv would show that the ions weren't equal, due to very small differences in the intensity/mz values.

Copy link

codecov bot commented Dec 12, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (c7bdfc1) 75.05% compared to head (fb153f5) 75.05%.
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #751      +/-   ##
==========================================
- Coverage   75.05%   75.05%   -0.01%     
==========================================
  Files         189      189              
  Lines       30227    30235       +8     
  Branches     3033     3035       +2     
==========================================
+ Hits        22687    22693       +6     
  Misses       7028     7028              
- Partials      512      514       +2     
Files Coverage Δ
mzLib/FlashLFQ/ChromatographicPeak.cs 87.89% <50.00%> (-0.49%) ⬇️
mzLib/Omics/Fragmentation/MatchedFragmentIon.cs 95.83% <90.00%> (-1.79%) ⬇️

trishorts
trishorts previously approved these changes Dec 12, 2023
nbollis
nbollis previously approved these changes Dec 12, 2023
@Alexander-Sol Alexander-Sol dismissed stale reviews from nbollis and trishorts via ac3b2b1 January 2, 2024 23:45
trishorts
trishorts previously approved these changes Jan 3, 2024
nbollis
nbollis previously approved these changes Jan 3, 2024
YulingDai
YulingDai previously approved these changes Jan 11, 2024
@nbollis nbollis dismissed stale reviews from YulingDai, trishorts, and themself via 5015608 February 2, 2024 17:35
@trishorts trishorts merged commit 4790e3e into smith-chem-wisc:master Feb 12, 2024
1 check 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.

4 participants