@@ -891,8 +891,6 @@ def __init__(self, path):
891891 # directory is either a WIP or the wrong format.
892892 with open (self .path / "metadata.json" ) as f :
893893 self .metadata = IcfMetadata .fromdict (json .load (f ))
894- with open (self .path / "header.txt" ) as f :
895- self .vcf_header = f .read ()
896894 self .compressor = numcodecs .get_codec (self .metadata .compressor )
897895 self .fields = {}
898896 partition_num_records = [
@@ -970,9 +968,7 @@ def num_fields(self):
970968
971969 @property
972970 def root_attrs (self ):
973- return {
974- "vcf_header" : self .vcf_header ,
975- }
971+ return {}
976972
977973 def iter_id (self , start , stop ):
978974 for value in self .fields ["ID" ].iter_values (start , stop ):
@@ -1299,10 +1295,8 @@ def init(
12991295
13001296 self .mkdirs ()
13011297
1302- # Note: this is needed for the current version of the vcfzarr spec, but it's
1303- # probably going to be dropped.
1298+ # Note: the header is no longer stored in vcz, but keep in icf.
13041299 # https://github.com/pystatgen/vcf-zarr-spec/issues/15
1305- # May be useful to keep lying around still though?
13061300 logger .info ("Writing VCF header" )
13071301 with open (self .path / "header.txt" , "w" ) as f :
13081302 f .write (header )
0 commit comments