@@ -332,7 +332,17 @@ def dencode_init(
332332 verbose ,
333333):
334334 """
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.
336346 """
337347 setup_logging (verbose )
338348 check_overwrite_dir (zarr_path , force )
@@ -363,7 +373,10 @@ def dencode_init(
363373@verbose
364374def dencode_partition (zarr_path , partition , verbose ):
365375 """
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).
367380 """
368381 setup_logging (verbose )
369382 vcf .encode_partition (zarr_path , partition )
@@ -374,10 +387,10 @@ def dencode_partition(zarr_path, partition, verbose):
374387@verbose
375388def dencode_finalise (zarr_path , verbose ):
376389 """
377- TODO DOCUMENT
390+ Final step for distributed conversion of ICF to VCF Zarr.
378391 """
379392 setup_logging (verbose )
380- vcf .encode_finalise (zarr_path )
393+ vcf .encode_finalise (zarr_path , show_progress = True )
381394
382395
383396@click .command (name = "convert" )
0 commit comments