getGOList {GeneAnswers} | R Documentation |
Retrieve GO IDs based on given gene IDs.
getGOList(geneVector, lib, GOCat = c("ALL", "BP", "CC", "MF"), level = 1)
geneVector |
a character vector containing entrez IDs |
lib |
annotation library |
GOCat |
type of Gene Ontology |
level |
positive integer to specify how many levels GO IDs will be removed. |
User can specify which subtype of GO can be kept. "ALL" means all of subtypes are kept. Gene Ontology is a tree-like structure. Level can be used to remove top noncritical GO IDs.
return a GO list, whose names are GO IDs. Elements are gene entrez IDs belonging to the corresponding GO categories.
Gang Feng, Pan Du and Simon Lin
Feng, G., Du, P., Krett, N., Tessel, M., Rosen, S., Kibbe, W.A. and Lin, S.M., 'A collection of bioconductor methods to visualize gene-list annotations', BMC Research Notes 2010, 3:10
a <- getGOList(c('56458', '16590'), 'org.Mm.eg.db', GOCat='BP', level=2) length(a)