View source: R/3-functions_relabund.R
nmr_relabund | R Documentation |
Compute relative abundance of compound classes for each sample.
nmr_relabund(dat, method)
dat |
Processed spectral data, output from (a) |
method |
The method for calculating relative abundance. Options include (a) "AUC", integrating the spectral region within each bin; (b) "peaks", adding areas of peaks if a peak-picked file is provided. |
A data.frame
with columns describing relative contributions of
compound classes. Compound classes are determined by selecting the desired
binset.
Kaizad Patel
sdir <- system.file("extdata", "kfp_hysteresis", "peaks_mnova_multiple", package = "nmrrr")
peaks <- nmr_import_peaks(path = sdir, method = "multiple columns")
peaks <- nmr_assign_bins(peaks, bins_Clemente2012)
nmr_relabund(peaks, "peaks")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.