@@ -332,7 +332,17 @@ def dencode_init(
332
332
verbose ,
333
333
):
334
334
"""
335
- TODO DOCUMENT
335
+ Initialise conversion of intermediate format to VCF Zarr. This will
336
+ set up the specified ZARR_PATH to perform this conversion over
337
+ NUM_PARTITIONS.
338
+
339
+ The output of this commmand is the actual number of partitions generated
340
+ (which may be less then the requested number, if there is not sufficient
341
+ chunks in the variants dimension) and a rough lower-bound on the amount
342
+ of memory required to encode a partition.
343
+
344
+ NOTE: the format of this output will likely change in subsequent releases;
345
+ it should not be considered machine-readable for now.
336
346
"""
337
347
setup_logging (verbose )
338
348
check_overwrite_dir (zarr_path , force )
@@ -363,7 +373,10 @@ def dencode_init(
363
373
@verbose
364
374
def dencode_partition (zarr_path , partition , verbose ):
365
375
"""
366
- TODO DOCUMENT
376
+ Convert a partition from intermediate columnar format to VCF Zarr.
377
+ Must be called *after* the Zarr path has been initialised with dencode_init.
378
+ Partition indexes must be from 0 (inclusive) to the number of paritions
379
+ returned by dencode_init (exclusive).
367
380
"""
368
381
setup_logging (verbose )
369
382
vcf .encode_partition (zarr_path , partition )
@@ -374,10 +387,10 @@ def dencode_partition(zarr_path, partition, verbose):
374
387
@verbose
375
388
def dencode_finalise (zarr_path , verbose ):
376
389
"""
377
- TODO DOCUMENT
390
+ Final step for distributed conversion of ICF to VCF Zarr.
378
391
"""
379
392
setup_logging (verbose )
380
- vcf .encode_finalise (zarr_path )
393
+ vcf .encode_finalise (zarr_path , show_progress = True )
381
394
382
395
383
396
@click .command (name = "convert" )
0 commit comments