Skip to content

Commit

Permalink
Minor edits on docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
szhan committed Mar 4, 2024
1 parent e5e0400 commit 9119d88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/tests/beagle_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,13 @@ def compute_forward_matrix(ref_h, query_h, trans_probs, mismatch_probs):
@njit
def compute_backward_matrix(ref_h, query_h, trans_probs, mismatch_probs):
"""
Implement backward algorithm to compute a backward probablity matrix of size (m, h).
Implement Li and Stephens backward algorithm.
Reference haplotypes and query haplotype are subsetted to genotyped positions.
So, they are a matrix of size (m, h) and an array of size m, respectively.
This computes a backward probablity matrix of size (m, h).
In BEAGLE 4.1, the values are kept one position at a time. Here, we keep the values
at all the positions.
Expand Down

0 comments on commit 9119d88

Please sign in to comment.