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.1.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.1-py3-none-any.whl (111.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hpo_toolkit-0.8.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f44d3601e6860b787f995ff23165595cab528a10917c0d2d7a898d5516b3e5bc
MD5 b04b6f7b62ad03910414e187a230f71e
BLAKE2b-256 8fc9e483f1bfc7b126ec04fa6c34d60f9122e752f70e4879147a03e78a0b8a03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hpo_toolkit-0.8.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32d5588878743c77ddca87703beb6345f757e6418c15d69b7b5f4ab99d972119
MD5 8cbca26421263441b380a43c0dbdd771
BLAKE2b-256 dc9941604bd1991e573238dae2b35adf65c5045bfee1dfbe030435050da01b42

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