create.MAF | R Documentation |
MAF files combine the metabolite abundance matrix, the spectral data like m/z and retention time, and the metabolite names, structures and database identifiers.
create.MAF(assaytype = "LCMS", nrow = NULL, abundances = NULL)
assaytype |
Currently unused, but would be used for different MAF files for NMR and MS |
nrow |
Create the MAF with nrow empty rows. |
abundances |
is a data frame or matrix with the metabolite abundances, intensities or concentrations. |
If an abundance matrix is given, the the generated MAF will have as many (empty) spectral and identification metadata rows as abundance rows, joined to the provided abundance matrix.
nrow and abundances should be mutually exclusive, but that is not yet tested.
maf <- create.MAF(nrow=17)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.