Use mzdata::mz_read, adding support for gzipped MGF and mzML, and for Thermo raw and mzMLb#1
Merged
Use mzdata::mz_read, adding support for gzipped MGF and mzML, and for Thermo raw and mzMLb#1
mzdata::mz_read, adding support for gzipped MGF and mzML, and for Thermo raw and mzMLb#1Conversation
This add support for gziped files, without the need for us to implement it.
This should add support for gzipped files, MzMLb and Thermo raw files.
This was referenced Aug 23, 2024
The main issue for a fresh build (for some reason I didn't have an issue locally before removing my target directory) seems to be mzpeaks, but there is little reason not to update both.
RalfG
requested changes
Aug 28, 2024
Note that this feauture needs to be called thermorawfilereader. mzdata's feature is called thermo, but the checks, including the one in the `mz_read` macro tests for thermorawfilereader. The feature here needs to match the one tested for in the macro, otherwise rawfiles are detected as a file type, but the macro still wouldn't support it.
83d6018 to
45d89ca
Compare
This leaves us with 1 test failure: in our test MGF, PEPMASS is preceded by CHARGE. mzdata now parses the charge, but implicitly assumes there is a PEPMASS first. When that isn't the case, there is no precursor ion to assign the charge value to, resulting in a failure of our unit test.
Work around the bug in mzdata for now, but it might be interesting to, once we upgrade the version of mzdata, to add a test for this.
RalfG
approved these changes
Oct 24, 2024
mzdata::mz_read, adding support for gzipped MGF and mzML, and for Thermo raw and mzMLb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use
mzdata::mz_readto read non-bruker files, and adapting the filetype logic accordingly. This adds support for gzipped MGFs and MzMLs, and (untested) for raw files and MzMLb.