"peakPick"(object, method = c("simple", "adaptive", "limpic"), ..., pixel = pixels(object), plot = FALSE)
## Local maxima and SNR with constant noise
peakPick.simple(x, SNR=6, window=5, blocks=100, ...)
## Local maxima and SNR with adaptive noise
peakPick.adaptive(x, SNR=6, window=5, blocks=100, spar=1, ...)
## LIMPIC peak detection
peakPick.limpic(x, SNR=6, window=5, blocks=100, thresh=0.75, ...)
MSImageSet
.MSImageSet
with the peak picking spectra.
method
. In this case it should take the following arguments:
x
: A numeric
vector of intensities.
...
: Additional arguments.
A user-created function should return a list
with two vectors of the same length as x
:
peaks
: A logical
vector indicating peaks.
noise
: A numeric
vector with the estimated noise.
Internally, pixelApply
is used to apply the peak picking. See its documentation page for more details on additional objects available to the environment installed to the peak picking function.
MSImageSet
,
peakAlign
,
peakFilter
,
reduceDimension
,
pixelApply
data <- generateImage(as="MSImageSet")
peakPick(data, method="simple", plot=interactive())
Run the code above in your browser using DataLab