From 6f9586ed297ff6c80825cf0024df6b971d937084 Mon Sep 17 00:00:00 2001 From: EddieLF Date: Mon, 15 Jun 2026 13:12:05 +1000 Subject: [PATCH 1/6] Update HPO term parsing for new OBO release format --- .../management/commands/update_human_phenotype_ontology.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference_data/management/commands/update_human_phenotype_ontology.py b/reference_data/management/commands/update_human_phenotype_ontology.py index 76f50893bc..5e9c3537ed 100644 --- a/reference_data/management/commands/update_human_phenotype_ontology.py +++ b/reference_data/management/commands/update_human_phenotype_ontology.py @@ -1,5 +1,6 @@ import logging import os +import re from tqdm import tqdm from django.db import transaction @@ -79,7 +80,8 @@ def parse_obo_file(file_iterator): 'is_category': False, } elif line.startswith("is_a: "): - is_a = value.split(" ! ")[0] + # OBO format: "" optionally followed by " !