|
8 | 8 | from numpy.testing import assert_allclose, assert_array_equal |
9 | 9 |
|
10 | 10 | from sgkit import load_dataset |
11 | | -from sgkit.io.utils import FLOAT32_FILL, INT32_FILL, INT32_MISSING |
| 11 | +from sgkit.io.utils import FLOAT32_FILL, INT_FILL, INT_MISSING |
12 | 12 | from sgkit.io.vcf import ( |
13 | 13 | MaxAltAllelesExceededWarning, |
14 | 14 | partition_into_regions, |
@@ -751,7 +751,7 @@ def test_vcf_to_zarr__fields(shared_datadir, tmp_path): |
751 | 751 | ) |
752 | 752 | ds = xr.open_zarr(output) |
753 | 753 |
|
754 | | - missing, fill = INT32_MISSING, INT32_FILL |
| 754 | + missing, fill = INT_MISSING, INT_FILL |
755 | 755 | assert_array_equal(ds["variant_DP"], [fill, fill, 14, 11, 10, 13, 9, fill, fill]) |
756 | 756 | assert ds["variant_DP"].attrs["comment"] == "Total Depth" |
757 | 757 |
|
@@ -832,7 +832,7 @@ def test_vcf_to_zarr__field_defs(shared_datadir, tmp_path): |
832 | 832 | ) |
833 | 833 | ds = xr.open_zarr(output) |
834 | 834 |
|
835 | | - fill = INT32_FILL |
| 835 | + fill = INT_FILL |
836 | 836 | assert_array_equal(ds["variant_DP"], [fill, fill, 14, 11, 10, 13, 9, fill, fill]) |
837 | 837 | assert ds["variant_DP"].attrs["comment"] == "Combined depth across samples" |
838 | 838 |
|
@@ -862,7 +862,7 @@ def test_vcf_to_zarr__field_number_A(shared_datadir, tmp_path): |
862 | 862 | ) |
863 | 863 | ds = xr.open_zarr(output) |
864 | 864 |
|
865 | | - fill = INT32_FILL |
| 865 | + fill = INT_FILL |
866 | 866 | assert_array_equal( |
867 | 867 | ds["variant_AC"], |
868 | 868 | [ |
@@ -901,7 +901,7 @@ def test_vcf_to_zarr__field_number_R(shared_datadir, tmp_path): |
901 | 901 | variants=slice(10002764, 10002793) |
902 | 902 | ) |
903 | 903 |
|
904 | | - fill = INT32_FILL |
| 904 | + fill = INT_FILL |
905 | 905 | ad = np.array( |
906 | 906 | [ |
907 | 907 | [[40, 14, 0, fill]], |
@@ -930,7 +930,7 @@ def test_vcf_to_zarr__field_number_G(shared_datadir, tmp_path): |
930 | 930 | variants=slice(10002764, 10002793) |
931 | 931 | ) |
932 | 932 |
|
933 | | - fill = INT32_FILL |
| 933 | + fill = INT_FILL |
934 | 934 | pl = np.array( |
935 | 935 | [ |
936 | 936 | [[319, 0, 1316, 440, 1358, 1798, fill, fill, fill, fill]], |
@@ -973,7 +973,7 @@ def test_vcf_to_zarr__field_number_fixed(shared_datadir, tmp_path): |
973 | 973 | ) |
974 | 974 | ds = xr.open_zarr(output) |
975 | 975 |
|
976 | | - missing, fill = INT32_MISSING, INT32_FILL |
| 976 | + missing, fill = INT_MISSING, INT_FILL |
977 | 977 | assert_array_equal( |
978 | 978 | ds["call_HQ"], |
979 | 979 | [ |
|
0 commit comments