Learn R Programming

⚠️There's a newer version (0.8.0) of this package.Take me there.

enviGCMS: GC-MS Data Analysis for Environmental Science

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.

Copy Link

Version

Install

install.packages('enviGCMS')

Monthly Downloads

492

Version

0.5.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Miao YU

Last Published

April 25th, 2018

Functions in enviGCMS (0.5.0)

Integration

Just intergrate data according to fixed rt and fixed noise area
getfeaturesanova

Get the features from anova, with p value, q value, rsd and power restriction
getupload

Get the csv files to be submitted to Metaboanalyst
getimputation

Impute the peaks list data
getareastd

Get the peak information from SCCPs standards
getmassdefect

Get mass defect with certain scaled factor
getupload2

Get the csv files to be submitted to Metaboanalyst
getbgremove

Get the peak list with blank samples' peaks removed
findline

find line of the regression model for GC-MS
enviGCMS-deprecated

Deprecated functions in package enviGCMS.
plotmsrt

Plot EIC of certain m/z and return dataframe for intergration
getfeaturest

Get the features from t test, with p value, q value, rsd and power restriction
batch

Get the MIR and related information from the files
cbmd

Combine two data with similar retention time while different mass range
getbiotechrep

Get the report for biological replicates.
plotmz

plot GC/LC-MS data as scatter plot
svacor

Surrogate variable analysis(SVA) to correct the unknown batch effects
getmr

Get the mzrt profile and group information for batch correction and plot as a list directly from path with default setting
ma

filter data by average moving box
getdata

Get xcmsset object in one step with optimized methods.
getmd

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

plot scatter plot for rt-mz profile and output gif file for mutiple groups
plotpca

plot the PCA of list
svadata

Filter the data with p value and q value
plotrsd

plot the rsd influnces of data in different groups
getsccp

Quantitative analysis for short-chain chlorinated paraffins(SCCPs)
plottic

Plot Total Ion Chromatogram (TIC)
getsim

output the similarity of two dataset
getmzrt

Get the mzrt profile and group information for batch correction and plot as a list
plote

plot EIC and boxplot for all peaks and return diffreport
qbatch

Get the MIR from the file
getmzrt2

Get the mzrt profile and group information for batch correction and plot as a list for xcms 3 object
plotgroup

Plot the response group of GC-MS
getmzrtcsv

Covert the peaks list csv file into list
plotint

plot the information of intergretion
plotkms

plot the kendrick mass defect diagram
plothm

Plot the heatmap of mzrt profiles
plotintslope

plot the slope information of intergretion
plothist

plot the density of the GC-MS data with EM algorithm to seperate the data into two log normal distribution.
plotrtms

Plot mass spectrum of certain retention time and return mass spectrum vector (MSP file) for NIST search
plotsms

Plot the intensity distribution of GC-MS
plotmr

plot the scatter plot for peaks list with threshold
submd

Get the differences of two GC/LC-MS data
plotsub

Plot the backgrond of data
plott

plot GC-MS data as a heatmap for constant speed of temperature rising
plotmrc

plot the diff scatter plot for one xcmsset objects with threshold between two groups
svabatch

Plot the influnces of DoE and Batch effects on each peaks
plotms

plot GC/LC-MS data as a heatmap with TIC
svaupload

Get the corrected data after SVA for metabolanalyst
writeMSP

Write MSP files for NIST search
runsccp

Shiny application for Short-Chain Chlorinated Paraffins analysis
sccp

Short-Chain Chlorinated Paraffins(SCCPs) peaks infomation for quantitative analysis
svapca

Principal component analysis(PCA) for SVA corrected data and raw data
svaplot

Filter the data with p value and q value and show them
Getisotopologues

Get the selected isotopologues at certain MS data
GetIntegration

GetIntegration was mainly used for get the intergration of certain ion's chromatogram data and plot the data
getQCraw

get the data of QC compound for a group of data
Mode

define the Mode function
getdata2

Get XCMSnExp object in one step from structured folder path for xcms 3.
getarea

Get the peak information from sampels for SCCPs detection
getdoe

Filter the data based on DoE, rsd, intensity
getgrouprep

Get the report for samples with biological and technique replicates in different groups
gettechrep

Get the report for technique replicates.
gettimegrouprep

Get the time series or two factor DoE report for samples with biological and technique replicates in different groups