[BioC] indexing geneNames in exprs

Zhijin Wu zwu at jhsph.edu
Wed Jan 26 03:19:32 CET 2005


Hi, Lana, 
  I am not sure if this is what you mean:
  You can use which(rownames(E)=="203508_at") to get the row number. When
you have list of genes, say
  my.gene.list
you can use match(my.gene.list,rownames(E)) to get the index.
  Hope that helps.
Best,
Zhijin


On Tue, 25 Jan 2005, Lana Schaffer wrote:

> 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