Create adjacency matrix of HPO child-parent relationships.
adjacency_matrix(
hpo = get_hpo(),
terms = unique(hpo$id),
method = "HPOExplorer",
verbose = TRUE
)
Arguments
- hpo
Human Phenotype Ontology object, loaded from ontologyIndex.
- terms
Character vector of HPO IDs.
- method
Method to use to create the adjacency matrix.
- verbose
Print messages.
Examples
terms <- get_hpo()$id[seq(1000)]
#> ℹ All local files already up-to-date!
adjacency <- adjacency_matrix(terms = terms)
#> Creating adjacency matrix for 1,000 term(s).
#> ℹ All local files already up-to-date!