View source: R/functions-XCMSnExp.R
overlappingFeatures | R Documentation |
overlappingFeatures
identifies features that are overlapping or close in
the m/z - rt space.
overlappingFeatures(x, expandMz = 0, expandRt = 0, ppm = 0)
x |
|
expandMz |
|
expandRt |
|
ppm |
|
list
with indices of features (in featureDefinitions()
) that
are overlapping.
Johannes Rainer
## Load a test data set with detected peaks
library(MSnbase)
data(faahko_sub)
## Update the path to the files for the local system
dirname(faahko_sub) <- system.file("cdf/KO", package = "faahKO")
## Disable parallel processing for this example
register(SerialParam())
## Correspondence analysis
xdata <- groupChromPeaks(faahko_sub, param = PeakDensityParam(sampleGroups = c(1, 1, 1)))
## Identify overlapping features
overlappingFeatures(xdata)
## Identify features that are separated on retention time by less than
## 2 minutes
overlappingFeatures(xdata, expandRt = 60)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.