truePeakTrough {adductomicsR} | R Documentation

## true peak and trough detection

### Description

true peak and trough detection

### Usage

    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.

[Package adductomicsR version 1.4.0 Index]