is_ontology_id {OmnipathR} | R Documentation |
Tells if the input has the typical format of ontology IDs, i.e. a code of capital letters, a colon, followed by a numeric code.
is_ontology_id(terms)
terms |
Character vector with strings to check. |
A logical vector with the same length as the input.
is_ontology_id(c('GO:0000001', 'reproduction')) # [1] TRUE FALSE