Skip to content

Commit

Permalink
Revert the way of testing for hypertelorism.
Browse files Browse the repository at this point in the history
  • Loading branch information
ielis committed Aug 29, 2024
1 parent a64d579 commit 900922f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gpsea/analysis/pscore/_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 900922f

Please sign in to comment.