liberalMap: Produce a data.frame with a set of naive terms mapped to all...

Description Usage Arguments Value Examples

View source: R/mapNaive.R

Description

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

Usage

1
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

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

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