enviGCMS: GC-MS Data Analysis for Environmental Science

CRAN status Download counter Project Status: Active - The project has reached a stable, usable state and is being actively developed. Build status

enviGCMS provides functions for GC/LC-MS data analysis for environmental sciences.

Installation

You can either use the stable version of enviGCMS from CRAN,

install.packages("enviGCMS")

or the current development snapshot from this GitHub repository:

devtools::install_github("yufree/enviGCMS")

Usage

# enviGCMS use functions in xcms to import the data, just type the path to your single sample
data1 <- enviGCMS:::getmd(‘sample1-1’)
data2 <- enviGCMS:::getmd(‘sample1-2’)
data3 <- enviGCMS:::getmd(‘sample1-3’)
data4 <- enviGCMS:::getmd(‘sample1-4’)
data5 <- enviGCMS:::getmd(‘sample1-5’)
data <- (data1+data2+data3+data4+data5)/5
datasd <- sqrt(((data1-data)^2+(data2-data)^2+(data3-data)^2+(data4-data)^2+(data5-data)^2)/4)
databrsd <- datasd/data
plotsms(datarsd)
plotms(data)
plotmz(data)
findline(data)

Detailed usage of those functions in Environmental analysis could be found in this paper and the vignettes in this package.