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

bl(X)

Arguments

X

the spectrum to be baseline corrected

Value

an x with a corrected baseline

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.

See also

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

Author

Kyle Bario kylebario1@gmail.com

Examples

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