View source: R/text_preprocessing.R
map_ontology | R Documentation |
This function maps terms to standard biomedical ontologies like MeSH or UMLS.
map_ontology(
terms,
ontology = c("mesh", "umls"),
api_key = NULL,
fuzzy_match = FALSE,
similarity_threshold = 0.8,
mesh_query = NULL,
semantic_types = NULL,
dictionary_type = "disease"
)
terms |
Character vector of terms to map |
ontology |
Character string. The ontology to use: "mesh" or "umls" |
api_key |
UMLS API key (required if ontology = "umls") |
fuzzy_match |
Logical. If TRUE, allows fuzzy matching of terms |
similarity_threshold |
Numeric between 0 and 1. Minimum similarity for fuzzy matching |
mesh_query |
Additional query to filter MeSH terms (only if ontology = "mesh") |
semantic_types |
Vector of semantic types to filter UMLS results |
dictionary_type |
Type of dictionary to use ("disease", "drug", "gene", etc.) |
A data frame with mapped terms and ontology identifiers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.