get_ids {GOfuncR} | R Documentation |
Returns GO-categories given (part of) their name. Matching is not case-sensitive.
get_ids(go_name, term_df = NULL, godir = NULL)
go_name |
character(). (partial) name of a GO-category |
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: the full names (character()) of the GO-categories that contain go_name
; together with the GO-domain ('cellular_component', 'biological_process' or 'molecular_function') and the GO-category IDs (character()).
This is just a grep(..., ignore.case=TRUE)
on the node names of the ontology.
More sophisticated searches, e.g. with regular expressions, could be performed on the table returned by get_ids('')
which lists all non-obsolete GO-categories.
Steffi Grote
[1] Ashburner, M. et al. (2000). Gene Ontology: tool for the unification of biology. Nature Genetics 25, 25-29.
get_names
get_parent_nodes
get_child_nodes
## get GO-IDs of categories that contain 'gabaergic' in their names get_ids('gabaergic') ## get GO-IDs of categories that contain 'blood-brain barrier' in their names get_ids('blood-brain barrier') ## get all valid GO-categories all_nodes = get_ids('') head(all_nodes)