bl_corr {gcxgclab}R Documentation

Baseline correction

Description

bl_corr performs baseline correction of the intensity values.

Usage

bl_corr(data, gamma = 0.5, subtract = NULL)

Arguments

data

a list object. Data extracted from a cdf file, ideally the output from extract_data().

gamma

a float object. Correction factor between 0 and 1. 0 results in almost no values being subtracted to the baseline, 1 results in almost everything except the peaks to be subtracted to the baseline. Default is 0.5.

subtract

a list object. Data extracted from a cdf file, ideally the output from extract_data().

Details

This function performs baseline correction and baseline subtraction for TIC values.

Value

A data.frame object. A data frame of the overall time index, the x-axis retention time, the y-axis retention time, and the baseline corrected total intensity values.

Examples

file <- system.file("extdata","sample1.cdf",package="gcxgclab")
frame <- extract_data(file,mod_t=.5)
sm_frame <- smooth(frame, lambda=10)
blc_frame <- bl_corr(sm_frame, gamma=0.5)
plot_chr(blc_frame, title='Baseline Corrected')


[Package gcxgclab version 1.0.1 Index]