Skip to content

Commit f602aa3

Browse files
authored
Merge pull request #15 from P2GX/fix-phenotypic-abnormality-auditor
Fix Phenotypic abnormality descendant performance bug
2 parents 357ffcb + d544996 commit f602aa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phenosentry/auditor/phenopacket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def audit(
171171
pfs_pad = notepad.add_subsection("phenotypic_features")
172172
for i, pf in enumerate(item.phenotypic_features):
173173
if pf.type.id.startswith("HP:"):
174-
if not self._hpo.graph.is_descendant_of_or_equal_to(pf.type.id, PHENOTYPIC_ABNORMALITY):
174+
if not self._hpo.graph.is_ancestor_of_or_equal_to(PHENOTYPIC_ABNORMALITY, pf.type.id):
175175
_, pf_pad = pfs_pad.add_subsections(i, "type")
176176
pf_pad.add_error(
177177
f"{pf.type.label} [{pf.type.id}] is not a descendant of Phenotypic abnormality [HP:0000118]"

0 commit comments

Comments
 (0)