We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c906faa commit 06abe13Copy full SHA for 06abe13
1 file changed
tests/anoph/test_snp_data.py
@@ -1723,8 +1723,9 @@ def test_biallelic_snp_calls_and_diplotypes_with_conditions_fractional(
1723
an = ac.sum(axis=1)
1724
ac_min = ac.min(axis=1)
1725
assert np.all((ac_min / an) >= min_minor_ac)
1726
- an_missing = (ds.sizes["samples"] * ds.sizes["ploidy"]) - an
1727
- assert np.all((an_missing / an) <= max_missing_an)
+ an_total = ds.sizes["samples"] * ds.sizes["ploidy"]
+ an_missing = an_total - an
1728
+ assert np.all((an_missing / an_total) <= max_missing_an)
1729
gt = ds["call_genotype"].values
1730
ac_check = allel.GenotypeArray(gt).count_alleles(max_allele=1)
1731
assert np.all(ac == ac_check)
0 commit comments