A toolkit for working with Human Phenotype Ontology in Python
Reason this release was yanked:
Due to bug in `IndexedOntologyGraph.is_leaf`.
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.2.tar.gz
(96.1 kB
view hashes)
Built Distribution
hpo_toolkit-0.4.2-py3-none-any.whl
(101.0 kB
view hashes)
Close
Hashes for hpo_toolkit-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 447c6aa50b7d4b99de68f2f1affab023bcd6bfd4fb8bb185b3ba1b8457657841 |
|
MD5 | 538bef7d54478f4b85a3d71b6d69f0b7 |
|
BLAKE2b-256 | 095ae3036f822206db3ae13d3be9c52e3daf331f32efbc83a8de1228ab53f50a |