From 900922f42810fb767d29011065a8fb3fb56622b2 Mon Sep 17 00:00:00 2001 From: Daniel Danis Date: Thu, 29 Aug 2024 17:19:24 +0200 Subject: [PATCH] Revert the way of testing for hypertelorism. --- src/gpsea/analysis/pscore/_impl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gpsea/analysis/pscore/_impl.py b/src/gpsea/analysis/pscore/_impl.py index 3e40287d3..16931c398 100644 --- a/src/gpsea/analysis/pscore/_impl.py +++ b/src/gpsea/analysis/pscore/_impl.py @@ -234,7 +234,9 @@ def _facial_dysmorphism_score( hypertelorism = 'HP:0000316' external_nose = 'HP:0010938' pinna_morphology = 'HP:0000377' - total_count = self._term_or_descendant_count(target_tid=hypertelorism, observed_term_ids=observed_term_ids) + + # No need to inspect descendants since Hypertelorism has none. + total_count = 1 if hypertelorism in observed_term_ids else 0 total_count += self._term_or_descendant_count(target_tid=external_nose, observed_term_ids=observed_term_ids) total_count += self._term_or_descendant_count(target_tid=pinna_morphology, observed_term_ids=observed_term_ids) if total_count > 1: