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
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:
- 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.4.1.tar.gz
(95.7 kB
view details)
Built Distribution
hpo_toolkit-0.4.1-py3-none-any.whl
(100.6 kB
view details)
File details
Details for the file hpo-toolkit-0.4.1.tar.gz
.
File metadata
- Download URL: hpo-toolkit-0.4.1.tar.gz
- Upload date:
- Size: 95.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fd77b2e534c40f3186f52946721187007d3521bd4fce10669a22a371989171f |
|
MD5 | b5b7813c02d2965b72822d34bb14915c |
|
BLAKE2b-256 | 9e940d26447d77727c706189102af3280fc9a2f1e5ea935af300975b34259026 |
File details
Details for the file hpo_toolkit-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: hpo_toolkit-0.4.1-py3-none-any.whl
- Upload date:
- Size: 100.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5556c4b9fff4a2c2138edea547a0d9e18d5864c4d4ce989e673ccc3c3db94096 |
|
MD5 | 0bcf9c28aa1a70d369c53d0a5092f29e |
|
BLAKE2b-256 | 2c0425eedae16433a42f54989ac2447af2d3a26fb3e498ef33bc2606d00ee73a |