liberalMap {ontoProc} | R Documentation

## Produce a data.frame with a set of naive terms mapped to all matching ontology ids and their formal terms

### Description

Produce a data.frame with a set of naive terms mapped to all matching ontology ids and their formal terms

### Usage

    liberalMap(terms, onto, useAgrep = FALSE, ...)

### Arguments

`terms` | character() vector, can use grep-compatible regular expressions
`onto` | an instance of ontologyIndex::ontology_index
`useAgrep` | logical(1) if TRUE, agrep will be used
`...` | passed to agrep if used

### Value

a data.frame

### Examples

    cands = c("astrocyte$", "oligodendrocyte", "oligodendrocyte precursor",
       "neoplastic", "^neuron$", "^vascular", "badterm")
    co = ontoProc::getCellOnto()
    liberalMap(cands, co)

[Package ontoProc version 1.12.0 Index]