mapOneNaive | R Documentation |
use grep or agrep to find a match for a naive token into ontology
mapOneNaive(naive, onto, useAgrep = FALSE, ...)
naive |
character(1) |
onto |
an instance of ontologyIndex::ontology_index |
useAgrep |
logical(1) if TRUE, agrep will be used |
... |
passed to agrep if used |
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
#co = ontoProc::getCellOnto()
co = getOnto("cellOnto", year_added="2023")
mapOneNaive("astrocyte", co)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.