svaBatchCor | R Documentation |
Runs sva batch correction converts logFC to FC
svaBatchCor(dat, mmi, mm0, n.sv = NULL)
dat |
: matrix of cpms |
mmi |
: model matrix for fitting the data |
mm0 |
: null model being compared when fitting the data |
n.sv |
: number of significant surrogate variables |
Matrix of batch corrected cpms
mod <- model.matrix(~as.factor(Disease), data=pData) mod0 <- model.matrix(~1,data=pData) n.sv = num.sv (data, mod,method = "leek") cpms.corr <- svaBatchCor(cpms,mod,mod0,n.sv=n.sv)$corrected
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.