[BioC] limma

Marcus Davy mdavy at hortresearch.co.nz
Mon Nov 27 23:38:35 CET 2006


It would be better to replace the unwanted elements with NA's rather than
subset the structure, imageplot's for example will not work if the subsetted
RGList or MAList is incomplete.

e.g.

MA$M[select,] <- NA


Marcus


On 11/28/06 6:19 AM, "Naomi Altman" <naomi at stat.psu.edu> wrote:

> I usually do this using an indicator function.
>
> e.g.
> select=(eBayes.out$coef[,1]>1)               #
> selects genes for which the first coef is bigger than 1
>
> MA[select,]                 # is the set of genes for which select=T
> MA[!select,]                # is the set of genes for which select=F
>
> --Naomi
>
>
> At 11:42 AM 11/27/2006, Sean Davis wrote:
>> On Monday 27 November 2006 11:28, João Fadista
>> wrote: > Dear all, > > Does anybody know how can
>> I remove values from an MAList? > I want to
>> remove some values from a column in MA$genes
>> dataframe, and > consequently remove those rows
>> from MA$genes and MA$M. Subsetting works fine
>> with MAList objects, I think.  To remove the
>> first five genes, you would do something like:
>> MA[-c(1:5),] To remove the first five samples,
>> you could do something like: MA[,-c(1:5)] In
>> other words, rows are genes and columns are
>> samples. Sean
>> _______________________________________________
>> Bioconductor mailing list
>> Bioconductor at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/bioconductor
>> Search the archives:
>> http://news.gmane.org/gmane.science.biology.informatics.conductor
>
> Naomi S. Altman                                814-865-3791 (voice)
> Associate Professor
> Dept. of Statistics                              814-863-7114 (fax)
> Penn State University                         814-865-1348 (Statistics)
> University Park, PA 16802-2111
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor


______________________________________________________

The contents of this e-mail are privileged and/or confidenti...{{dropped}}



More information about the Bioconductor mailing list