README.md

Build Status

The dynamic xcms package (based on xcms 3.8.2)

How to track the code changes

The dynamic xcms package (verson 3.8.2.1) is developted based on the stable version of xcms version 3.8.2 . with the dynamic theory implanted. In this dynamic xcms package, seven files were changed: DESCRIPTION, DynamicXCMS.Rproj, DataClasses.R, do_findChromPeaks-functions.R, functions-Params.R, methods-Params.R, and mzROI.c, detailed changes can be accessed in the commits of the depository.

How to install the package.

Download the source codes from https://github.com/xiaodfeng/DynamicXCMS or from Appendix C of PMID: 34172146 into your directory

As the latest version of MSnbase 2.27.1 has changed the the Spectra and Chromatograms class into MSpectra and MChromatograms class. Thus installing the XCMS 3.8.2.1 based on MSnbase 2.27.1 will result in an error. We need to stick to the MSnbase-2.14.2.

In the long run, the DynamicXCMS needs to be implanted based on the latest version of XCMS version 4.

library(devtools)

devtools::install("d:/your directory/MSnbase-2.14.2",update = FALSE)

devtools::install("d:/your directory/DynamicXCMS",update = FALSE)

library(MSnbase)

library(xcms)

How to use the package.

In the original xcms, the peak detection mass tolerance (PDMT) was set by the parameter ppm. While in the dynamic xcms, the PDMT was set by parameters A, ppm, and instrument.

set the parameters

cwp <- CentWaveParam(A = 4.289723e-07, ppm=1, Instrument=2,peakwidth=c(2.4,30), snthresh = 10, noise=100000, prefilter=c(1, 200000), firstBaselineCheck = TRUE, integrate=2)

Peak detection with dynamic xcms

xdatad <- findChromPeaks(Raw_data, param = cwp,BPPARAM = BPPARAM)

Cite

Feng, X., Zhang, W., Kuipers, F., Kema, I., Barcaru, A., & Horvatovich, P. (2021). Dynamic binning peak detection and assessment of various lipidomics liquid chromatography-mass spectrometry pre-processing platforms. Analytica Chimica Acta, 31(0), 1–17. https://doi.org/10.1016/j.aca.2021.338674

Discussions and suggestions are welcome

https://github.com/xiaodfeng/DynamicXCMS/issues



xiaodfeng/DynamicXCMS documentation built on Aug. 6, 2023, 3:02 p.m.