A toolkit for working with Human Phenotype Ontology in Python
Project description
hpo-toolkit
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:
- Stable documentation (last release on
main
branch) - Latest documentation (bleeding edge, latest commit on
development
branch)
Project details
Release history Release notifications | RSS feed
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.5.1.tar.gz
(101.8 kB
view details)
Built Distribution
hpo_toolkit-0.5.1-py3-none-any.whl
(107.1 kB
view details)
File details
Details for the file hpo_toolkit-0.5.1.tar.gz
.
File metadata
- Download URL: hpo_toolkit-0.5.1.tar.gz
- Upload date:
- Size: 101.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5904a18a54f875e04434f2a89c815d206bc1238db946d453888ad84abed57d2 |
|
MD5 | 7afd63e2f1a60a7ee2d43958392caead |
|
BLAKE2b-256 | a9561b6490efabe8d97a315fc638211638ce0df3d77c7409ab536ee70eeaa8d7 |
File details
Details for the file hpo_toolkit-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: hpo_toolkit-0.5.1-py3-none-any.whl
- Upload date:
- Size: 107.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0053cf7434f0e8a40fcd622a31ce73bccce8e7813f2807347e0e3a0065014bb1 |
|
MD5 | 385227af90966c448a927e3c556a0222 |
|
BLAKE2b-256 | eb4fcf1c3c1d80595dafb996332898516b5caeda639b67f0706442d4ad4d5c24 |