Learn R Programming

GeneAnswers (version 2.14.0)

getGOList: Get GO list of given genes

Description

Retrieve GO IDs based on given gene IDs.

Usage

getGOList(geneVector, lib, GOCat = c("ALL", "BP", "CC", "MF"), level = 1)

Arguments

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.

Value

return a GO list, whose names are GO IDs. Elements are gene entrez IDs belonging to the corresponding GO categories.

Details

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.

References

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

See Also

getCategoryList

Examples

Run this code
a <- getGOList(c('56458', '16590'), 'org.Mm.eg.db', GOCat='BP', level=2)
length(a)

Run the code above in your browser using DataLab