Entering edit mode
What is the recommended way to find the GO term that corresponds to a
given GO accession number? I can do this:
> library(GO.db)
> Term(as.list(GOTERM["GO:0000166"])[[1]])
[1] "nucleotide binding"
But this seems a bit inelegant, using as.list() and list subsetting as
an
intermediaries both inside and outside of S4 generic functions. And
it
needs more work to generalise to multiple accession numbers. Is there
something more direct?
Thanks a lot
Gordon
-----------------------------------------------
Associate Professor Gordon K Smyth,
NHMRC Senior Research Fellow,
Bioinformatics Division,
Walter and Eliza Hall Institute of Medical Research,
1G Royal Parade, Parkville, Vic 3052, Australia.
smyth at wehi.edu.au
http://www.wehi.edu.au/bioinformatics
http://www.statsci.org/smyth