Skip to content

Commit 97eba66

Browse files
Rename some test files and start move into vcf utils
1 parent 496fa31 commit 97eba66

File tree

6 files changed

+28
-0
lines changed

6 files changed

+28
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/test_vcf_utils.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,34 @@
1111
from .utils import count_variants, path_for_test
1212

1313

14+
class TestCEUTrio2021VcfExample:
15+
data_path = "tests/data/vcf/CEUTrio.20.21.gatk3.4.g.vcf.bgz"
16+
17+
@pytest.fixture(scope="class")
18+
def index(self):
19+
tabix_path = get_tabix_path(self.data_path)
20+
return read_tabix(tabix_path)
21+
22+
def test_record_counts(self, index):
23+
# print(index.sequence_names)
24+
print(index.record_counts)
25+
# for i, contig in enumerate(tabix.sequence_names):
26+
# assert tabix.record_counts[i] == count_variants(vcf_path, contig)
27+
28+
# def test_one_region(self, index):
29+
# parts = partition_into_regions(self.data_path, num_parts=1)
30+
# assert parts == ["20:1-", "21"]
31+
32+
33+
class TestCEUTrio2021BcfExample(TestCEUTrio2021VcfExample):
34+
data_path = "tests/data/vcf/CEUTrio.20.21.gatk3.4.g.bcf"
35+
36+
@pytest.fixture(scope="class")
37+
def index(self):
38+
csi_path = get_csi_path(self.data_path)
39+
return read_csi(csi_path)
40+
41+
1442
class TestCsiIndex:
1543
@pytest.mark.parametrize(
1644
"vcf_file",

0 commit comments

Comments
 (0)