@@ -679,6 +679,9 @@ def vcf_to_zarrs(
679679) -> Sequence [str ]:
680680 """Convert VCF files to multiple Zarr on-disk stores, one per region.
681681
682+ .. deprecated:: 0.9.0
683+ Functions for reading VCF are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_ package.
684+
682685 Parameters
683686 ----------
684687 input
@@ -754,6 +757,12 @@ def vcf_to_zarrs(
754757 A list of URLs to the Zarr outputs.
755758 """
756759
760+ warnings .warn (
761+ "Functions for reading VCF are deprecated, please use the bio2zarr package." ,
762+ DeprecationWarning ,
763+ stacklevel = 2 ,
764+ )
765+
757766 output_storage_options = output_storage_options or {}
758767
759768 tasks = []
@@ -798,6 +807,9 @@ def concat_zarrs(
798807) -> None :
799808 """Concatenate multiple Zarr stores into a single Zarr store.
800809
810+ .. deprecated:: 0.9.0
811+ Functions for reading VCF are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_ package.
812+
801813 The Zarr stores are concatenated and rechunked to produce a single combined store.
802814
803815 Parameters
@@ -814,6 +826,12 @@ def concat_zarrs(
814826 the chunk length of the first input Zarr store is used.
815827 """
816828
829+ warnings .warn (
830+ "Functions for reading VCF are deprecated, please use the bio2zarr package." ,
831+ DeprecationWarning ,
832+ stacklevel = 2 ,
833+ )
834+
817835 vars_to_rechunk = []
818836 vars_to_copy = []
819837 storage_options = storage_options or {}
@@ -856,6 +874,9 @@ def vcf_to_zarr(
856874) -> None :
857875 """Convert VCF files to a single Zarr on-disk store.
858876
877+ .. deprecated:: 0.9.0
878+ Functions for reading VCF are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_ package.
879+
859880 By default, the conversion is carried out in parallel, by writing the output for each
860881 part to a separate, intermediate Zarr store in ``tempdir``. Then, in a second step
861882 the intermediate outputs are concatenated and rechunked into the final output Zarr
@@ -955,6 +976,12 @@ def vcf_to_zarr(
955976 so for large VCF files this can be slow.
956977 """
957978
979+ warnings .warn (
980+ "Functions for reading VCF are deprecated, please use the bio2zarr package." ,
981+ DeprecationWarning ,
982+ stacklevel = 2 ,
983+ )
984+
958985 if temp_chunk_length is not None :
959986 if chunk_length % temp_chunk_length != 0 :
960987 raise ValueError (
@@ -1039,6 +1066,9 @@ def read_vcf(
10391066) -> xr .Dataset :
10401067 """Read VCF dataset.
10411068
1069+ .. deprecated:: 0.9.0
1070+ Functions for reading VCF are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_ package.
1071+
10421072 A convenience for :func:`vcf_to_zarr` followed by :func:`sgkit.load_dataset`.
10431073 Note that the output Zarr store in ``tempdir`` is not deleted after this function
10441074 returns, so must be deleted manually by the user.
@@ -1119,6 +1149,12 @@ def read_vcf(
11191149
11201150 """
11211151
1152+ warnings .warn (
1153+ "Functions for reading VCF are deprecated, please use the bio2zarr package." ,
1154+ DeprecationWarning ,
1155+ stacklevel = 2 ,
1156+ )
1157+
11221158 # Need to retain zarr file backing the returned dataset
11231159 with temporary_directory (
11241160 prefix = "read_vcf_" ,
@@ -1166,6 +1202,9 @@ def zarr_array_sizes(
11661202) -> Dict [str , Any ]:
11671203 """Make a pass through a VCF/BCF file to determine sizes for storage in Zarr.
11681204
1205+ .. deprecated:: 0.9.0
1206+ Functions for reading VCF are deprecated, please use the `bio2zarr <https://github.com/sgkit-dev/bio2zarr>`_ package.
1207+
11691208 By default, the input is processed in parts in parallel. However, if the input
11701209 is a single file, ``target_part_size`` is None, and ``regions`` is None,
11711210 then the operation will be carried out sequentially.
@@ -1188,6 +1227,12 @@ def zarr_array_sizes(
11881227 are not None.
11891228 """
11901229
1230+ warnings .warn (
1231+ "Functions for reading VCF are deprecated, please use the bio2zarr package." ,
1232+ DeprecationWarning ,
1233+ stacklevel = 2 ,
1234+ )
1235+
11911236 return process_vcfs (
11921237 input ,
11931238 zarr_array_sizes_sequential ,
0 commit comments