blank_substraction {GCalignR} | R Documentation |
Subtraction of blank readings from sample readings
Description
For each substance that is present in blanks, samples are corrected by subtraction of the respective quantity. If more than one sample is submitted, abundances are averaged. This procedure is sensitive to differences in the total concentration of samples and should be applied to samples where the preparation yields comparable concentrations for each sample.
Usage
blank_substraction(input = NULL, blanks = NULL, conc_col_name = NULL)
Arguments
input |
A GCalign Object |
blanks |
Character vector of names of negative controls. |
conc_col_name |
If the input is a GCalign object the variable containing the abundance values needs to be specified. |
Details
Substances that are present in one or more blanks are identified in the aligned dataset, then the mean abundance is calculated for the blanks and the corresponding value is subtracted from each sample. If the control contains higher concentration (i.e. blank substation creates negative abundances) warnings will be shown and the respective value will be set to zero
Examples
## Not run
#out <- blank_substraction(aligned_peak_data, blanks = "M2", conc_col_name = "area")