@@ -891,8 +891,6 @@ def __init__(self, path):
891
891
# directory is either a WIP or the wrong format.
892
892
with open (self .path / "metadata.json" ) as f :
893
893
self .metadata = IcfMetadata .fromdict (json .load (f ))
894
- with open (self .path / "header.txt" ) as f :
895
- self .vcf_header = f .read ()
896
894
self .compressor = numcodecs .get_codec (self .metadata .compressor )
897
895
self .fields = {}
898
896
partition_num_records = [
@@ -970,9 +968,7 @@ def num_fields(self):
970
968
971
969
@property
972
970
def root_attrs (self ):
973
- return {
974
- "vcf_header" : self .vcf_header ,
975
- }
971
+ return {}
976
972
977
973
def iter_id (self , start , stop ):
978
974
for value in self .fields ["ID" ].iter_values (start , stop ):
@@ -1299,10 +1295,8 @@ def init(
1299
1295
1300
1296
self .mkdirs ()
1301
1297
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.
1304
1299
# https://github.com/pystatgen/vcf-zarr-spec/issues/15
1305
- # May be useful to keep lying around still though?
1306
1300
logger .info ("Writing VCF header" )
1307
1301
with open (self .path / "header.txt" , "w" ) as f :
1308
1302
f .write (header )
0 commit comments