I implemented a helper function _get_num_alleles, which has the same logic as check_alleles, in the following two test files:
test_API.py
test_API_multiallelic.py
The above sets of tests pass.
I did not make any changes to test_LS_haploid_diploid.py, because there is no testing of FB when mutation rates are scaled by the number of distinct alleles.
Also, I'm only dealing with MISSING here. I'll add NONCOPY to the exclusion set in #31.
Fix #33
I reworked
check_alleles
inlshmm/api.py
.I implemented a helper function
_get_num_alleles
, which has the same logic ascheck_alleles
, in the following two test files:test_API.py
test_API_multiallelic.py
The above sets of tests pass.
I did not make any changes to
test_LS_haploid_diploid.py
, because there is no testing of FB when mutation rates are scaled by the number of distinct alleles.Also, I'm only dealing with
MISSING
here. I'll addNONCOPY
to the exclusion set in #31.