Description Usage Arguments Details Value See Also Examples
Removes batch differences from an expression matrix.
1 | batchCorrection(x, b)
|
x |
An |
b |
A vector indicating batch membership for each column/sample in |
The idea is to correct for “batch-effect” systematic bias caused by inconsistent sample processing. In this context a “batch” may include groups of samples that were processed together, or scanned on the same date, etc.
This function adjusts each row (gene) of the expression matrix independently: For each row, a constant is added to all measurements within a batch, such that the mean within each batch is equal to the mean of the entire row.
Either an ExpressionSet
or a matrix (corresponding to x
).
1 2 3 4 5 | ## The Dilution data set was measured on two different scanners.
library(affydata)
data(Dilution)
eset <- rma(Dilution)
esetCorrected <- batchCorrection(eset, b = Dilution$scanner)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.