is_ontology_id: Looks like an ontology ID

is_ontology_idR Documentation

Looks like an ontology ID

Description

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


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