Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

chromatographR (version 0.4.4)

attach_ref_spectra: Attach reference spectra

Description

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).

Usage

attach_ref_spectra(peak_table, chrom_list, ref = c("max.cor", "max.int"))

Value

A peak_table object with reference spectra attached in the $ref_spectra slot.

Arguments

peak_table

Peak table from get_peaktable.

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 (max.cor) or maximum signal intensity (max.int).

Author

Ethan Bass

See Also

get_peaks get_peaktable

Examples

Run this code
data(pk_tab)
pk_tab <- attach_ref_spectra(pk_tab, ref="max.int")
pk_tab <- attach_ref_spectra(pk_tab, ref = "max.cor")

Run the code above in your browser using DataLab