get_names {GOfuncR} | R Documentation |
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.
get_names(go_ids, term_df = NULL, godir = NULL)
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 |
optional character() specifying a directory that
contains the ontology table 'term.txt'.
Alternative to the default integrated GO-graph or |
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.
a data.frame() with three columns: go_id (character()), go_name (character()) and root_node (domain, character()).
Steffi Grote
[1] Ashburner, M. et al. (2000). Gene Ontology: tool for the unification of biology. Nature Genetics 25, 25-29.
get_ids
get_child_nodes
get_parent_nodes
## get the full names of three random GO-IDs get_names(c('GO:0051082', 'GO:0042254', 'GO:0000109'))