groupChromPeaks | R Documentation |
The groupChromPeaks
method performs a correspondence analysis i.e., it
groups chromatographic peaks across samples to define the LC-MS features.
The correspondence algorithm can be selected, and configured, using the
param
argument. See documentation of XcmsExperiment()
and XCMSnExp()
for information on how to access and extract correspondence results.
The correspondence analysis can be performed on chromatographic peaks of
any MS level (if present and if chromatographic peak detection has been
performed for that MS level) defining features combining these peaks. The
MS level can be selected with the parameter msLevel
. By default, calling
groupChromPeaks
will remove any previous correspondence results. This can
be disabled with add = TRUE
, which will add newly defined features to
already present feature definitions.
Supported param
objects are:
PeakDensityParam
: correspondence using the peak density method
(Smith 2006) that groups chromatographic peaks along the retention time
axis within slices of (partially overlapping) m/z ranges. By default,
these m/z ranges (bins) have a constant size. By setting ppm
to a value
larger than 0, m/z dependent bin sizes can be used instead (better
representing the m/z dependent measurement error of some MS instruments).
All peaks (from the same or from different samples) with their apex
position being close on the retention time axis are grouped into a LC-MS
feature. Only samples with non-missing sample group assignment (i.e. for
which the value provided with parameter sampleGroups
is different than
NA
) are considered and counted for the feature definition. This allows
to exclude certain samples or groups (e.g. blanks) from the feature
definition avoiding thus features with only detected peaks in these. Note
that this affects only the definition of new features.
Chromatographic peaks in these samples will still be assigned to features
which were defined based on the other samples.
See in addition do_groupChromPeaks_density()
for the core API
function.
NearestPeaksParam
: performs peak grouping based on the proximity of
chromatographic peaks from different samples in the m/z - rt space similar
to the correspondence method of mzMine (Katajamaa 2006). The method
creates first a master peak list consisting of all chromatographic peaks
from the sample with the most detected peaks and iteratively calculates
distances to peaks from the sample with the next most number of peaks
grouping peaks together if their distance is smaller than the provided
thresholds.
See in addition do_groupChromPeaks_nearest()
for the core API function.
MzClustParam
: performs high resolution peak grouping for
single spectrum metabolomics data (Kazmi 2006). This method should
only be used for such data as the retention time is not considered
in the correspondence analysis.
See in addition do_groupPeaks_mzClust()
for the core API function.
For specific examples and description of the method and settings see the help pages of the individual parameter classes listed above.
groupChromPeaks(object, param, ...)
## S4 method for signature 'XcmsExperiment,Param'
groupChromPeaks(object, param, msLevel = 1L, add = FALSE)
PeakDensityParam(
sampleGroups = numeric(),
bw = 30,
minFraction = 0.5,
minSamples = 1,
binSize = 0.25,
ppm = 0,
maxFeatures = 50
)
MzClustParam(
sampleGroups = numeric(),
ppm = 20,
absMz = 0,
minFraction = 0.5,
minSamples = 1
)
NearestPeaksParam(
sampleGroups = numeric(),
mzVsRtBalance = 10,
absMz = 0.2,
absRt = 15,
kNN = 10
)
## S4 method for signature 'PeakDensityParam'
sampleGroups(object)
## S4 replacement method for signature 'PeakDensityParam'
sampleGroups(object) <- value
## S4 method for signature 'PeakDensityParam'
bw(object)
## S4 replacement method for signature 'PeakDensityParam'
bw(object) <- value
## S4 method for signature 'PeakDensityParam'
minFraction(object)
## S4 replacement method for signature 'PeakDensityParam'
minFraction(object) <- value
## S4 method for signature 'PeakDensityParam'
minSamples(object)
## S4 replacement method for signature 'PeakDensityParam'
minSamples(object) <- value
## S4 method for signature 'PeakDensityParam'
binSize(object)
## S4 replacement method for signature 'PeakDensityParam'
binSize(object) <- value
## S4 method for signature 'PeakDensityParam'
maxFeatures(object)
## S4 replacement method for signature 'PeakDensityParam'
maxFeatures(object) <- value
## S4 method for signature 'PeakDensityParam'
ppm(object)
## S4 method for signature 'MzClustParam'
sampleGroups(object)
## S4 replacement method for signature 'MzClustParam'
sampleGroups(object) <- value
## S4 method for signature 'MzClustParam'
ppm(object)
## S4 replacement method for signature 'MzClustParam'
ppm(object) <- value
## S4 method for signature 'MzClustParam'
absMz(object)
## S4 replacement method for signature 'MzClustParam'
absMz(object) <- value
## S4 method for signature 'MzClustParam'
minFraction(object)
## S4 replacement method for signature 'MzClustParam'
minFraction(object) <- value
## S4 method for signature 'MzClustParam'
minSamples(object)
## S4 replacement method for signature 'MzClustParam'
minSamples(object) <- value
## S4 method for signature 'NearestPeaksParam'
sampleGroups(object)
## S4 replacement method for signature 'NearestPeaksParam'
sampleGroups(object) <- value
## S4 method for signature 'NearestPeaksParam'
mzVsRtBalance(object)
## S4 replacement method for signature 'NearestPeaksParam'
mzVsRtBalance(object) <- value
## S4 method for signature 'NearestPeaksParam'
absMz(object)
## S4 replacement method for signature 'NearestPeaksParam'
absMz(object) <- value
## S4 method for signature 'NearestPeaksParam'
absRt(object)
## S4 replacement method for signature 'NearestPeaksParam'
absRt(object) <- value
## S4 method for signature 'NearestPeaksParam'
kNN(object)
## S4 replacement method for signature 'NearestPeaksParam'
kNN(object) <- value
## S4 method for signature 'PeakDensityParam'
as.list(x, ...)
## S4 method for signature 'XCMSnExp,PeakDensityParam'
groupChromPeaks(object, param, msLevel = 1L, add = FALSE)
## S4 method for signature 'XCMSnExp,MzClustParam'
groupChromPeaks(object, param, msLevel = 1L)
## S4 method for signature 'XCMSnExp,NearestPeaksParam'
groupChromPeaks(object, param, msLevel = 1L, add = FALSE)
object |
The data object on which the correspondence analysis should be
performed. Can be an |
param |
The parameter object selecting and configuring the algorithm. |
... |
Optional parameters. |
msLevel |
|
add |
|
sampleGroups |
For |
bw |
For |
minFraction |
For |
minSamples |
For |
binSize |
For |
ppm |
For |
maxFeatures |
For |
absMz |
For |
mzVsRtBalance |
For |
absRt |
For |
kNN |
For |
value |
The value for the slot. |
x |
The parameter object. |
For groupChromPeaks
: either an XcmsExperiment()
or XCMSnExp()
object with the correspondence result.
Colin Smith, Johannes Rainer
Smith, C.A., Want E.J., O'Maille G., Abagyan R., and Siuzdak G. (2006) "XCMS: Processing Mass Spectrometry Data for Metabolite Profiling Using Nonlinear Peak Alignment, Matching, and Identification" Anal. Chem. 78:779-787.
Katajamaa, M., Miettinen, J., Oresic, M. (2006) "MZmine: Toolbox for processing and visualization of mass spectrometry based molecular profile data". Bioinformatics, 22:634-636.
Kazmi S. A., Ghosh, S., Shin, D., Hill, D.W., and Grant, D.F. (2006) "Alignment of high resolution mass spectra: development of a heuristic approach for metabolomics. Metabolomics Vol. 2, No. 2, 75-83.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.