cosine_by_roi_scan: Compare Spectra by ROI and Scan

View source: R/cosine_by_roi_scan.R

cosine_by_roi_scanR Documentation

Compare Spectra by ROI and Scan

Description

Take candidate spectra, return a summary of the best matches against a set of master spectra. A prepackaged function to identify a known compound within an ROI in targeted analysis.

Usage

cosine_by_roi_scan(spectra_candidate, spectra_master, viz = F)

Arguments

spectra_candidate

Tibble containing full scans and an roi column. Can be multiple scans/ROI.

spectra_master

Tibble containing standard spectra, also identified with an roi number. Should be only 1 scan/ROI.

Value

a summary of spectra_candidate with only the best match for each ROI and additional column cos.

Examples

scan_cosines <- cosine_by_roi_scan(spectra_candidate, spectra_master)


octopode/tidychrom documentation built on Nov. 2, 2022, 1:32 a.m.