map_disease | R Documentation |
Map disease IDs (e.g. "OMIM:101200") to names (e.g. "Apert syndrome")
map_disease(
dat,
id_col = "disease_id",
fields = c("disease", "categories", "genes")[1],
use_api = FALSE,
return_dat = FALSE,
workers = NULL,
all.x = TRUE,
allow.cartesian = FALSE
)
dat |
A data.table with a column of disease IDs. |
id_col |
The name of the column with the disease IDs. |
fields |
The fields to extract from the API response. |
use_api |
Use the API to get the disease names and descriptions.
Otherwise, use a cached data.table ( |
return_dat |
Return the data.table with the mapped fields. |
workers |
Number (>1) or proportion (<1) of worker cores to use. |
all.x |
logical; if |
allow.cartesian |
See |
dat <- HPOExplorer::load_phenotype_to_genes()
out <- map_disease(dat = dat, workers=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.