View source: R/attach_metadata.R
attach_ref_spectra | R Documentation |
Gathers reference spectra and attaches them to peak_table object. Reference
spectra are defined either as the spectrum with the highest intensity (
max.int
) or as the spectrum with the highest average correlation
to the other spectra in the peak_table (max.cor
).
attach_ref_spectra(peak_table, chrom_list, ref = c("max.cor", "max.int"))
peak_table |
Peak table from |
chrom_list |
A list of chromatograms in matrix form (timepoints x wavelengths). |
ref |
What criterion to use to select reference spectra.
Current options are maximum correlation ( |
A peak_table
object with reference spectra attached in the
$ref_spectra
slot.
Ethan Bass
get_peaks
get_peaktable
data(pk_tab) pk_tab <- attach_ref_spectra(pk_tab, ref="max.int") pk_tab <- attach_ref_spectra(pk_tab, ref = "max.cor")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.