View source: R/detect_peaks2.R View source: R/detect_peaks.R
detect_peaks | R Documentation |
rt
: intensity
, without gaps in RT.
NOTE: improper grouping (e.g. by rt
) will cause this function to return an empty tbl.Detect Peaks
Take chromatographic data, return summary of peaks above a hard threshold, SNR threshold, or biggest n peaks.
Data should be input as one or more groups of rt
: intensity
, without gaps in RT.
NOTE: improper grouping (e.g. by rt
) will cause this function to return an empty tbl.
detect_peaks( chromdata, thres_snr = 0, thres_intensity = 0, n = Inf, int_min = 1, target_rt )
chromdata |
chromatographic data, preferable single-ion or -wavelength |
thres_snr |
intensity SNR threshold for peak detection |
thres_intensity |
Hard intensity threshold for peak detection |
n |
number of peaks to return |
int_min |
Minimum nonzero intensity, used to reasonably calculate SNR |
Peak rows for each group of the passed tibble, with a coords column containing the peak domain
peaks <- chromdata %>% get_peaks(thres_snr = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.