hpo_api: HPO API

View source: R/hpo_api.R

hpo_apiR Documentation

HPO API

Description

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

Usage

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")

neurogenomics/HPOExplorer documentation built on July 17, 2024, 3:12 p.m.