Learn R Programming

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

pmd: Paired Mass Distance Analysis for GC/LC-MS Based Non-Targeted Analysis and Reactomics Analysis

Paired mass distance (PMD) analysis proposed in Yu, Olkowicz and Pawliszyn (2018) and PMD based reactomics proposed in Yu and Petrick (2020) for gas/liquid chromatography–mass spectrometry (GC/LC-MS) based non-targeted analysis. PMD analysis including GlobalStd algorithm and structure/reaction directed analysis. GlobalStd algorithm could found independent peaks in m/z-retention time profiles based on retention time hierarchical cluster analysis and frequency analysis of paired mass distances within retention time groups. Structure directed analysis could be used to find potential relationship among those independent peaks in different retention time groups based on frequency of paired mass distances. Reactomics analysis could also be performed to build PMD network, assign sources and make biomarker reaction discovery. GUIs for PMD analysis is also included as 'shiny' applications.

Installation

You can install package from this GitHub repository:

devtools::install_github("yufree/pmd")

Or find a stable version from CRAN:

install.packages('pmd')

Usage

  • PMD Analysis Tutorial

  • Reactomics Analysis Tutorial

  • PMD analysis paper. This paper proposed structure/reaction directed analysis with PMD.

  • Reactomics paper. This paper contained the concepts of PMD based reactomics, applications and data mining of reaction database and compounds database.

  • Slides. This is the slides for ASMS 2020 Reboot and here is the video of presentation. Press "P" and you will see the notes for each slide with details. Another full version of reactomics presentation for one hour presentation could be found here. I will not update the conference presentation while I will add new contents for the full version of reactomics presentation whenever I have new results.

To perform GlobalStd algorithem, use the following code:

library(pmd)
data("spmeinvivo")
pmd <- getpaired(spmeinvivo)
std <- getstd(pmd)

To perform structure/reaction directed analysis, use the following code:

sda <- getsda(std)

To perform GlobalStd algorithem along with structure/reaction directed analysis, use the following code:

result <- globalstd(spmeinvivo)

To use the shiny application within the package, use the following code:

runPMD()

To check the pmd reaction database:

# all reaction
data("omics")
View(omics)
# kegg reaction
data("keggrall")
View(keggrall)
# literature reaction for mass spectrometry
data("sda")
View(sda)

To check the HMDB pmd database:

data("hmdb")
View(hmdb)

To cite related papers:

citation('pmd')

Copy Link

Version

Install

install.packages('pmd')

Monthly Downloads

242

Version

0.2.1

License

GPL-2

Maintainer

Miao YU

Last Published

January 21st, 2021

Functions in pmd (0.2.1)

getcda

Perform correlation directed analysis for peaks list.
getposneg

Link pos mode peak list with neg mode peak list by pmd.
getstd

Find the independent ions for each retention time hierarchical clustering based on PMD relationship within each retention time cluster and isotope and return the index of the std data for each retention time cluster.
spmeinvivo

A peaks list dataset containing 9 samples from 3 fish with triplicates samples for each fish from LC-MS.
plotstdrt

Plot the std mass from GlobalStd algorithm in certain retention time groups
gettarget

Get multiple injections index for selected retention time
getchain

Get reaction chain for specific mass to charge ratio
plotstdsda

Plot the std mass from GlobalStd algorithm in structure directed analysis(SDA) groups
getsda

Perform structure/reaction directed analysis for peaks list.
getrda

Perform structure/reaction directed analysis for mass only.
pcasf

Compare matrices using PCA similarity factor
plotcn

plot PMD KEGG network for certain compounds and output network average distance and degree
runPMDnet

Shiny application for PMD network analysis
sda

A dataset containing common Paired mass distances of substructure, ions replacements, and reaction
getms2pmd

read in MSP file as list for ms/ms annotation
globalstd

GlobalStd algorithm with structure/reaction directed analysis
getmspmd

read in MSP file as list for EI-MS annotation
getcluster

Get Pseudo-Spectrum as peaks cluster based on pmd analysis.
hmdb

A dataframe containing HMDB with unique accurate mass pmd with three digits frequence larger than 1 and accuracy percentage larger than 0.9.
pmdanno

Perform MS/MS pmd annotation for mgf file
getcorcluster

Get Pseudo-Spectrum as peaks cluster based on correlation analysis.
runPMD

Shiny application for PMD analysis
omics

A dataframe containing multiple reaction database ID and their related accurate mass pmd and related reactions
plotpaired

Plot the mass pairs and high frequency mass distances
keggrall

A dataframe containing reaction related accurate mass pmd and related reaction formula with KEGG ID
plotsda

Plot the specific structure directed analysis(SDA) groups
getpmd

Get pmd for specific reaction
getpaired

Filter ions/peaks based on retention time hierarchical clustering, paired mass distances(PMD) and PMD frequency analysis.
plotstd

Plot the std mass from GlobalStd algorithm
plotrtg

Plot the retention time group
getreact

Get quantitative paired peaks list for specific reaction/pmd