Skip to content

Commit

Permalink
started working on analysis of found vs not found diseases, very rough
Browse files Browse the repository at this point in the history
  • Loading branch information
leokim-l committed Sep 6, 2024
1 parent ef2e9c2 commit 1e70ff6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/malco/analysis/eval_diagnose_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def find_category(omim_term, disease_categories, mondo):

omim_wo_match = {}
for ppkt in ppkts:
breakpoint()
# find this phenopackets category <cat> from OMIM
category_index = find_category(ppkt[1].iloc[0]["correct_term"], dc_list, mondo)
if not category_index:
Expand All @@ -88,7 +89,7 @@ def find_category(omim_term, disease_categories, mondo):
omim_wo_match[ppkt[0]] = ppkt[1].iloc[0]["correct_term"]
continue
#cat_ind = find_cat_index(category)
# is there a true? ppkt is tuple ("filename", dataframe) --> ppkt[1] is a dataframe
# is there a true? ppkt is tuple ("filename"/"label"/what has been used for grouping, dataframe) --> ppkt[1] is a dataframe
if not any(ppkt[1]["is_correct"]):
# no --> increase <cat> incorrect
contingency_table.loc[category_index, "incorrect"] += 1
Expand Down

1 comment on commit 1e70ff6

@leokim-l
Copy link
Member Author

Choose a reason for hiding this comment

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

There was an error with this push, this is not the whole set of differences

Please sign in to comment.