findChromPeaks-massifquant | R Documentation |
Massifquant is a Kalman filter (KF)-based chromatographic peak
detection for XC-MS data in centroid mode. The identified peaks
can be further refined with the centWave method (see
findChromPeaks-centWave
for details on centWave)
by specifying withWave = TRUE
.
The MassifquantParam
class allows to specify all
settings for a chromatographic peak detection using the massifquant
method eventually in combination with the centWave algorithm. Instances
should be created with the MassifquantParam
constructor.
The findChromPeaks,OnDiskMSnExp,MassifquantParam
method performs chromatographic peak detection using the
massifquant algorithm on all samples from an
OnDiskMSnExp
object.
OnDiskMSnExp
objects encapsule all experiment
specific data and load the spectra data (mz and intensity values) on the
fly from the original files applying also all eventual data
manipulations.
ppm
,ppm<-
: getter and setter for the ppm
slot of the object.
peakwidth
,peakwidth<-
: getter and setter for the
peakwidth
slot of the object.
snthresh
,snthresh<-
: getter and setter for the
snthresh
slot of the object.
prefilter
,prefilter<-
: getter and setter for the
prefilter
slot of the object.
mzCenterFun
,mzCenterFun<-
: getter and setter for the
mzCenterFun
slot of the object.
integrate
,integrate<-
: getter and setter for the
integrate
slot of the object.
mzdiff
,mzdiff<-
: getter and setter for the
mzdiff
slot of the object.
fitgauss
,fitgauss<-
: getter and setter for the
fitgauss
slot of the object.
noise
,noise<-
: getter and setter for the
noise
slot of the object.
verboseColumns
,verboseColumns<-
: getter and
setter for the verboseColumns
slot of the object.
criticalValue
,criticalValue<-
: getter and
setter for the criticalValue
slot of the object.
consecMissedLimit
,consecMissedLimit<-
: getter and
setter for the consecMissedLimit
slot of the object.
unions
,unions<-
: getter and
setter for the unions
slot of the object.
checkBack
,checkBack<-
: getter and
setter for the checkBack
slot of the object.
withWave
,withWave<-
: getter and
setter for the withWave
slot of the object.
MassifquantParam(
ppm = 25,
peakwidth = c(20, 50),
snthresh = 10,
prefilter = c(3, 100),
mzCenterFun = "wMean",
integrate = 1L,
mzdiff = -0.001,
fitgauss = FALSE,
noise = 0,
verboseColumns = FALSE,
criticalValue = 1.125,
consecMissedLimit = 2,
unions = 1,
checkBack = 0,
withWave = FALSE
)
## S4 method for signature 'OnDiskMSnExp,MassifquantParam'
findChromPeaks(
object,
param,
BPPARAM = bpparam(),
return.type = "XCMSnExp",
msLevel = 1L,
...
)
## S4 method for signature 'MassifquantParam'
ppm(object)
## S4 replacement method for signature 'MassifquantParam'
ppm(object) <- value
## S4 method for signature 'MassifquantParam'
peakwidth(object)
## S4 replacement method for signature 'MassifquantParam'
peakwidth(object) <- value
## S4 method for signature 'MassifquantParam'
snthresh(object)
## S4 replacement method for signature 'MassifquantParam'
snthresh(object) <- value
## S4 method for signature 'MassifquantParam'
prefilter(object)
## S4 replacement method for signature 'MassifquantParam'
prefilter(object) <- value
## S4 method for signature 'MassifquantParam'
mzCenterFun(object)
## S4 replacement method for signature 'MassifquantParam'
mzCenterFun(object) <- value
## S4 method for signature 'MassifquantParam'
integrate(f)
## S4 replacement method for signature 'MassifquantParam'
integrate(object) <- value
## S4 method for signature 'MassifquantParam'
mzdiff(object)
## S4 replacement method for signature 'MassifquantParam'
mzdiff(object) <- value
## S4 method for signature 'MassifquantParam'
fitgauss(object)
## S4 replacement method for signature 'MassifquantParam'
fitgauss(object) <- value
## S4 method for signature 'MassifquantParam'
noise(object)
## S4 replacement method for signature 'MassifquantParam'
noise(object) <- value
## S4 method for signature 'MassifquantParam'
verboseColumns(object)
## S4 replacement method for signature 'MassifquantParam'
verboseColumns(object) <- value
## S4 method for signature 'MassifquantParam'
criticalValue(object)
## S4 replacement method for signature 'MassifquantParam'
criticalValue(object) <- value
## S4 method for signature 'MassifquantParam'
consecMissedLimit(object)
## S4 replacement method for signature 'MassifquantParam'
consecMissedLimit(object) <- value
## S4 method for signature 'MassifquantParam'
unions(object)
## S4 replacement method for signature 'MassifquantParam'
unions(object) <- value
## S4 method for signature 'MassifquantParam'
checkBack(object)
## S4 replacement method for signature 'MassifquantParam'
checkBack(object) <- value
## S4 method for signature 'MassifquantParam'
withWave(object)
## S4 replacement method for signature 'MassifquantParam'
withWave(object) <- value
ppm |
|
peakwidth |
|
snthresh |
|
prefilter |
|
mzCenterFun |
Name of the function to calculate the m/z center of the
chromatographic peak. Allowed are: |
integrate |
Integration method. For |
mzdiff |
|
fitgauss |
|
noise |
|
verboseColumns |
|
criticalValue |
|
consecMissedLimit |
|
unions |
|
checkBack |
|
withWave |
|
object |
For For all other methods: a parameter object. |
param |
An |
BPPARAM |
A parameter class specifying if and how parallel processing
should be performed. It defaults to |
return.type |
Character specifying what type of object the method should
return. Can be either |
msLevel |
|
... |
ignored. |
value |
The value for the slot. |
f |
For |
This algorithm's performance has been tested rigorously
on high resolution LC/(OrbiTrap, TOF)-MS data in centroid mode.
Simultaneous kalman filters identify chromatographic peaks and calculate
their area under the curve. The default parameters are set to operate on
a complex LC-MS Orbitrap sample. Users will find it useful to do some
simple exploratory data analysis to find out where to set a minimum
intensity, and identify how many scans an average peak spans. The
consecMissedLimit
parameter has yielded good performance on
Orbitrap data when set to (2
) and on TOF data it was found best
to be at (1
). This may change as the algorithm has yet to be
tested on many samples. The criticalValue
parameter is perhaps
most dificult to dial in appropriately and visual inspection of peak
identification is the best suggested tool for quick optimization.
The ppm
and checkBack
parameters have shown less influence
than the other parameters and exist to give users flexibility and
better accuracy.
Parallel processing (one process per sample) is supported and can
be configured either by the BPPARAM
parameter or by globally
defining the parallel processing mode using the
register
method from the BiocParallel
package.
The MassifquantParam
function returns a
MassifquantParam
class instance with all of the settings
specified for chromatographic peak detection by the massifquant
method.
For findChromPeaks
: if return.type = "XCMSnExp"
an
XCMSnExp
object with the results of the peak detection.
If return.type = "list"
a list of length equal to the number of
samples with matrices specifying the identified peaks.
If return.type = "xcmsSet"
an xcmsSet
object
with the results of the peak detection.
ppm,peakwidth,snthresh,prefilter,mzCenterFun,integrate,mzdiff,fitgauss,noise,verboseColumns,criticalValue,consecMissedLimit,unions,checkBack,withWave
See corresponding parameter above. Slots values should exclusively be accessed via the corresponding getter and setter methods listed above.
These methods and classes are part of the updated and modernized
xcms
user interface which will eventually replace the
findPeaks
methods. It supports chromatographic peak
detection on
OnDiskMSnExp
objects (defined in the
MSnbase
package). All of the settings to the massifquant and
centWave algorithm can be passed with a MassifquantParam
object.
Christopher Conley, Johannes Rainer
Conley CJ, Smith R, Torgrip RJ, Taylor RM, Tautenhahn R and Prince JT "Massifquant: open-source Kalman filter-based XC-MS isotope trace feature detection" Bioinformatics 2014, 30(18):2636-43.
The do_findChromPeaks_massifquant
core API function
and findPeaks.massifquant
for the old user interface.
XCMSnExp
for the object containing the results of
the peak detection.
Other peak detection methods:
findChromPeaks()
,
findChromPeaks-centWave
,
findChromPeaks-centWaveWithPredIsoROIs
,
findChromPeaks-matchedFilter
,
findPeaks-MSW
## Create a MassifquantParam object.
mqp <- MassifquantParam()
## Change snthresh prefilter parameters
snthresh(mqp) <- 30
prefilter(mqp) <- c(6, 10000)
mqp
## Perform the peak detection using massifquant on the files from the
## faahKO package. Files are read using the readMSData from the MSnbase
## package
library(faahKO)
library(MSnbase)
fls <- dir(system.file("cdf/KO", package = "faahKO"), recursive = TRUE,
full.names = TRUE)
raw_data <- readMSData(fls[1], mode = "onDisk")
## Perform the peak detection using the settings defined above.
res <- findChromPeaks(raw_data, param = mqp)
head(chromPeaks(res))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.