ontology_ensure_id | R Documentation |
Converts a mixture of ontology IDs and names to only IDs. 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.
ontology_ensure_id(terms, db_key = "go_basic")
terms |
Character: ontology IDs or term names. |
db_key |
Character: key to identify the ontology database. For the
available keys see |
Character vector of ontology IDs.
ontology_ensure_id(c('mitochondrion inheritance', 'GO:0001754'))
# [1] "GO:0000001" "GO:0001754"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.