[BioC] GO Term2entrezgene

Sean Davis sdavis2 at mail.nih.gov
Mon Oct 13 18:30:34 CEST 2008


On Mon, Oct 13, 2008 at 12:18 PM, Weiwei Shi <helprhelp at gmail.com> wrote:
> Hi,
>
> I am wondering if I can get a list (x) for BP category of GOTERM whose
> structure is like:
>
> x$GOTermID1:  entrezgene id1, entrezgene id2.....
> x$GOTermID2:  entrezgene id1, entrezgene id2.....
> ...
>
> I did not find any pdf which shows me how to get this.

You didn't mention what organism you want or your sessionInfo(), but
assuming human and R-2.7 or later:

library(org.Hs.eg.db)
x <- as.list(org.Hs.egGO2ALLEGS)

This will give you all the GO terms.  You could limit to BP by using
the GO package to find all GOBPOFFSPRING.

Sean



More information about the Bioconductor mailing list