getmd: Import data and return the annotated matrix for GC/LC-MS by...

View source: R/general.R

getmdR Documentation

Import data and return the annotated matrix for GC/LC-MS by m/z range and retention time

Description

Import data and return the annotated matrix for GC/LC-MS by m/z range and retention time

Usage

getmd(data, mzstep = 0.1, mzrange = FALSE, rtrange = FALSE)

Arguments

data

file type which xcmsRaw could handle

mzstep

the m/z step for generating matrix data from raw mass spectral data

mzrange

vector range of the m/z, default all

rtrange

vector range of the retention time, default all

Value

matrix with the row as increasing m/z second and column as increasing scantime

Examples

## Not run: 
library(faahKO)
cdfpath <- system.file('cdf', package = 'faahKO')
cdffiles <- list.files(cdfpath, recursive = TRUE, full.names = TRUE)
matrix <- getmd(cdffiles[1])

## End(Not run)

yufree/enviGCMS documentation built on Sept. 12, 2023, 6:34 p.m.