is_ontology_id {OmnipathR} | R 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

[Package OmnipathR version 3.0.0 Index]