bl.Rd
bl()
removes the arched baseline from an NMR spectrum making the analysis more robust
bl(X)
X | the spectrum to be baseline corrected |
---|
an x with a corrected baseline
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.
Kyle Bario kylebario1@gmail.com
read_in(path = system.file('extdata', package = 'concentr8r'), exp_type = list(exp=c("PROF_URINE_NOESY")), n_spec = 'multiple') Xb <- bl(X)