addXCMSPeaks | R Documentation |
Add xcms/CAMERA peak detection results
addXCMSPeaks( files, object, settings = list(), minintens = 100, minfeat = 6, BPPARAM = bpparam(), multipleMF = FALSE, multipleMFParam = list(fwhm = c(5, 10, 15), mz.abs = 0.2, rt.abs = 2) )
files |
list of chromatogram files |
object |
a |
settings |
see |
minintens |
minimum ion intensity to be included into a pseudospectra |
minfeat |
minimum number of ion to be created a pseudospectra |
BPPARAM |
a parameter class specifying if and how parallel processing should be performed |
multipleMF |
logical Try to remove redundant peaks, in this case where there are any peaks within an absolute m/z value of 0.2 and within 3 s for any one sample in the xcmsSet (the largest peak is kept) |
multipleMFParam |
list. It conteins the settings for the peak-picking. mz_abs represent the the mz range; rt_abs represent thert range |
mz.abs |
mz range |
rt.abs |
rt range |
Reads the raw data using xcms, group each extracted ion according to their
retention time using CAMERA and attaches them to an already created
peaksDataset
object
Repeated calls to xcmsSet and annotate to perform peak-picking and
deconvolution. The peak detection results are added to the original
peaksDataset
object. Two peak detection alorithms are available:
continuous wavelet transform (peakPicking=c('cwt')) and the matched filter
approach (peakPicking=c('mF')) described by Smith et al (2006). For further
information consult the xcms package manual.
peaksDataset
object
Riccardo Romoli riccardo.romoli@unifi.it
peaksDataset
findPeaks-matchedFilter
findPeaks-centWave
xcmsRaw-class
files <- list.files(path = paste(find.package("gcspikelite"), "data", sep = "/"),"CDF", full = TRUE) data <- peaksDataset(files[1:2], mz = seq(50, 550), rtrange = c(7.5, 8.5)) ## create settings object mfp <- xcms::MatchedFilterParam(fwhm = 10, snthresh = 5) cwt <- xcms::CentWaveParam() data <- addXCMSPeaks(files[1:2], data, settings = mfp, multipleMF = FALSE) data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.