Skip to content

Commit

Permalink
Fix against xarray upstream due to pydata/xarray#4940 #477
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite authored and mergify[bot] committed Mar 8, 2021
1 parent 12223d2 commit 52b0716
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sgkit/tests/test_hwe.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ def test_hwep_dataset__precomputed_counts(ds_neq: Dataset) -> None:
cts = [1, 0, 2] # arg order: hets, hom1, hom2
gtc = xr.concat([(ac == ct).sum(dim="samples") for ct in cts], dim="counts").T
ds = ds.assign(**{"variant_genotype_counts": gtc})
p = hwep_test(ds, genotype_counts="variant_genotype_counts", merge=False)
p = hwep_test(ds, genotype_counts="variant_genotype_counts", merge=False)[
"variant_hwe_p_value"
].values
assert np.all(p < 1e-8)


Expand Down

0 comments on commit 52b0716

Please sign in to comment.