svaBatchCor: Runs sva batch correction converts logFC to FC

View source: R/svaBatchCor.R

svaBatchCorR Documentation

Runs sva batch correction converts logFC to FC

Description

Runs sva batch correction converts logFC to FC

Usage

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

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 April 2, 2022, 9:36 a.m.