hpo-drift 
What did a new HPO release change for your phenotype terms — and by how much did your similarity scores move?
The Human Phenotype Ontology is updated roughly monthly. Terms get renamed, obsoleted and merged — and, the part nobody notices, the hierarchy gets new edges. New edges change information content, and information content is what Resnik and Lin similarity are made of. So the same patient set, scored against two HPO releases, gives different numbers even if none of your terms were touched. hpo-drift shows you exactly that, for the term list you actually use, in about three seconds.
The headline result
Feb 2026 → Jun 2026, 14 paediatric-rheumatology terms. Not one of them was edited — no rename, no parent change. And yet:
91 of 91 pairwise scores moved. Ontology-wide the release added 469 terms, obsoleted 22, renamed 266 and rewired the is_a graph by +886 / −185 edges. That is what moved your numbers.
Consequence for any paper using HPO similarity: pin the release tag in Methods, match on IDs (266 labels changed in four months), and report how much the numbers depend on the release. hpo-drift gives you that sentence with real figures.
30-second start
pip install git+https://github.com/MargoSolo/hpo-drift
# one term per line — HP IDs (recommended) or labels
hpo-drift report --old v2026-02-16 --new v2026-06-23 --terms my_terms.txt
active terms: 19389 → 19836 (added 469, obsoleted 22, renamed 266)
is_a edges: +886 / −185
term label status IC old → new
HP:0001701 Pericarditis unchanged 0.930 → 0.837
HP:0045073 Serositis unchanged 0.837 → 0.790
…
pair Lin old → new Δ MICA
Skin rash ↔ Psoriasiform dermatitis 0.667 → 0.621 −0.045 HP:0000951
…
Add --json for a machine-readable report. Releases are pulled from the official GitHub assets of obophenotype/human-phenotype-ontology; any tag like v2026-06-23 works and is cached under ~/.cache/hpo-drift.
Three things it does
1 · report — the drift itself
Per term: status (unchanged / renamed / obsoleted → replacement / merged / missing), label change, parents added or removed, IC before and after. Per pair: Resnik and Lin in both releases, the delta, and the most-informative common ancestor — so you can see why a pair moved. Plus the ontology-wide counts.
2 · lint — hygiene for a term list
hpo-drift lint --release v2026-06-23 --terms my_terms.txt
⚠️ Arthritis: matched by LABEL — labels get renamed; store the ID → HP:0001369
❌ Dactylitis: label not found (exact match on names/synonyms)
❌ HP:0002960: OBSOLETE → replaced_by HP:0025095
Exit code 1 on errors, so it works as a CI gate for a phenotype spreadsheet. Matching is exact on purpose: it reproduces the failure mode of a pipeline that matches by label. In the example set, "Dactylitis" does not exist as a single HPO term (it is split into finger and toe dactylitis) and "Macrophage activation syndrome" is a disease-level concept, not an HPO phenotype — both are reasons to store IDs, and reasons why fuzzy resolution must suggest, never auto-map.
3 · a monthly GitHub Action
.github/workflows/drift.yml fetches the latest release, compares it with your pinned one (PINNED_HPO) and uploads the report. Add a threshold on lin_delta from the JSON and it becomes a failing check.
How it works
flowchart LR
A["release tag<br/>v2026-02-16"] -->|hp.obo| C[parse: terms · is_a · alt_id · obsolete]
B["release tag<br/>v2026-06-23"] -->|hp.obo| C
C --> D["intrinsic IC<br/>Seco 2004"]
T[your term list] --> E[resolve IDs / labels]
E --> F[per-term status · parents · IC Δ]
D --> G[Resnik / Lin per pair · MICA · Δ]
F --> R[report · JSON · lint]
G --> R
IC is intrinsic (Seco et al. 2004: 1 − log(descendants+1)/log(N)), so it depends only on the graph — the drift measured here is caused purely by ontology edits, which is the effect this tool isolates. Annotation-based IC (from phenotype.hpoa) adds a second, independent source of drift and is on the roadmap as an option.
Companion tools
hpotools— HPO in R: release-pinned loading, similarity, Phenomizer-style ranking, enrichment.awesome-human-phenotype-ontology— link-verified list of HPO tools.
Roadmap
--ic annotations · fuzzy label suggestions in lint · Phenopackets v2 export · --pairs file for patient × disease scoring · JOSS paper.
Cite
DOI (all versions): 10.5281/zenodo.22286170 · this version: 10.5281/zenodo.22286288
Soloshenko M. hpo-drift: quantifying the effect of HPO release changes on phenotype-similarity results. 2026, v0.1.0. MIT License.
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_drift-0.1.2.tar.gz.
File metadata
- Download URL: hpo_drift-0.1.2.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d321233aef5ff8b3bda41741d9a2a8a2ee335a39b13542e75df1d9abd6644a6f
|
|
| MD5 |
9c34bb43db3a3b9e1946c565e7b0cfe8
|
|
| BLAKE2b-256 |
c7a924bbe0538ce1c0a1dcf3f86c5764686bd61924a01d5ebc4a26cc7167790f
|
Provenance
The following attestation bundles were made for hpo_drift-0.1.2.tar.gz:
Publisher:
publish.yml on MargoSolo/hpo-drift
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hpo_drift-0.1.2.tar.gz -
Subject digest:
d321233aef5ff8b3bda41741d9a2a8a2ee335a39b13542e75df1d9abd6644a6f - Sigstore transparency entry: 2702634835
- Sigstore integration time:
-
Permalink:
MargoSolo/hpo-drift@5bb3d0351982e0d3585c30380da1915f5d134e36 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/MargoSolo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5bb3d0351982e0d3585c30380da1915f5d134e36 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file hpo_drift-0.1.2-py3-none-any.whl.
File metadata
- Download URL: hpo_drift-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f40ac2fbf310f23c820600e1ece2eff3d168421b47de2e974d7147fb01fadf24
|
|
| MD5 |
d77228b71a8046279ec8ea6243524bb8
|
|
| BLAKE2b-256 |
44b056c7c3aebc5a05abe7d732e50aa8e7de09c2c250677d44e88e63a267fa8b
|
Provenance
The following attestation bundles were made for hpo_drift-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on MargoSolo/hpo-drift
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hpo_drift-0.1.2-py3-none-any.whl -
Subject digest:
f40ac2fbf310f23c820600e1ece2eff3d168421b47de2e974d7147fb01fadf24 - Sigstore transparency entry: 2702634892
- Sigstore integration time:
-
Permalink:
MargoSolo/hpo-drift@5bb3d0351982e0d3585c30380da1915f5d134e36 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/MargoSolo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5bb3d0351982e0d3585c30380da1915f5d134e36 -
Trigger Event:
workflow_dispatch
-
Statement type: