View source: R/functions-msp.R
readMsp | R Documentation |
The readMsp
function imports the data from a file in MGF format reading
all specified fields and returning the data as a DataFrame()
.
readMsp(f, msLevel = 2L, mapping = spectraVariableMapping(MsBackendMsp()), ...)
f |
|
msLevel |
|
mapping |
named |
... |
Additional parameters, currently ignored. |
A DataFrame
with each row containing the data from one spectrum
in the MSP file. m/z and intensity values are available in columns "mz"
and "intensity"
in a list representation.
Laurent Gatto, Steffen Neumann, Johannes Rainer
fls <- dir(system.file("extdata", package = "MsBackendMsp"),
full.names = TRUE, pattern = "msp$")[1L]
readMsp(fls)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.