readMgf {MsBackendMgf} | R Documentation |
readMgf
function imports the data from a file in MGF format reading
all specified fields and returning the data as a DataFrame()
.Reading MGF files
The readMgf
function imports the data from a file in MGF format reading
all specified fields and returning the data as a DataFrame()
.
readMgf(f, msLevel = 2L, mapping = spectraVariableMapping(), ...)
f |
|
msLevel |
|
mapping |
named |
... |
Additional parameters, currently ignored. |
A DataFrame
with each row containing the data from one spectrum
in the MGF file. m/z and intensity values are available in columns "mz"
and "intensity"
in a list representation.
Laurent Gatto, Johannes Rainer
fls <- dir(system.file("extdata", package = "MsBackendMgf"), full.names = TRUE, pattern = "mgf$")[1L] readMgf(fls)