Skip to content

Commit 6ca8371

Browse files
committed
Add notes
1 parent 3465301 commit 6ca8371

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/tests/test_beagle.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
the alleles in the aggregated markers form distinct allele sequences.
3636
Below, we do not use aggregated markers or allele sequences, which simplifies
3737
the implementation.
38+
39+
Rather than trying to faithfully reimplementing the original BEAGLE 4.1 algorithm,
40+
the following computes Equation 1 of BB2016.
3841
"""
3942
import numpy as np
4043

@@ -447,6 +450,7 @@ def run_beagle(ref_h, query_h, pos):
447450
ref_h_genotyped, query_h_genotyped, rho, mu
448451
)
449452
assert bm.shape == (m, h)
453+
# TODO: Replace this with the simpler implementation.
450454
# Compute HMM state probability matrix over genotyped markers
451455
# and forward and backward haplotype probability matrices
452456
sm, fwd_hap_probs, bwd_hap_probs = compute_state_probability_matrix(

0 commit comments

Comments
 (0)