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.

Value

adjacency matrix

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!