Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devries score update #352

Merged
merged 4 commits into from
Nov 15, 2024
Merged

Devries score update #352

merged 4 commits into from
Nov 15, 2024

Conversation

pnrobinson
Copy link
Member

@ielis

I updated the heuristic according to our discussion with Bert and Lex, and also updated the documentation. It should be ready to go.

Copy link
Member

@ielis ielis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pnrobinson looks good but let's first clarify my comment below.

for term_id in observed_term_ids:
for desc_tid in self._hpo.graph.get_ancestors(term_id, include_source=True):
if desc_tid.value == target_tid:
total_count += 1
return total_count
return 1
Copy link
Member

@ielis ielis Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pnrobinson
note that the methods _term_or_descendant_count (this) and _term_or_descendant (above) are now functionally identical.

Is that on purpose?

@ielis ielis merged commit f71109f into develop Nov 15, 2024
1 of 3 checks passed
@ielis ielis deleted the devries_score_update branch November 15, 2024 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants