Extract data from the Human Phenotype Ontology (HPO) using the Application Programming Interface (API).

hpo_api(
  hpo_id,
  type = list(NULL, "genes", "diseases")[[1]],
  url = paste("hpo.jax.org/api/hpo/term", hpo_id, type, sep = "/")
)

Arguments

hpo_id

HPO ID for a given term.

type

Type of data to extract. Set NULL to return all data.

url

API entry point. See HPO API documentation for details.

Value

A named list or data.frame of metadata for a given HPO ID.

Examples

dat <- hpo_api(hpo_id="HP:0011420", type="diseases")