thr_peaks {gcxgclab} | R Documentation |
Threshold Peaks
Description
thr_peaks
finds all peaks above the given threshold.
Usage
thr_peaks(TIC_df, THR = 1e+05)
Arguments
TIC_df |
a data.frame object. Data frame with 4 columns (Overall Time Index, RT1, RT2, TIC), ideally the output from create_df(), or the first data frame returned from extract_data(), $TIC_df. |
THR |
a float object. Threshold for peak intensity. Should be a number between the baseline value and the highest peak intensity. Default suggestion is THR = 100000. |
Details
This function finds all peaks in the sample above a given intensity threshold.
Value
A data.frame object. A data frame with 4 columns (Time, X, Y, Peak) with all peaks above the given threshold, with their time coordinates.
Examples
file1 <- system.file("extdata","sample1.cdf",package="gcxgclab")
frame <- extract_data(file1,mod_t=.5)
thrpeaks <- thr_peaks(frame$TIC_df, 100000)
plot_peak(thrpeaks, frame, title="Peaks Above 100,000")
plot_peakonly(thrpeaks,title="Peaks Above 100,000")
[Package gcxgclab version 1.0.1 Index]