Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvittal committed Mar 20, 2023
1 parent 20aa9a0 commit a3c10b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hail/python/test/hail/methods/relatedness/test_pc_relate.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ def test_pc_relate_issue_5263():
assert expected._same(actual, tolerance=1e-3)


@fails_service_backend()
@fails_local_backend()
def test_pca_pc_relate_with_empty_partitions():
mt = hl.read_matrix_table(resource('pc-releate-with-empty-partitions.mt'))
_, scores_ht, _ = hl.hwe_normalized_pca(mt.GT, k=6, compute_loadings=False)
relatedness_ht = hl.pc_relate(mt.GT, min_individual_maf=0.01, scores_expr=scores_ht[mt.col_key].scores, block_size=4096, min_kinship=0.05)
assert relatedness_ht._force_count() == 13 # know expected value
assert relatedness_ht._force_count() == 13 # known expected value

0 comments on commit a3c10b1

Please sign in to comment.