findLocalMax {EEM} | R Documentation |
Find local maximum peaks
Description
Find local maximum peaks in EEM data
Usage
findLocalMax(data, ...)
## S3 method for class 'EEM'
findLocalMax(data, n, threshold = 0.7, showprint = TRUE, ...)
## S3 method for class 'matrix'
findLocalMax(data, n, threshold = 0.7, showprint = TRUE,
...)
## S3 method for class 'numeric'
findLocalMax(data, threshold = 0.7, showprint = TRUE, ...)
Arguments
data |
EEM data generated by |
... |
(optional) further arguments passed to other methods |
n |
sample number. The number should not exceed |
threshold |
threshold value in between 0 and 1. Lower the value to cover low peaks. |
showprint |
logical value whether to print out the results or not |
Value
return a character vector of peak names. If showprint = TRUE, it will also print a dataframe of indicating the value of local maximum peaks.
Methods (by class)
-
EEM
: for EEM data created byreadEEM
function -
matrix
: for unfolded EEM data created byunfold
function -
numeric
: for a vector of numeric values which have names in the format of EX...EM...
Examples
data(applejuice)
findLocalMax(applejuice, 1)
applejuice_uf <- unfold(applejuice)
findLocalMax(applejuice_uf, 1)