The PTW package
Global Parametric Time Warping in R
Tom Bloemberg Institute for Molecules and Materials
- Dept. Chemometrics /
Analytical Chemistry www.ru.nl/imm
The PTW package Institute for Molecules and Materials Dept. - - PowerPoint PPT Presentation
Global Parametric Time Warping in R Tom Bloemberg The PTW package Institute for Molecules and Materials Dept. Chemometrics / Analytical Chemistry www.ru.nl/imm Global Parametric Time Warping in R The PTW package Chromatographic example
Global Parametric Time Warping in R
Tom Bloemberg Institute for Molecules and Materials
Analytical Chemistry www.ru.nl/imm
Global Parametric Time Warping in R
Global Parametric Time Warping in R
2 2 1
Global Parametric Time Warping in R
=
Q q q qt
i i i
2
> library(ptw) > data(chromatograms) > chromatograms <- basel.off(chromatograms) > C.warped <- ptw(chromatograms[1, ], chromatograms[16, ]) > plot(C.warped, plot.orig=TRUE, plot.wf=TRUE)
Global Parametric Time Warping in R
> library(ptw) > data(chromatograms) > chromatograms <- basel.off(chromatograms) > C.warped <- ptw(chromatograms[1:8, ], chromatograms[9:16, ]) > plot(C.warped, plot.orig=TRUE, plot.wf=TRUE)
Global Parametric Time Warping in R
> library(ptw) > data(chromatograms) > chromatograms <- basel.off(chromatograms) > C.warped <- ptw(chromatograms[1, ], chromatograms[2:16, ]) > plot(C.warped, plot.orig=TRUE, plot.wf=TRUE)
Global Parametric Time Warping in R
T m/z
Global Parametric Time Warping in R
Global Parametric Time Warping in R
!""## " !!!
> library(ptw) > data(LCMS) > HQ <- coda(LCMS, combine=c(1,2), windows=c(3,1), nChroms=5) > LCMS.Warped <- ptw(LCMS[1, , ], LCMS[2, , ], HQ=HQ, align.method=“global”)
Global Parametric Time Warping in R
> library(ptw) > data(LCMS) > HQ <- coda(LCMS, combine=c(1,2), windows=c(3,1), nChroms=5) > LCMS.Warped <- ptw(LCMS[1,,], LCMS[2,,], HQ=HQ, align.method = “global”) > library(ptw) > data(LCMS) > HQ <- coda(LCMS, combine=c(1,2), windows=c(3,1), nChroms=5) > LCMS.Warped <- ptw(colSums(LCMS[1, , HQ]), colSums(LCMS[2, , HQ]), align.method = “individual”)
Global Parametric Time Warping in R
Global Parametric Time Warping in R
Global Parametric Time Warping in R