Closed szhan closed 1 month ago
The tests test_ts_simple_n8_high_recomb
in TestNonTreeViterbiDiploid
seem stuck. The CI runs started two hours ago, and they still haven't finished.
The naive implementations of the diploid Viterbi algorithm are taking too long when the ref. panel size gets too large when including ancestral haplotypes.
A workaround is to only run the naive implementations of diploid Viterbi when not including ancestors in the ref. panels.
Alternatively, we could check the size of the ref. panel when including ancestors. If it exceeds a certain threshold, say n = 100, then don't run the naive implementations of diploid Viterbi.
For now, when the ref. panel size exceeds 100, the naive implementations of diploid Viterbi are not run. There is probably a better way to do this.
Fix #58