Skip to content

Commit

Permalink
fix: coercing chrX hom/het ratio from None to 0 (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Jan 25, 2024
1 parent c41c3d3 commit 8aaf3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chew/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def compute_chrx_het_hom(container):
if num_homs > 0:
return np.count_nonzero(chrx_is_alt & chrx_mask) / num_homs
else:
return None
return 0


def compute_autosomal_aafs(container):
Expand Down

0 comments on commit 8aaf3ae

Please sign in to comment.