Extracts data from mzML
files using parsers from either RaMS or mzR.
The RaMS parser (default) will only return data in tidy (long) format. The
mzR parser will return data in wide format. Currently the mzR-based parser
is configured to return only DAD data.
read_mzml(
path,
format_out = c("matrix", "data.frame", "data.table"),
data_format = c("long", "wide"),
parser = c("RaMS", "mzR"),
what = c("MS1", "MS2", "BPC", "TIC", "DAD", "chroms", "metadata", "everything"),
verbose = FALSE,
...
)
If RaMS
is selected, the function will return a list of "tidy"
data.table
objects. If mzR
is selected, the function will return a
chromatogram in matrix
or data.frame
format according to the
value of format_out
.
Path to .mzml
file.
Class of output. Only applies if mzR
is selected.
Either matrix
, data.frame
, or data.table
. RaMS
will return a list of data.tables regardless of what is selected here.
Whether to return data in wide
or long
format.
What parser to use. Either RaMS
or mzR
.
What types of data to return (argument to grabMSdata
.
Options include MS1
, MS2
, BPC
, TIC
, DAD
,
chroms
, metadata
, or everything
).
Argument to grabMSdata
controlling verbosity
.
Additional arguments to grabMSdata
.
Ethan Bass