Skip to main content

A toolkit for working with Human Phenotype Ontology in Python

Project description

hpo-toolkit

PyPI - Python Version PyPi downloads Build status GitHub release

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.8.0.tar.gz (106.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hpo_toolkit-0.8.0-py3-none-any.whl (111.4 kB view details)

Uploaded Python 3

File details

Details for the file hpo_toolkit-0.8.0.tar.gz.

File metadata

  • Download URL: hpo_toolkit-0.8.0.tar.gz
  • Upload date:
  • Size: 106.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hpo_toolkit-0.8.0.tar.gz
Algorithm Hash digest
SHA256 59dd877730f114e41834b4f4d659b488fa007b20429491ce79d61729027c7874
MD5 f8ec5614e28d0cf9430cd6270d4f3b7e
BLAKE2b-256 9027c79a6d7b7ccf1bfc7acb51bb6bbd34b3cc92822ed588b2c3da4575268d8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hpo_toolkit-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 111.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hpo_toolkit-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4454571c48482f6ac80fcd929f87712ae43ecd2e1784ca714464706c5543661
MD5 7202a4e7f0d46e16a2c37aa553013f7d
BLAKE2b-256 f1ac48383bd30e75f8c9c8a7139a073d6bd966ca178e4bd4e6d71b3cdd706b9c

See more details on using hashes here.

Supported by

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