Skip to content

Commit

Permalink
fix count and report invalid evidence
Browse files Browse the repository at this point in the history
  • Loading branch information
apriltuesday committed Feb 7, 2024
1 parent cea3f43 commit 6b7d606
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmat/output_generation/clinvar_to_evidence_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def print_report_and_check_counts(self):
Unsupported variation type\t{self.clinvar_skip_unsupported_variation}
No functional consequences\t{self.clinvar_skip_no_functional_consequences}
Missing EFO mapping\t{self.clinvar_skip_missing_efo_mapping}
Invalid evidence string\t{self.clinvar_skip_invalid_evidence_string}
Done: Generated at least one complete evidence string\t{clinvar_done}
One complete evidence string\t{self.clinvar_done_one_complete_evidence_string}
Multiple complete evidence strings\t{self.clinvar_done_multiple_complete_evidence_strings}
Expand Down Expand Up @@ -208,7 +209,8 @@ def clinvar_to_evidence_strings(string_to_efo_mappings, variant_to_gene_mappings
report.clinvar_done_one_complete_evidence_string += 1
elif complete_evidence_strings_generated > 1:
report.clinvar_done_multiple_complete_evidence_strings += 1
else:

if evidence_strings_generated == 0:
report.clinvar_skip_invalid_evidence_string += 1

report.complete_evidence_string_count += complete_evidence_strings_generated
Expand Down

0 comments on commit 6b7d606

Please sign in to comment.