getGOList {GeneAnswers} | R Documentation

## 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.

### 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.

### Value

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

### Author(s)

Gang Feng, Pan Du and Simon Lin

### 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

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

[Package GeneAnswers version 2.28.0 Index]