Skip to content

Commit

Permalink
Fixup ICF tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromekelleher committed Jan 17, 2025
1 parent aabef12 commit 571cc21
Showing 1 changed file with 1 addition and 41 deletions.
42 changes: 1 addition & 41 deletions tests/test_icf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TestSmallExample:
@pytest.fixture(scope="class")
def icf(self, tmp_path_factory):
out = tmp_path_factory.mktemp("data") / "example.exploded"
return vcf2zarr.explode(out, [self.data_path], local_alleles=False)
return vcf2zarr.explode(out, [self.data_path])

def test_format_version(self, icf):
assert icf.metadata.format_version == icf_mod.ICF_METADATA_FORMAT_VERSION
Expand Down Expand Up @@ -91,46 +91,6 @@ def test_INFO_NS(self, icf):
assert icf["INFO/NS"].values == [None, None, 3, 3, 2, 3, 3, None, None]


class TestLocalAllelesExample:
data_path = "tests/data/vcf/local_alleles.vcf.gz"

fields = (
"ALT",
"CHROM",
"FILTERS",
"FORMAT/AD",
"FORMAT/DP",
"FORMAT/GQ",
"FORMAT/GT",
"FORMAT/LAA",
"FORMAT/LPL",
"FORMAT/PL",
"ID",
"INFO/AA",
"INFO/AC",
"INFO/AF",
"INFO/AN",
"INFO/DB",
"INFO/DP",
"INFO/H2",
"INFO/NS",
"POS",
"QUAL",
"REF",
"rlen",
)

@pytest.fixture(scope="class")
def icf(self, tmp_path_factory):
out = tmp_path_factory.mktemp("data") / "example.exploded"
return vcf2zarr.explode(out, [self.data_path])

def test_summary_table(self, icf):
data = icf.summary_table()
fields = [d["name"] for d in data]
assert tuple(sorted(fields)) == self.fields


class TestIcfWriterExample:
data_path = "tests/data/vcf/sample.vcf.gz"

Expand Down

0 comments on commit 571cc21

Please sign in to comment.