Skip to content

Commit

Permalink
fix(mi): handle null genotypes from tandem-genotypes correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Nov 2, 2023
1 parent c2282c6 commit 6453856
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions strkit/mi/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,12 @@ def _respects_decimal_ci(self, c_gt, m_gt, f_gt) -> bool:
))

def _respects_mi_ci(self, c_gt_ci, m_gt_ci, f_gt_ci, widen: float) -> Optional[bool]:
if any(x is None for x in (c_gt_ci, m_gt_ci, f_gt_ci)):
return None
for x in (c_gt_ci, m_gt_ci, f_gt_ci):
if x is None:
return None
for y in x:
if y is None:
return None

try:
m_gt_ci_0 = (m_gt_ci[0][0] - (m_gt_ci[0][0] * widen), m_gt_ci[0][1] + (m_gt_ci[0][1] * widen))
Expand Down

0 comments on commit 6453856

Please sign in to comment.