Skip to content

Commit

Permalink
Merge pull request #50 from monarch-initiative/49-add-handling-for-mi…
Browse files Browse the repository at this point in the history
…ssing-term-labels

49 add handling for missing term labels
  • Loading branch information
yaseminbridges authored Dec 17, 2024
2 parents f6e4f7e + 9600d0c commit 18e0fd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "phenotype2phenopacket"
version = "0.6.8"
version = "0.6.9"
description = ""
authors = ["Yasemin Bridges <[email protected]>"]
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion src/phenotype2phenopacket/utils/phenopacket_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ def create_phenotypic_feature(self, phenotype_annotation_entry: dict) -> Phenoty
rels = self.human_phenotype_ontology.entity_alias_map(
phenotype_annotation_entry["hpo_id"]
)
hpo_term = "".join(rels[(list(rels.keys())[0])])
hpo_term = "".join(rels[(list(rels.keys())[0])]) if rels else None
return PhenotypicFeature(
type=OntologyClass(id=phenotype_annotation_entry["hpo_id"], label=hpo_term),
onset=self.create_onset(phenotype_annotation_entry),
Expand Down

0 comments on commit 18e0fd4

Please sign in to comment.