cpmRemoveSV: Apply cpm to voom-transformed count data, and return the voom...

View source: R/sva.R

cpmRemoveSVR Documentation

Apply cpm to voom-transformed count data, and return the voom expression matrix with surrogate variables' effect removed

Description

Apply cpm to voom-transformed count data, and return the voom expression matrix with surrogate variables' effect removed

Usage

cpmRemoveSV(counts, designMatrix)

Arguments

counts

A matrix of counts

designMatrix

Design matrix

Value

The cpm matrix, with SV effects removed

Examples


exCounts <- matrix(rpois(12000, 10), nrow=2000, ncol=6)
exCounts[1:100, 2:3] <- exCounts[1:100,2:3]+20
exDesign <- model.matrix(~gl(2,3))
head(cpmRemoveSV(exCounts, designMatrix=exDesign))
## compare the results without SV removal, note the values in the second 
## and third column are much larger than the rest
head(cpm(exCounts))


bedapub/ribiosNGS documentation built on Feb. 10, 2025, 12:34 a.m.