findChromPeaks-Chromatogram-MatchedFilter: matchedFilter-based peak detection in purely chromatographic...

findChromPeaks,Chromatogram,MatchedFilterParam-methodR Documentation

matchedFilter-based peak detection in purely chromatographic data


findChromPeaks on a Chromatogram or MChromatograms object with a MatchedFilterParam parameter object performs matchedFilter-based peak detection on purely chromatographic data. See matchedFilter for details on the method and MatchedFilterParam for details on the parameter class. Note that not all settings from the MatchedFilterParam will be used. See peaksWithMatchedFilter() for the arguments used for peak detection on purely chromatographic data.


## S4 method for signature 'Chromatogram,MatchedFilterParam'
findChromPeaks(object, param, ...)



a Chromatogram or MChromatograms object.


a MatchedFilterParam object specifying the settings for the peak detection. See peaksWithMatchedFilter() for the description of arguments used for peak detection.


currently ignored.


If called on a Chromatogram object, the method returns a matrix with the identified peaks. See peaksWithMatchedFilter() for details on the matrix content.


Johannes Rainer

See Also

peaksWithMatchedFilter() for the downstream function and matchedFilter for details on the method.


## Loading a test data set with identified chromatographic peaks
## Update the path to the files for the local system
dirname(faahko_sub) <- system.file("cdf/KO", package = "faahKO")
faahko_sub <- filterRt(faahko_sub, c(2500, 3700))

od <- as(filterFile(faahko_sub, 1L), "OnDiskMSnExp")

## Extract chromatographic data for a small m/z range
chr <- chromatogram(od, mz = c(272.1, 272.3))[1, 1]

## Identify peaks with default settings
xchr <- findChromPeaks(chr, MatchedFilterParam())

## Plot the identified peaks

sneumann/xcms documentation built on March 18, 2023, 6:24 p.m.