truePeakTrough: true peak and trough detection

Description Usage Arguments Value

View source: R/truePeakTrough.R

Description

true peak and trough detection

Usage

1
2
truePeakTrough(peaksTmp = NULL, troughsTmp = NULL, peakRangeTmp = 
NULL, minRes = 50, lrRes = FALSE)

Arguments

peaksTmp

character vector with indices of detected peaks from findPeaks

troughsTmp

character vector with indices of detected troughs from findPeaks

peakRangeTmp

matrix of the peak range data with at least 3 columns (1. mass-to-charge, 2. intensity, 3. retention time)

minRes

numeric minimum percentage left/right resolution

lrRes

logical if true both the left and right troughs must be above the minRes else the peak will be discounted. (default = FALSE i.e. if only the left or right trough is less than minRes then the peak will be retained)

Value

a named numeric of both the peaks and troughs fitting the criteria.


adductomicsR documentation built on Nov. 8, 2020, 4:49 p.m.