Skip to content

Commit

Permalink
Skip problematic fields in scikit-allel comparison
Browse files Browse the repository at this point in the history
Temporary workaround to get tests to pass before addressing sgkit-dev#1195
  • Loading branch information
jeromekelleher committed Feb 16, 2024
1 parent d259201 commit c7db1d0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions sgkit/tests/io/vcf/test_vcf_scikit_allel.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,23 @@ def test_DP_field(shared_datadir, tmpdir):
assert_identical(allel_ds, sg_ds)


@pytest.mark.skip("Temporarily disabling test; see #1195")
@pytest.mark.parametrize(
"vcf_file,allel_exclude_fields,sgkit_exclude_fields,max_alt_alleles",
[
("sample.vcf.gz", None, None, 3),
# Excluding AA here because of pad-vs-missing data in sckit-allel strings
# https://github.com/pystatgen/sgkit/issues/1195
("sample.vcf.gz", ["AA"], ["INFO/AA"], 3),
("mixed.vcf.gz", None, None, 3),
# exclude PL since it has Number=G, which is not yet supported
# Excluding PGT and PID here because of pad-vs-missing data in sckit-allel strings
# https://github.com/pystatgen/sgkit/issues/1195
# increase max_alt_alleles since scikit-allel does not truncate genotype calls
("CEUTrio.20.21.gatk3.4.g.vcf.bgz", ["calldata/PL"], ["FORMAT/PL"], 7),
(
"CEUTrio.20.21.gatk3.4.g.vcf.bgz",
["calldata/PL", "calldata/PGT", "calldata/PID"],
["FORMAT/PL", "FORMAT/PGT", "FORMAT/PID"],
7,
),
],
)
@pytest.mark.filterwarnings(
Expand Down

0 comments on commit c7db1d0

Please sign in to comment.