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 " !