peakPick: generic method peak.pick

Description Usage Arguments Details Value Examples

Description

generic method peak.pick

method peakPick

Usage

1
2
3
4
peakPick(object, span = 100, ...)

## S4 method for signature 'MassSpectra'
peakPick(object, span = 100, ...)

Arguments

object

object of class MassSpectra

span

numeric parameter for local max/min detection

...

additional args

Details

Method peakPick for MassSpectra class, works as a constructor for PeakList class. The local min/max detection implementation is adapted from the CRAN package 'ChemometricsWithR'.

Value

object of class PeakList with updated slots PeakIDs and peakMzs

object of class PeakList

Examples

1
2
3
4
5
6
7
library(tofsimsData)
data(tofsimsData)
testSpectra <- reduceSpectrumResolution(object = testSpectra, everyN = 4, mode = 'keep')
testSpectra <- smootherSpline(testSpectra, stepsize = 10, spar = 0.3)
testSpectra <- smootherGolay(testSpectra, p = 3, n = 5)
testSpectra <- peakPick(testSpectra, span = 100)
plot(testSpectra, , mzRange=c(38.5,40.5), type = 'l')


Search within the tofsims package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.