ontology_ensure_name: Only ontology term names

ontology_ensure_nameR Documentation

Only ontology term names

Description

Converts a mixture of ontology IDs and names to only names. If an element of the input is missing from the chosen ontology it will be dropped. This can happen if the ontology is a subset (slim) version, but also if the input is not a valid ID or name.

Usage

ontology_ensure_name(terms, db_key = "go_basic")

Arguments

terms

Character: ontology IDs or term names.

db_key

Character: key to identify the ontology database. For the available keys see omnipath_show_db.

Value

Character vector of ontology term names.

Examples

ontology_ensure_name(c('reproduction', 'GO:0001754', 'foo bar'))
# [1] "eye photoreceptor cell differentiation" "reproduction"


saezlab/OmnipathR documentation built on Oct. 16, 2024, 11:49 a.m.