We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 357ffcb + d544996 commit f602aa3Copy full SHA for f602aa3
phenosentry/auditor/phenopacket.py
@@ -171,7 +171,7 @@ def audit(
171
pfs_pad = notepad.add_subsection("phenotypic_features")
172
for i, pf in enumerate(item.phenotypic_features):
173
if pf.type.id.startswith("HP:"):
174
- if not self._hpo.graph.is_descendant_of_or_equal_to(pf.type.id, PHENOTYPIC_ABNORMALITY):
+ if not self._hpo.graph.is_ancestor_of_or_equal_to(PHENOTYPIC_ABNORMALITY, pf.type.id):
175
_, pf_pad = pfs_pad.add_subsections(i, "type")
176
pf_pad.add_error(
177
f"{pf.type.label} [{pf.type.id}] is not a descendant of Phenotypic abnormality [HP:0000118]"
0 commit comments