Description Usage Arguments Value Author(s) Examples
View source: R/functions-mgf.R
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()
.
1 | 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
1 2 3 4 | fls <- dir(system.file("extdata", package = "MsBackendMgf"),
full.names = TRUE, pattern = "mgf$")[1L]
readMgf(fls)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.