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
)
A data.table containing HPO IDs and other metadata.
Output of load_phenotype_to_genes mapping phenotypes to gene annotations.
Human Phenotype Ontology object, loaded from get_ontology.
Add disease names and descriptions.
logical; if TRUE
, rows from x
which have no matching row
in y
are included. These rows will have 'NA's in the columns that are usually
filled with values from y
. The default is FALSE
so that only rows with
data from both x
and y
are included in the output.
Get definitions from the HPO API, as opposed to a static local dataset.
Number (>1) or proportion (<1) of worker cores to use.
See allow.cartesian
in [.data.table
.
phenos <- example_phenos()
phenos2 <- add_disease(phenos = phenos)
#> Reading cached RDS file: phenotype_to_genes.txt
#> + Version: v2024-12-12
#> Adding genes and disease IDs.