Pwiz Free Parsing for Selective Reaction Monitoring (SRM) Mass Spectrometry (MS) .mzML Files
q3ML
can de installed directly from GitHub using the remotes
packages
remotes::install_github('wilsontom/q3ML')
The package documentation can be browsed online at https://wilsontom/github.io/q3ML.
For mzML files that have been converted using msconvert pwiz Version 3.0.2000 or lower, then mzR
should be used to open the files.
library(q3ML)
<- list.files(system.file('extdata', package = 'q3ML'),
mzml_files full.names = TRUE)
<- openFile(mzml_files[1])
Pwiz_301 ! Use mzR for files converted with pwiz version <= 3.0.2000
<- mzR::openMSfile(mzml_files[1])
Pwiz_301
> Pwiz_V3_01
Mass Spectrometry file handle.: QC01_pwiz3_0_1.mzML
Filename: 0 Number of scans
For .mzML files which have been created using msconvert pwiz Version > 3.0.2 then q3ML
can be used to parse the file, if mzR
throws an error.
<- mzR::openMSfile(mzml_files[2])
Pwiz_V3_02
: Can not open file /home/R/x86_64-pc-linux-gnu-library/4.1/q3ML/extdata/QC01_pwiz3_0_2.mzML!
Error: Error in pwizModule$open(filename): [IO::HandlerBinaryDataArray] Unknown binary data type.
Original error was
<- openFile(mzml_files[2])
Pwiz_V3_02
identical(Pwiz_V3_02$header,mzR::chromatogramHeader(Pwiz_V3_01))
1] TRUE
[
identical(Pwiz_V3_02$peaks,mzR::chromatograms(Pwiz_V3_01))
1] TRUE [