gonode <- new("GOTerms", GOID="GO:1234567", Term="Test", Ontology="MF",
Definition="just for testing")
GOID(gonode)
Term(gonode)
Ontology(gonode)
##Or you can just use these methods on a GOTermsAnnDbBimap
## Not run: ##I want to show an ex., but don't want to require GO.db
# require(GO.db)
# FirstTenGOBimap <- GOTERM[1:10] ##grab the 1st ten
# Term(FirstTenGOBimap)
#
# ##Or you can just use GO IDs directly
# ids = keys(FirstTenGOBimap)
# Term(ids)
# ## End(Not run)
Run the code above in your browser using DataLab