splitIntoGroups {edgeR} | R Documentation |
Split the data from a DGEList object according to group
splitIntoGroups(object)
object |
DGEList , list containing the raw data with elements data (table of counts), group (vector indicating group) and lib.size (vector of library sizes) |
list in which each element is a matrix of count data for an individual group
Davis McCarthy
# 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)