findPeaksImpl1D.Rd
Detects regions of interest with peaks in a signal
The x axis, to determine units
The vector where to find peaks, of dimensions length(x)
If TRUE
information will be printed on screen
Length of the filter used to compute the second derivative. See details.
A vector of length 2 with the minimum and maximum peak width. See details.
Additional parameters to MassSpecWavelet::peakDetectionCWT()
. See details.
A number to extend the ROIs beyond their default size
A number, between 0 and 1. Pairs of ROIs with an intersection over union larger than this threshold are merged.
If TRUE, return as well the debug information
A list with the peak_list
and debug_info
elements.
Peaks are detected on the intensity vector.
In detail, the approach is as follows:
We compute the second derivative with respect to the drift and retention times.
Based on the given peak width ranges, mexican hat wavelets are scaled
Peaks on are detected using MassSpecWavelet::peakDetectionCWT()
.
We merge similar ROIs using a threshold on the 1D-intersection over union
Get some ROI metrics and return.
For the MassSpecWavelet-based peak detection, the scales
are computed based on
the requested peak widths. Besides, the scales, further tuning beyond the
MassSpecWavelet defaults is possible through the peakDetectionCWTParams
argument.
By default, the only change we introduce is the exclude0scaleAmpThresh = TRUE
which is a reasonable peak detection setting not enabled in MassSpecWavelet
for backwards compatibility reasons.