R/general.R
getmd.Rd
Import data and return the annotated matrix for GC/LC-MS by m/z range and retention time
getmd(data, mzstep = 0.1, mzrange = FALSE, rtrange = FALSE)
file type which xcmsRaw could handle
the m/z step for generating matrix data from raw mass spectral data
vector range of the m/z, default all
vector range of the retention time, default all
matrix with the row as increasing m/z second and column as increasing scantime
if (FALSE) {
library(faahKO)
cdfpath <- system.file('cdf', package = 'faahKO')
cdffiles <- list.files(cdfpath, recursive = TRUE, full.names = TRUE)
matrix <- getmd(cdffiles[1])
}