# load the GO library
library(GO.db)
# 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") # 全部信息保存为文件
REF
https://www.biostars.org/p/50564/
原文:https://www.cnblogs.com/emanlee/p/14605582.html