Skip to content

Commit

Permalink
xfails
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvittal committed Mar 20, 2023
1 parent 3730068 commit e5a50f5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions hail/python/test/hail/methods/test_statgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,6 @@ def test_issue_4527(self):
self.assertEqual(1, mt._force_count_rows())

@fails_service_backend()
@fails_local_backend()
def test_ld_prune(self):
r2_threshold = 0.001
window_size = 5
Expand Down Expand Up @@ -1485,22 +1484,19 @@ def test_ld_prune_inputs(self):
self.assertRaises(ValueError, lambda: hl.ld_prune(ds.GT, r2=2.0))

@fails_service_backend()
@fails_local_backend()
def test_ld_prune_no_prune(self):
ds = hl.balding_nichols_model(n_populations=1, n_samples=10, n_variants=10, n_partitions=3)
pruned_table = hl.ld_prune(ds.GT, r2=0.0, bp_window_size=0)
expected_count = ds.filter_rows(agg.collect_as_set(ds.GT).size() > 1, keep=True).count_rows()
self.assertEqual(pruned_table.count(), expected_count)

@fails_service_backend()
@fails_local_backend()
def test_ld_prune_identical_variants(self):
ds = hl.import_vcf(resource('ldprune2.vcf'), min_partitions=2)
pruned_table = hl.ld_prune(ds.GT)
self.assertEqual(pruned_table.count(), 1)

@fails_service_backend()
@fails_local_backend()
def test_ld_prune_maf(self):
ds = hl.balding_nichols_model(n_populations=1, n_samples=50, n_variants=10, n_partitions=10).cache()

Expand All @@ -1516,23 +1512,20 @@ def test_ld_prune_maf(self):
self.assertEqual(kept_maf, max(ht.maf.collect()))

@fails_service_backend()
@fails_local_backend()
def test_ld_prune_call_expression(self):
ds = hl.import_vcf(resource("ldprune2.vcf"), min_partitions=2)
ds = ds.select_entries(foo=ds.GT)
pruned_table = hl.ld_prune(ds.foo)
self.assertEqual(pruned_table.count(), 1)

@fails_service_backend()
@fails_local_backend()
def test_ld_prune_missing_entries(self):
mt = hl.import_vcf(resource("ldprune2.vcf"), min_partitions=2).add_col_index()
mt = mt.filter_entries(mt.col_idx > 1)
result = hl.ld_prune(mt.GT)
assert result.count() > 0

@fails_service_backend()
@fails_local_backend()
def test_ld_prune_with_duplicate_row_keys(self):
ds = hl.import_vcf(resource('ldprune2.vcf'), min_partitions=2)
ds_duplicate = ds.annotate_rows(duplicate=[1, 2]).explode_rows('duplicate')
Expand Down

0 comments on commit e5a50f5

Please sign in to comment.