splitIntoGroups {edgeR}R Documentation

Split the data from a DGEList object according to group

Description

Split the data from a DGEList object according to group

Usage

 
splitIntoGroups(object)

Arguments

object DGEList, list containing the raw data with elements data (table of counts), group (vector indicating group) and lib.size (vector of library sizes)

Value

list in which each element is a matrix of count data for an individual group

Author(s)

Davis McCarthy

Examples

# generate raw data from NB, create list object
y<-matrix(rnbinom(80,size=1,mu=10),nrow=20)
d<-DGEList(data=y,group=rep(1:2,each=2),lib.size=rep(c(1000:1001),2))
rownames(d$data)<-paste("tagno",1:nrow(d$data),sep=".")
z<-splitIntoGroups(d)

[Package edgeR version 1.2.4 Index]