Skip to content

Commit ad790c8

Browse files
tomwhitejeromekelleher
authored andcommitted
Add ploidy option to vcf2zarr convert
1 parent e8c3498 commit ad790c8

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

bio2zarr/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ def dencode_finalise(zarr_path, verbose, progress):
521521
@progress
522522
@worker_processes
523523
@local_alleles
524+
@ploidy
524525
@zarr_format
525526
def convert_vcf(
526527
vcfs,
@@ -532,6 +533,7 @@ def convert_vcf(
532533
progress,
533534
worker_processes,
534535
local_alleles,
536+
ploidy,
535537
zarr_format,
536538
):
537539
"""
@@ -547,6 +549,7 @@ def convert_vcf(
547549
show_progress=progress,
548550
worker_processes=worker_processes,
549551
local_alleles=local_alleles,
552+
ploidy=ploidy,
550553
zarr_format=zarr_format,
551554
)
552555

tests/test_cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
show_progress=True,
6969
worker_processes=core.DEFAULT_WORKER_PROCESSES,
7070
local_alleles=False,
71+
ploidy=None,
7172
zarr_format=None,
7273
)
7374

0 commit comments

Comments
 (0)