mapOneNaive: use grep or agrep to find a match for a naive token into...

Description Usage Arguments Value Examples

View source: R/mapNaive.R

Description

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

Usage

1
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

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

ontoProc documentation built on Nov. 8, 2020, 4:49 p.m.