View source: R/combine_peaks.R
combine_peaks | R Documentation |
Utility function to combine duplicate peaks in peak table, i.e. peaks that
were integrated at more than one wavelength or component. Specify tolerance
(tol
) for retention time matching and minimum spectral correlation
(min.cor
) for a match.
combine_peaks(
peak_table,
tol = 0.01,
min.cor = 0.9,
choose = "max",
verbose = getOption("verbose")
)
peak_table |
Peak table from |
tol |
Tolerance for matching retention times (maximum retention time
difference). Defaults to |
min.cor |
Minimum spectral correlation to confirm a match. Defaults to
|
choose |
If |
verbose |
Logical. Whether to print status to the console. |
A peak table similar to the input peak table, but with duplicate columns combined according to the specified criteria.
Ethan Bass
get_peaks
Other utility functions:
get_lambdas()
,
get_times()
,
merge_peaks()
,
reshape_chroms()
,
reshape_peaktable()
data(pk_tab)
data(Sa_warp)
pk_tab <- attach_ref_spectra(pk_tab)
combine_peaks(pk_tab, tol = .02, min.cor = .9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.