Learn R Programming

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:

remotes::install_github("yufree/enviGCMS")

This package has removed the depends/suggests on xcms package as it is a package with too many unstable depends. If you need to use the functions in xcms, please find the release version of enviGCMS 0.7.4.

Usage

Check this vignette for Data analysis of GC-MS and LC-MS in Environmental Science.

Check this vignette for Pooled QC analysis in Environmental Science.

Detailed usage of 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

519

Version

0.8.0

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Miao YU

Last Published

January 14th, 2025

Functions in enviGCMS (0.8.0)

getMSP

read in MSP file as list for ms/ms or ms(EI) annotation
findohc

Screen organohalogen compounds by retention time, mass defect analysis and isotope relationship modified by literature report. Also support compounds with [M] and [M+2] ratio cutoff.
getbgremove

Get the peak list with blank samples' peaks removed
Getisotopologues

Get the selected isotopologues at certain MS data
getalign2

Align mass to charge ratio and/or retention time to remove redundancy
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
getalign

Align two peaks vectors by mass to charge ratio and/or retention time
getfeaturesanova

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

Get the exact mass of the isotopologues from a chemical formula or reaction's isotope patterns with the highest abundances
getmassdefect

Get mass defect with certain scaled factor
getQCraw

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

Align multiple peaks list to one peak list
getcsv

Convert an list object to csv file.
getmdr

Get the raw Mass Defect
findpfc

Find PFCs based on mass defect analysis
getbiotechrep

Get the report for biological replicates.
getfilter

Filter the data based on row and column index
getms1anno

Annotation of MS1 data by compounds database by predefined paired mass distance
getmzrt

Get the mzrt profile and group information as a mzrt list and/or save them as csv or rds for further analysis.
getmr

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

output the similarity of two dataset
plotcc

plot the calibration curve with error bar, r squared and equation.
getrmd

Get the Relative Mass Defect
getdoe

Generate the group level rsd and average intensity based on DoE,
getformula

Get chemical formula for mass to charge ratio.
plotden

plot the density for multiple samples
matrix

Demo raw data matrix
getoverlappeak

Get the overlap peaks by mass and retention time range
plotanno

Show MS/MS pmd annotation result
findlipid

Find lipid class of metabolites base on referenced Kendrick mass defect
getdata2

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

Screen metabolites by Mass Defect
getdata

Get xcmsset object in one step with optimized methods.
plotridges

Relative Log Abundance Ridge (RLAR) plots for samples or peaks
getgrouprep

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

Merge positive and negative mode data
gettechrep

Get the report for technique replicates.
plotdwtus

plot density weighted intensity for multiple samples
plote

plot EIC and boxplot for all peaks and return diffreport
plotsub

Plot the background of data
svaplot

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

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

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

Density weighted intensity for one sample
getimputation

Impute the peaks list data
svaupload

Get the corrected data after SVA for metabolanalyst
getupload

Get the csv files from xcmsset/XCMSnExp/list object
getmzrt2

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

Covert the peaks list csv file into list
getupload2

Get the csv files to be submitted to Metaboanalyst
plotrla

Relative Log Abundance (RLA) plots
plotrug

plot 1-d density for multiple samples
plotsms

Plot the intensity distribution of GC-MS
getmdh

Get the high order unit based Mass Defect
getmd

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

Get the index with power restriction for certain study with BH adjusted p-value and certain power.
getrangecsv

Get a mzrt list and/or save mz and rt range as csv file.
getretcor

Perform peaks list alignment and return features table
plotpeak

plot intensity of peaks across samples or samples across peaks
plotridge

plot ridgeline density plot
svadata

Filter the data with p value and q value
plottic

Plot Total Ion Chromatogram (TIC)
getupload3

Get the csv files to be submitted to Metaboanalyst
getpqsi

Compute pooled QC linear index according to run order
svapca

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

Get the MIR from the file
gifmr

plot scatter plot for rt-mz profile and output gif file for multiple groups
list

Demo data
plotmrc

plot the diff scatter plot for peaks list with threshold between two groups
plotmr

plot the scatter plot for peaks list with threshold
plotint

plot the information of integration
plothm

Plot the heatmap of mzrt profiles
runMDPlot

Shiny application for interactive mass defect plots analysis
plotgroup

Plot the response group of GC-MS
runsccp

Shiny application for Short-Chain Chlorinated Paraffins analysis
submd

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

Short-Chain Chlorinated Paraffins(SCCPs) peaks information for quantitative analysis
plothist

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

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

Plot EIC of certain m/z and return dataframe for integration
ma

filter data by average moving box
plotintslope

plot the slope information of integration
plotkms

plot the kendrick mass defect diagram
svabatch

Plot the influences of DoE and Batch effects on each peaks
svacor

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

plot GC/LC-MS data as scatter plot
plotpca

plot the PCA for multiple samples
plotrsd

plot the rsd influences of data in different groups
plotrtms

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

Write MSP file for NIST search
xrankanno

Perform MS/MS X rank annotation for mgf file
dotpanno

Perform MS/MS dot product annotation for mgf file
Mode

define the Mode function
Integration

Just integrate data according to fixed rt and fixed noise area
enviGCMS-deprecated

Deprecated functions in package enviGCMS.
cbmd

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

find line of the regression model for GC-MS
GetIntegration

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

Demo data for TBBPA metabolism in Pumpkin