@@ -118,9 +118,6 @@ def update(self, other):
118
118
self .min_value = min (self .min_value , other .min_value )
119
119
self .max_value = max (self .max_value , other .max_value )
120
120
121
- def asdict (self ):
122
- return dataclasses .asdict (self )
123
-
124
121
125
122
@dataclasses .dataclass
126
123
class VcfField :
@@ -206,18 +203,6 @@ class VcfMetadata:
206
203
contig_lengths : list = None
207
204
partitions : list = None
208
205
209
- @property
210
- def fixed_fields (self ):
211
- return [field for field in self .fields if field .category == "fixed" ]
212
-
213
- @property
214
- def info_fields (self ):
215
- return [field for field in self .fields if field .category == "INFO" ]
216
-
217
- @property
218
- def format_fields (self ):
219
- return [field for field in self .fields if field .category == "FORMAT" ]
220
-
221
206
@staticmethod
222
207
def fromdict (d ):
223
208
fields = [VcfField .fromdict (fd ) for fd in d ["fields" ]]
@@ -445,10 +430,6 @@ def num_chunks(self, partition_index):
445
430
self .partition_num_chunks [partition_index ] = n
446
431
return self .partition_num_chunks [partition_index ]
447
432
448
- def __repr__ (self ):
449
- # TODO add class name
450
- return repr ({"path" : str (self .path ), ** self .vcf_field .summary .asdict ()})
451
-
452
433
def chunk_path (self , partition_index , chunk_index ):
453
434
return self .path / f"p{ partition_index } " / f"c{ chunk_index } "
454
435
@@ -1299,7 +1280,7 @@ def to_zarr(
1299
1280
zarr_path ,
1300
1281
conversion_spec = spec ,
1301
1282
worker_processes = worker_processes ,
1302
- show_progress = True ,
1283
+ show_progress = show_progress ,
1303
1284
)
1304
1285
1305
1286
0 commit comments