getOffset {edgeR}R Documentation

Extract Vector of Offsets from DGEList Object

Description

Returns the lib.size component of the samples component of DGEList object multiplied by the norm.factors component

Usage

getOffset(object) 

Arguments

object

DGEList object containing (at least) the elements counts (table of raw counts), group (factor indicating group) and samples, which contains lib.size (numeric vector of library sizes) and norm.factors (numeric vector of normalization factors).

Value

getOffset returns a numeric vector

Author(s)

Gordon Smyth, Davis McCarthy

See Also

DGEList for more information about the DGEList class. as.matrix.DGEList.

Examples

# generate raw counts from NB, create list object
y<-matrix(rnbinom(20,size=1,mu=10),nrow=5)
d<-DGEList(counts=y,group=rep(1:2,each=2),lib.size=rep(c(1000:1001),2))
getOffset(d)

[Package edgeR version 2.4.3 Index]