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

Description Usage Arguments Value Examples

View source: R/general.R

Description

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

Usage

1
getmd(data, mzstep = 0.1, mzrange = F, rtrange = F)

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

1
2
3
4
5
6
7
## 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)

enviGCMS documentation built on July 11, 2017, 1:03 a.m.