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

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

Now you have HPO concepts and the ontology hierarchy 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.4.0.tar.gz (95.7 kB view details)

Uploaded Source

Built Distribution

hpo_toolkit-0.4.0-py3-none-any.whl (100.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hpo-toolkit-0.4.0.tar.gz
  • Upload date:
  • Size: 95.7 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.4.0.tar.gz
Algorithm Hash digest
SHA256 548620cdad079b6e13f2a8507746c9c05f716ccbcf49310a17c873c041df2ecf
MD5 6ecbe0683534ab0fe635eea95ceafa74
BLAKE2b-256 2845ed2418d7620e37c2e30b6d938e303b3c1351817a8f4accaa916cb8b58681

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hpo_toolkit-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 100.6 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 725b96d63b8737a612810c508a4dd8c9d3024b1dcbfd4f16be2321dfe9da7135
MD5 c60e28193bd1e9203deac89a866ea160
BLAKE2b-256 23c28ff4702e80a1a4520b20eb095a2bf830c05cd71d22e04619280a7e344623

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