sgkit.io.vcf.zarr_to_vcf#
- sgkit.io.vcf.zarr_to_vcf(input, output)#
Convert a Zarr file to a VCF file.
A convenience for
sgkit.load_dataset()
followed bywrite_vcf()
.Refer to
write_vcf()
for details and limitations.Warning
This function requires the input Zarr file to have a
vcf_header
attribute containing the VCF header. VCF files converted to Zarr usingvcf_to_zarr()
will contain this attribute, but datasets loaded from other sources will not.