A toolkit for working with Human Phenotype Ontology in Python
Project description
hpo-toolkit
A toolkit for working with Human Phenotype Ontology in Python.
Loading HPO is as simple as:
import hpotk
hpo = hpotk.load_ontology('http://purl.obolibrary.org/obo/hp.json')
Loading HPO annotations is accomplished 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)
# Phenotype annotations for 12,468 rare diseases is at your fingertips.
assert len(diseases) == 12_468
Check out the User guide and the API reference for more info:
- 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.3.1.tar.gz
(91.3 kB
view hashes)
Built Distribution
Close
Hashes for hpo_toolkit-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d702a3a2cc7c76e07b400af7019f306f9de83fcf551c3b2baec4c5dbda5fd742 |
|
MD5 | 024e7f02c826db2aab918aac3dde280e |
|
BLAKE2b-256 | 7413b1184c5741050c469a59b1bb2cc6226a477403c796f9cea285e033205a43 |