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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hpo-toolkit-0.3.1.post1.tar.gz
  • Upload date:
  • Size: 91.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.3.1.post1.tar.gz
Algorithm Hash digest
SHA256 ef5a2dfda9ae4d0f6bc8ec55120a35c6c7780baa7df7ebcf86ebba16c0a32706
MD5 be0a2572e618cdaaff5295df1617f870
BLAKE2b-256 1387fead1e6a0c2a0c627cd3a5b352e9a5127a1e0642c3b5267bba23cbeb1eea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for hpo_toolkit-0.3.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 b74ae7085670673ed1bdc4a26fe1791e0d683d02fd0a47fb78105a4923266edd
MD5 647bc801bce858a91a0aacdffd69d1f0
BLAKE2b-256 f5cb8d8f4cba86bd715cda9e04fde1c42dc07ada54d0d5fc0d894a65bccd49fa

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