[BioC] extracting probe sets corresponding to a given gene

James W. MacDonald jmacdon at med.umich.edu
Mon Feb 20 14:41:52 CET 2006


Hi Christos,

Christos Hatzis wrote:
> Hello,
> 
> I am working through the annotation packages and trying to find a way to
> extract the probe sets that correspond to a given gene.  I have come up with
> the following, which does not look very direct:
> 
> as.list(hgu133aSYMBOL)[ as.list(hgu133aSYMBOL) == "ESR1" ]
> 
> Is there a more efficient way to do this?

Yup,

get("ESR1", hgu133aSYMBOL)

You can use mget() to get() multiple values as well.

HTH,

Jim


-- 
James W. MacDonald, M.S.
Biostatistician
Affymetrix and cDNA Microarray Core
University of Michigan Cancer Center
1500 E. Medical Center Drive
7410 CCGC
Ann Arbor MI 48109
734-647-5623



More information about the Bioconductor mailing list