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
mainbranch) - Latest documentation (bleeding edge, latest commit on
developmentbranch)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hpo_toolkit-0.7.0.tar.gz.
File metadata
- Download URL: hpo_toolkit-0.7.0.tar.gz
- Upload date:
- Size: 106.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72a978e1acf0e275c1cd05bdccb76b3a9364b74fa150b5cc533894727ae742ff
|
|
| MD5 |
e2391cbff75edd7a39a2913430878326
|
|
| BLAKE2b-256 |
d8ec9ff306c52cd091572437ade9075f50eace6a197928366aafee554503e3fe
|
File details
Details for the file hpo_toolkit-0.7.0-py3-none-any.whl.
File metadata
- Download URL: hpo_toolkit-0.7.0-py3-none-any.whl
- Upload date:
- Size: 111.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02bb526a4943204c614eade7e4dec8c900c791d557d4eff8dc160d4f25ef7c54
|
|
| MD5 |
f42a155b103b6ee10834b2e694cd0da9
|
|
| BLAKE2b-256 |
3fec19f7737d99d579a3c631afc48b307137a6ade7a3cbe4a06756077105122e
|