Skip to content

Use mzdata::mz_read, adding support for gzipped MGF and mzML, and for Thermo raw and mzMLb#1

Merged
RalfG merged 16 commits intomainfrom
feature/gzip
Oct 24, 2024
Merged

Use mzdata::mz_read, adding support for gzipped MGF and mzML, and for Thermo raw and mzMLb#1
RalfG merged 16 commits intomainfrom
feature/gzip

Conversation

@paretje
Copy link
Copy Markdown
Contributor

@paretje paretje commented Aug 13, 2024

Usemzdata::mz_read to 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.

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.
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.
Comment thread src/parse_mzdata.rs Outdated
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.
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.
@paretje paretje requested a review from RalfG October 24, 2024 11:54
@RalfG RalfG changed the title use mzdata::mz_read Use mzdata::mz_read, adding support for gzipped MGF and mzML, and for Thermo raw and mzMLb Oct 24, 2024
@RalfG RalfG merged commit 2aa2f4b into main Oct 24, 2024
@RalfG RalfG deleted the feature/gzip branch October 24, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants