Skip to content

Commit

Permalink
small edits
Browse files Browse the repository at this point in the history
  • Loading branch information
klaricch committed Feb 25, 2025
1 parent 6e1e9c6 commit e44111f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gnomad/assessment/validity_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def generic_field_check(

if show_percent_sites:
percent_failed = round(100 * (n_fail / ht_count), 2)
percent_failed_log = f" {percent_failed}%"
percent_failed_log = f" ({percent_failed}%)"
else:
percent_failed_log = ""

Expand Down
2 changes: 1 addition & 1 deletion tests/assessment/test_validity_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ def test_compare_subset_freqs(ht_for_compare_subset_freqs, caplog) -> None:
# Verify log messages.
expected_logs = [
"PASSED AC_adj != AC_subset1_adj while non-zero check:",
"Found 1 sites that fail AC_raw != AC_subset1_raw while non-zero check:",
"Found 1 sites (33.33%) that fail AC_raw != AC_subset1_raw while non-zero check:",
"Percentage of sites that fail: 33.33 %",
"Total defined raw AC count: 3",
]
Expand Down

0 comments on commit e44111f

Please sign in to comment.