Skip to main content

A toolkit for working with Human Phenotype Ontology in Python

Project description

hpo-toolkit

Build status PyPi downloads PyPI - Python Version

A toolkit for working with Human Phenotype Ontology (HPO) and HPO disease annotations in Python.

Example

Loading HPO is as simple as:

import hpotk

store = hpotk.configure_ontology_store()
hpo = store.load_hpo()

Now you have the concepts and the hierarchy of the latest HPO release at your fingertips.

Next, load the HPO disease annotations by running:

from hpotk.annotations.load.hpoa import SimpleHpoaDiseaseLoader

hpoa_path = 'https://github.com/obophenotype/human-phenotype-ontology/releases/download/v2023-10-09/phenotype.hpoa'

loader = SimpleHpoaDiseaseLoader(hpo)
diseases = loader.load(hpoa_path)

assert len(diseases) == 12_468

You got yourself phenotype annotations of 12,468 rare diseases.

Learn more

Find more info in our detailed documentation:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hpo-toolkit-0.5.0.tar.gz (100.2 kB view details)

Uploaded Source

Built Distribution

hpo_toolkit-0.5.0-py3-none-any.whl (106.0 kB view details)

Uploaded Python 3

File details

Details for the file hpo-toolkit-0.5.0.tar.gz.

File metadata

  • Download URL: hpo-toolkit-0.5.0.tar.gz
  • Upload date:
  • Size: 100.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for hpo-toolkit-0.5.0.tar.gz
Algorithm Hash digest
SHA256 7f1fcc4c6b0a2e615d37e486e6b227dcbb6b0a783a5d228c726e3795c8ffb03d
MD5 477415c8a94dbecdb52a138a16c47e92
BLAKE2b-256 89ebad451a04adf2f1bc42307c493e5c10c8126dde1bb9ecc2b1a1ae6709eb8d

See more details on using hashes here.

File details

Details for the file hpo_toolkit-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: hpo_toolkit-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 106.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for hpo_toolkit-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79f85e197a6706dab55dc70b17c51f09203dd765571815c81a3bc3d3cb97d213
MD5 1a8f8cba1f0f667715096fefd0320458
BLAKE2b-256 24b480a09fb8f95c5b60cd473c557a26dcc011fc6d5e001ba15ea4d486c7f2fd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page