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 in Python.

Loading HPO is as simple as:

import hpotk

hpo = hpotk.load_ontology('http://purl.obolibrary.org/obo/hp.json')

Loading HPO annotations is accomplished 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)

# Phenotype annotations for 12,468 rare diseases is at your fingertips.
assert len(diseases) == 12_468

Check out the User guide and the API reference for more info:

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

Uploaded Source

Built Distribution

hpo_toolkit-0.3.1-py3-none-any.whl (94.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hpo-toolkit-0.3.1.tar.gz
  • Upload date:
  • Size: 91.3 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.3.1.tar.gz
Algorithm Hash digest
SHA256 6d90aad11fb1c69dd949a3375476f7c7748c2d60e2bcf741c7e154d798df9e67
MD5 38b3295026c7d74f1324cb46746a1274
BLAKE2b-256 4e1e7e89ef9ee960aaf9bd47076a3d609f2db6ced321b40f386c39964a2a3e66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hpo_toolkit-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 94.8 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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d702a3a2cc7c76e07b400af7019f306f9de83fcf551c3b2baec4c5dbda5fd742
MD5 024e7f02c826db2aab918aac3dde280e
BLAKE2b-256 7413b1184c5741050c469a59b1bb2cc6226a477403c796f9cea285e033205a43

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