svaBatchCor: Runs sva batch correction converts logFC to FC

Description Usage Arguments Value Examples

View source: R/svaBatchCor.R

Description

Runs sva batch correction converts logFC to FC

Usage

1
svaBatchCor(dat, mmi, mm0, n.sv = NULL)

Arguments

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

Value

Matrix of batch corrected cpms

Examples

1
2
3
4
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

Morriseylab/ExpressExtras documentation built on Sept. 1, 2021, 3:50 p.m.