7.3 years ago by
If you know R you can easily access terms and associated IDs as follows:
# load the GO library
# extract a named vector of all terms
goterms <- Term(GOTERM)
# work with it in R, or export it to a file
write.table(goterms, sep="\t", file="goterms.txt")
The result "goterms" is a named array of terms where the values are the terms and the names are the GO IDs. Thus you could work within R to match your terms of interest to the list and return the associated IDs, or you could write the result out to a file. The line above creates a file with two columns: id and term, with just over 31,000 lines (since it's a named array, R puts the names in a column). The GO library has a lot of functions for working with GO ids, and lots of mappings of various sorts (try ls("package:GO.db") to see what's available).