[BioC] Splitting a limma MAlist by a factor

Gordon Smyth smyth at wehi.edu.au
Sat Jan 29 13:49:15 CET 2005


>Date: Fri, 28 Jan 2005 07:27:56 -0500
>From: Sean Davis <sdavis2 at mail.nih.gov>
>Subject: [BioC] Splitting a limma MAlist by a factor
>To: Bioconductor <bioconductor at stat.math.ethz.ch>
>
>I would like to do:
>
>MA.split <- split(MA,factor1)
>
>However, because MAlists are formal classes, such a construct doesn't
>seem to work.  Does anyone have an easy of splitting an MAlist like
>this?

a <- levels(factor1)
x <- list()
for (i in a) x[[i]] <- MA[factor1==i,]

Gordon

>Thanks,
>Sean



More information about the Bioconductor mailing list