Skip to content

Commit

Permalink
Add Sm-1
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Feb 26, 2024
1 parent 470494a commit b749fc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ def interpolate_allele_probs(sm, ref_h, typed_pos, untyped_pos, typed_cm, untype
assert w == 0.0, "Weight should be 0.0."
probs[i, a] += sm[k - 1, j]
else:
probs[i, a] += sm[k - 1, j] # TODO: Test if this works
probs[i, a] += w * sm[k - 1, j]
probs[i, a] += (1 - w) * sm[k, j]
# Zero trivial probabilities.
Expand Down

0 comments on commit b749fc7

Please sign in to comment.