get_names {GOfuncR} | R Documentation

## Get the full names of gene ontology categories given the IDs

### Description

Returns the full names and the domains of GO-categories given the GO-IDs, e.g. 'GO:0042254'. By default the package's integrated GO-graph is used, but a custom ontology can be defined, too.

### Usage

    get_names(go_ids, term_df = NULL, godir = NULL)

### Arguments

`go_ids` | a character() vector of GO-IDs, e.g. c('GO:0051082', 'GO:0042254').
`term_df` | optional data.frame() with an ontology 'term' table. Alternative to the default integrated GO-graph or `godir`.
`godir` | optional character() specifying a directory that contains the ontology table 'term.txt'. Alternative to the default integrated GO-graph or `term_df`.

### Details

For details on how to use a custom ontology with `term_df` or `godir` please refer to the package's vignette. The advantage of `term_df` over `godir` is that the latter reads the file 'term.txt' from disk and therefore takes longer.

### Value

a data.frame() with three columns: go_id (character()), go_name (character()) and root_node (domain, character()).

### Author(s)

Steffi Grote

### References

[1] Ashburner, M. et al. (2000). Gene Ontology: tool for the unification of biology. Nature Genetics 25, 25-29.

### See Also

`get_ids`
`get_child_nodes`
`get_parent_nodes`

### Examples

    ## get the full names of three random GO-IDs
    get_names(c('GO:0051082', 'GO:0042254', 'GO:0000109'))

[Package GOfuncR version 1.4.0 Index]