correctionCenter | R Documentation |
Correction of batch/block differences.
correctionCenter(d, block = "block", type = c("mean", "median"))
## S4 method for signature 'AnalysisData'
correctionCenter(d, block = "block", type = c("mean", "median"))
d |
S4 object of class |
block |
sample information column name to use containing sample block groupings |
type |
type of average to use |
There can sometimes be artificial batch related variability introduced into metabolomics analyses as a result of analytical instrumentation or sample preparation. With an appropriate randomised block design of sample injection order, batch related variability can be corrected using an average centring correction method of the individual features.
An S4 object of class AnalysisData
containing the corrected data.
correctionCenter
: Correction using group average centring.
## Initial example data preparation
library(metaboData)
d <- analysisData(abr1$neg[,200:300],abr1$fact) %>%
occupancyMaximum(occupancy = 2/3)
## Group total ion count distributions prior to correction
d %>%
plotTIC(by = 'day',colour = 'day')
## Group total ion count distributions after group median correction
d %>%
correctionCenter(block = 'day',type = 'median') %>%
plotTIC(by = 'day',colour = 'day')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.