Usage
isPeak(f,SoN = 2,span = 81,sm.span=11,plot=FALSE,add = FALSE,
zerothrsh=2,area.w = 0.003, ratio = 0.2, ...)
Arguments
f
a matrix of two columns representing a spectrum, with the
first column the m/z value and second the intensity
SoN
signal to noise ratio criterion for peak detection
span
parameter for estimating local variance before
peak detection; default is 81 points, that is, 40
points to the left and right of a point of which the
variance is being estimated.
sm.span
parameter for smoothing the spectrum before
peak detection; default is 11 points, that is, 5
points to the left and right of a point being smoothed
plot
logical, plot the smoothed spectrum and peaks?
add
add to the existing raw and baseline-substracted plot?
zerothrsh
ignore peaks whose intensity values are below zerothrsh.
area.w
the neighbourhood of a peak m/z,
mz*(1-area.w, 1+area.w).
ratio
if area/max(area) > ratio, the peak is retained.
...
further arguments that get passed on to plot
.