GC/LC-MS data analysis for environmental science
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
data
docs
inst
man
tests
vignettes
.Rbuildignore
.gitignore
.travis.yml
DESCRIPTION
NAMESPACE
NEWS.md
README.md
test.csv

README.md

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

  • get the mean and RSD of one sample for 5 technique replicate
# enviGCMS use functions in xcms to import the data, just type the path to your single sample
data1 <- getmd(‘sample1-1’)
data2 <- getmd(‘sample1-2’)
data3 <- getmd(‘sample1-3’)
data4 <- getmd(‘sample1-4’)
data5 <- getmd(‘sample1-5’)
  • get the mean
data <- (data1+data2+data3+data4+data5)/5
  • get the standard deviation
datasd <- sqrt(((data1-data)^2+(data2-data)^2+(data3-data)^2+(data4-data)^2+(data5-data)^2)/4)
  • get the RSD
databrsd <- datasd/data
  • plot the smooth scatter
plotsms(datarsd)
  • plot the heatmap
plotms(data)
  • plot the mz-rt scatter plot
plotmz(data)
  • plot the boundary model
findline(data)

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