@@ -13,7 +13,7 @@ class TestSmallExample:
13
13
@pytest .fixture (scope = "class" )
14
14
def ds (self , tmp_path_factory ):
15
15
out = tmp_path_factory .mktemp ("data" ) / "example.vcf.zarr"
16
- vcf .convert_vcf ([self .data_path ], out )
16
+ vcf .convert ([self .data_path ], out )
17
17
return sg .load_dataset (out )
18
18
19
19
def test_filters (self , ds ):
@@ -224,7 +224,7 @@ def test_call_HQ(self, ds):
224
224
def test_no_genotypes (self , ds , tmp_path ):
225
225
path = "tests/data/vcf/sample_no_genotypes.vcf.gz"
226
226
out = tmp_path / "example.vcf.zarr"
227
- vcf .convert_vcf ([path ], out )
227
+ vcf .convert ([path ], out )
228
228
ds2 = sg .load_dataset (out )
229
229
assert len (ds2 ["sample_id" ]) == 0
230
230
for col in ds :
@@ -244,7 +244,7 @@ def test_chunk_size(
244
244
self , ds , tmp_path , chunk_length , chunk_width , y_chunks , x_chunks
245
245
):
246
246
out = tmp_path / "example.vcf.zarr"
247
- vcf .convert_vcf (
247
+ vcf .convert (
248
248
[self .data_path ], out , chunk_length = chunk_length , chunk_width = chunk_width
249
249
)
250
250
ds2 = sg .load_dataset (out )
@@ -277,7 +277,7 @@ def test_chunk_size(
277
277
@pytest .mark .parametrize ("worker_processes" , [0 , 1 , 2 ])
278
278
def test_worker_processes (self , ds , tmp_path , worker_processes ):
279
279
out = tmp_path / "example.vcf.zarr"
280
- vcf .convert_vcf (
280
+ vcf .convert (
281
281
[self .data_path ], out , chunk_length = 3 , worker_processes = worker_processes
282
282
)
283
283
ds2 = sg .load_dataset (out )
@@ -306,7 +306,7 @@ class Test1000G2020Example:
306
306
@pytest .fixture (scope = "class" )
307
307
def ds (self , tmp_path_factory ):
308
308
out = tmp_path_factory .mktemp ("data" ) / "example.vcf.zarr"
309
- vcf .convert_vcf ([self .data_path ], out , worker_processes = 0 )
309
+ vcf .convert ([self .data_path ], out , worker_processes = 0 )
310
310
return sg .load_dataset (out )
311
311
312
312
def test_position (self , ds ):
@@ -418,7 +418,7 @@ class Test1000G2020AnnotationsExample:
418
418
def ds (self , tmp_path_factory ):
419
419
out = tmp_path_factory .mktemp ("data" ) / "example.zarr"
420
420
# TODO capture warnings from htslib here
421
- vcf .convert_vcf ([self .data_path ], out , worker_processes = 0 )
421
+ vcf .convert ([self .data_path ], out , worker_processes = 0 )
422
422
return sg .load_dataset (out )
423
423
424
424
def test_position (self , ds ):
@@ -650,7 +650,7 @@ class TestGeneratedFieldsExample:
650
650
@pytest .fixture (scope = "class" )
651
651
def ds (self , tmp_path_factory ):
652
652
out = tmp_path_factory .mktemp ("data" ) / "vcf.zarr"
653
- vcf .convert_vcf ([self .data_path ], out )
653
+ vcf .convert ([self .data_path ], out )
654
654
return sg .load_dataset (out )
655
655
656
656
def test_info_string1 (self , ds ):
@@ -700,5 +700,5 @@ def test_info_string2(self, ds):
700
700
def test_by_validating (name , tmp_path ):
701
701
path = f"tests/data/vcf/{ name } "
702
702
out = tmp_path / "test.zarr"
703
- vcf .convert_vcf ([path ], out , worker_processes = 0 )
703
+ vcf .convert ([path ], out , worker_processes = 0 )
704
704
vcf .validate (path , out )
0 commit comments