Skip to content

Commit

Permalink
Handle markers right of last genotyped marker differently
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Jan 14, 2024
1 parent 3fc04e2 commit c316e8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,8 @@ def interpolate_allele_prob(sm, ref_h, typed_pos, untyped_pos, typed_cm, untyped
for a in alleles:
if ref_h[i, j] == a:
if k == m - 1:
# TODO: Consult BEAGLE source code.
pass
# FIXME: It's unclear how BEAGLE handles this case.
p[i, a] += sm[k, j]
else:
p[i, a] += w * sm[k, j]
p[i, a] += (1 - w) * sm[k + 1, j]
Expand Down

0 comments on commit c316e8c

Please sign in to comment.