Skip to contents

`baseline_corr` provides a two-dimensional baseline correction by using the asymmetric least squares algorithm.

Usage

baseline_corr(chromatogram, ...)

Arguments

chromatogram

a raw_GCxGC object.

...

other parameters passed to baseline.corr function in the pwt package.

Details

This function takes a raw two-dimensional chromatogram and performs the baseline correction with the implemented function in baseline.corr (Eilers 2004) .

References

Eilers PH (2004). “Parametric Time Warping.” Analytical Chemistry, 76(2), 404--411.

Examples

library(colorRamps)
chrom_name <- system.file("extdata", "08GB.cdf", package = "RGCxGC")
chrom_2D <- read_chrom(chrom_name, 5L)
#> Warning: The last 51 signals will be omitted
#> Warning: data length [61051] is not a sub-multiple or multiple of the number of rows [500]
#> Retention time ranges:
#> 1D (min): 7.98 18.16 
#> 2D (sec): 0 5 
#> Acquisition rate: 100 
chrom_bsline <- baseline_corr(chrom_2D)
plot(chrom_bsline, nlevels = 150,
           color.palette = matlab.like)