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
##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)
Run the code above in your browser using DataLab