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.2.tar.gz
(103.7 kB
view details)
Built Distribution
hpo_toolkit-0.5.2-py3-none-any.whl
(108.4 kB
view details)
File details
Details for the file hpo_toolkit-0.5.2.tar.gz
.
File metadata
- Download URL: hpo_toolkit-0.5.2.tar.gz
- Upload date:
- Size: 103.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c64e08fec596dd2f52e598c57ddb9897bf4b7ff2dc15e7b4280c844de8dbf2ad |
|
MD5 | 6d375f48ce633d28670b5b361f260a8e |
|
BLAKE2b-256 | a942ec9905dc0772475d63b691fd0ffecf5078b4f489c6e2e75aa71aaed8aba4 |
File details
Details for the file hpo_toolkit-0.5.2-py3-none-any.whl
.
File metadata
- Download URL: hpo_toolkit-0.5.2-py3-none-any.whl
- Upload date:
- Size: 108.4 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 | d41cbce95a184bd019800ad1fdaa8c6d76df3f876c1ad460e945e567a1e94350 |
|
MD5 | 1baa38c77ee853cc905d0afe8cf65c39 |
|
BLAKE2b-256 | 6c9c5a14e3294cdb17dd1a77a166ba3e784c3cd9701e4d7f1e16c46d303865e5 |