-
Notifications
You must be signed in to change notification settings - Fork 152
IMS mzML import - memory map early and reduce memory overhead during import #1849
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
Conversation
last missing piece is the MobilityScanStorage
SteffenHeu
left a comment
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
mzmine-community/src/main/java/io/github/mzmine/datamodel/impl/MobilityScanStorage.java
Show resolved
Hide resolved
|
|
||
| description = descriptionTemplate + convertedScansAfterFilter; | ||
| } | ||
| if (mobilityType == MobilityType.TIMS && mobilities[0] - mobilities[1] < 0) { |
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.
i cant see where the mobilities[] comes from, but in tdf tims files there can be multiple mobility segements. I think for the parsing from mzml its fine if we have just one segment and add additional mobility scans to all frames
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.
This is the same logic like before just removed from the total loop and put outside of the loop
| return realMobilities; | ||
| } | ||
|
|
||
| private static boolean isExcludedWatersScan(final BuildingMzMLMobilityScan mzMLScan) { |
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.
what does this method match?
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.
Excludes waters frame I think.
| } | ||
|
|
||
| // apply mass detection to frames and mobility scans | ||
| // apply mass detection to frames NOT to mobility scans |
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.
should we also apply to mobility scans? that would reproduce the ims tdf import
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.
I changed the message and added more documentation to this.
Mass detection is done on mobility scans but not on frames because we do not have frames
No description provided.