Performs baseline correction on the dataset.
baseline_correction(dataset, method = "modpolyfit", ...)
list representing the dataset from a metabolomics experiment.
string representing the baseline correction method. It can be one of these methods:
"als" Asymmetric Least Squares, baseline correction by 2nd derivative constrained weighted regression
"fillPeaks" An iterative algorithm using suppression of baseline by means in local windows
"irls" Iterative Restricted Least Squares, an algorithm with primary smoothing and repeated baseline suppressions and regressions with 2nd derivative constraint
"lowpass" Low-pass filter, an algorithm for removing baselines based on Fast Fourier Transform filtering
"medianWindow" an implementation and extension of Mark S. Friedrichs' model-free algorithm
"modpolyfit" Modified polynomial fitting, an implementation of Chad A. Lieber and Anita Mahadevan-Jansen's algorithm for polynomial fitting
"peakDetection" A translation from Kevin R. Coombes et al.'s MATLAB code for detecting peaks and removing baselines
"rfbaseline" Robust Baseline Estimation, Wrapper for Andreas F. Ruckstuhl, Matthew P. Jacobson, Robert W. Field, James A. Dodd's algorithm based on LOWESS and weighted regression
"rollingBall" Ideas from Rolling Ball algorithm for X-ray spectra by M. A. Kneen and H. J. Annegarn. Variable window width has been left out
Additional parameters of the baseline correction method.
Returns the dataset with the data's baseline corrected.