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.3.tar.gz
(103.9 kB
view details)
Built Distribution
hpo_toolkit-0.5.3-py3-none-any.whl
(108.4 kB
view details)
File details
Details for the file hpo_toolkit-0.5.3.tar.gz
.
File metadata
- Download URL: hpo_toolkit-0.5.3.tar.gz
- Upload date:
- Size: 103.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff69c33cfdcff2899b57765e7f871264e1b194870edd01f86ff9bd731d532bf9 |
|
MD5 | eda6e5aba09dbc20e1d70b38fc1ae411 |
|
BLAKE2b-256 | 898fe3a4e9a02efae0800c025494ec745388a2855516ab295b965bc57a83d344 |
File details
Details for the file hpo_toolkit-0.5.3-py3-none-any.whl
.
File metadata
- Download URL: hpo_toolkit-0.5.3-py3-none-any.whl
- Upload date:
- Size: 108.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 331a7479be71c74d3ab687a1822bde6168744681fc3bafe35824f1ed130d9eeb |
|
MD5 | cd6d595e5e91ccab9c51fea9a9ed6764 |
|
BLAKE2b-256 | 431815ebf37edc7bad06d6742730f191eccdea53bb662367c7f10ef53bab0719 |