bl: Baseline Correction

View source: R/bl.R

blR Documentation

Baseline Correction

Description

bl() removes the arched baseline from an NMR spectrum making the analysis more robust

Usage

bl(X)

Arguments

X

the spectrum to be baseline corrected

Details

NMR spectra often have broad signals produced by proteins within a sample that span a large portion of the ppm axis. These broad signals interfere with the analysis of specific peaks. By removing it, the anaylsis is more robust. This is achieved by calculating the trend of the spectrum using ptw::asysm() and then subtracts that from the spectrum's values.

Value

an x with a corrected baseline

Author(s)

Kyle Bario kylebario1@gmail.com

See Also

Other preproc: cali(), preproc(), read_in()

Examples

read_in(path = system.file('extdata', package = 'concentr8r'),
        exp_type = list(exp=c("PROF_URINE_NOESY")),
        n_spec = 'multiple')
Xb <- bl(X)

kylebario/concentr8r documentation built on Nov. 9, 2022, 12:47 a.m.