Skip to contents

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.

Usage

is_ontology_id(terms)

Arguments

terms

Character vector with strings to check.

Value

A logical vector with the same length as the input.

Examples

is_ontology_id(c('GO:0000001', 'reproduction'))
#> [1]  TRUE FALSE
# [1]  TRUE FALSE