[BioC] indexing geneNames in exprs

Sean Davis sdavis2 at mail.nih.gov
Wed Jan 26 01:28:19 CET 2005


Lana,

To get the index, do:

which(rownames(E)=='203508_ad')

You could also do:

E['203508_at',]

to get the row of E.

Also, note that there are multiple ways of accessing data directly from an 
expression or affybatch object.

Sean

----- Original Message ----- 
From: "Lana Schaffer" <schaffer at scripps.edu>
To: <bioconductor at stat.math.ethz.ch>
Sent: Tuesday, January 25, 2005 6:38 PM
Subject: [BioC] indexing geneNames in exprs


> Hi,
> I am trying to index into the expression array using a geneName.
> gcrma_exp <- gcrma(affybatch)
> E <- exprs(gcrma_exp)
>
> E is a matrix with the names of rows as geneNames  (ie. 203508_at" ).
> I would like to get an index of E using a specific name such as 203508_at.
> Would someone be able to show how to do this?
> Thanks,
> Lana
> [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
>



More information about the Bioconductor mailing list