-
Notifications
You must be signed in to change notification settings - Fork 46
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
#1 - Update Mzlib to 1.0.547 (Omics Update) #2334
Conversation
…into mzlibUpdate
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2334 +/- ##
==========================================
- Coverage 92.68% 92.65% -0.03%
==========================================
Files 136 137 +1
Lines 21302 21274 -28
Branches 2924 2928 +4
==========================================
- Hits 19744 19712 -32
+ Misses 1086 1083 -3
- Partials 472 479 +7
|
@@ -258,9 +260,19 @@ private void AddInteriorTerminalModsToPrecursorIndex(List<int>[] precursorIndex, | |||
foreach (KeyValuePair<int, List<Modification>> relevantDatabaseMod in databaseAnnotatedMods) | |||
{ | |||
int fragmentNumber = relevantDatabaseMod.Key; | |||
Product fragmentAtIndex = fragmentMasses.Where(x => x.FragmentNumber == fragmentNumber).FirstOrDefault(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the previous version, default Proudct would produce an a1 product with a mass of 0.0
@@ -162,7 +163,7 @@ public static List<MatchedFragmentIon> MatchFragmentIons(Ms2ScanWithSpecificMass | |||
|
|||
if (commonParameters.ProductMassTolerance.Within(scan.TheScan.MassSpectrum.XArray[closestMzIndex], theoreticalFragmentMz)) | |||
{ | |||
matchedFragmentIons.Add(new MatchedFragmentIon(ref product, theoreticalFragmentMz, scan.TheScan.MassSpectrum.YArray[closestMzIndex], 1)); | |||
matchedFragmentIons.Add(new MatchedFragmentIon(product, theoreticalFragmentMz, scan.TheScan.MassSpectrum.YArray[closestMzIndex], 1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
explain the elimination of the ref keyword
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. please add an explanation to the PR description about why the ref keyword left the building
* reverted filtering method for psms passed to FlashLFQ * refactor glycospsmwriter and split from xlwriter * fix unit tests * rename N and O glyco test classes * refactor is patially working * files written to correct directory * now with glyco protein parsimony and writing all quantified proteins * nglycoBugged * n glyco output is correct now i think * yo * fix unit tests * fix more unit tests * dont need glyco stuff in writexl anymore * n glyco individual file unit test --------- Co-authored-by: Alex <AlexSolivais@gmail.com> Co-authored-by: MICHAEL SHORTREED <mrshortreed@wisc.edu>
A vast majority of the files changed is just changing using statements at the top. The rest are noted below
IndexingEngine.cs
-- Default product no longer exists, instread changed to code to check for null
Tweaked TomlConfig to ignore new fields in DigestionParams, enabling old toml's to be read in and written
Changed many property names to match new Interfaces
MatchedFragmentIon constructor changed to exclude the ref on first parameter. This change was made due to the Product class changing from a struct, which is passed by value, to a class, which is automatically passed by reference.