add_disease | R Documentation |
Annotate each HPO term with diseases that they are associated with.
add_disease(
phenos,
phenotype_to_genes = load_phenotype_to_genes(),
hpo = get_hpo(),
add_descriptions = FALSE,
all.x = TRUE,
use_api = FALSE,
workers = NULL,
allow.cartesian = FALSE
)
phenos |
A data.table containing HPO IDs and other metadata. |
phenotype_to_genes |
Output of load_phenotype_to_genes mapping phenotypes to gene annotations. |
hpo |
Human Phenotype Ontology object, loaded from get_ontology. |
add_descriptions |
Add disease names and descriptions. |
all.x |
logical; if |
use_api |
Get definitions from the HPO API, as opposed to a static local dataset. |
workers |
Number (>1) or proportion (<1) of worker cores to use. |
allow.cartesian |
See |
phenos <- example_phenos()
phenos2 <- add_disease(phenos = phenos)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.