mapOneNaive {ontoProc} | R Documentation

## use grep or agrep to find a match for a naive token into ontology

### Description

use grep or agrep to find a match for a naive token into ontology

### Usage

    mapOneNaive(naive, onto, useAgrep = FALSE, ...)

### Arguments

`naive` | character(1)
`onto` | an instance of ontologyIndex::ontology_index
`useAgrep` | logical(1) if TRUE, agrep will be used
`...` | passed to agrep if used

### Value

if a match is found, the result of grep/agrep with value=TRUE is returned; otherwise a named NA_character_ is returned

named vector, names are ontology identifiers, values are matched strings

### Examples

    co = ontoProc::getCellOnto()
    mapOneNaive("astrocyte", co)

[Package ontoProc version 1.14.0 Index]