File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 14
14
partition_into_regions ,
15
15
vcf_to_zarr ,
16
16
)
17
- from sgkit .io .vcf .vcf_reader import zarr_array_sizes
17
+ from sgkit .io .vcf .vcf_reader import FloatFormatFieldWarning , zarr_array_sizes
18
18
from sgkit .tests .io .test_dataset import assert_identical
19
19
20
20
from .utils import path_for_test
@@ -299,6 +299,20 @@ def test_vcf_to_zarr__parallel_compressor_and_filters(
299
299
] # sgkit default
300
300
301
301
302
+ def test_vcf_to_zarr__float_format_field_warning (shared_datadir , tmp_path ):
303
+ path = path_for_test (shared_datadir , "simple.output.mixed_depth.likelihoods.vcf" )
304
+ output = tmp_path .joinpath ("vcf.zarr" ).as_posix ()
305
+
306
+ with pytest .warns (FloatFormatFieldWarning ):
307
+ vcf_to_zarr (
308
+ path ,
309
+ output ,
310
+ ploidy = 4 ,
311
+ max_alt_alleles = 3 ,
312
+ fields = ["FORMAT/GL" ],
313
+ )
314
+
315
+
302
316
@pytest .mark .parametrize (
303
317
"is_path" ,
304
318
[True , False ],
You can’t perform that action at this time.
0 commit comments