Skip to content

Commit bbb82a1

Browse files
committed
fix arg position and assign default value
1 parent d34a7c2 commit bbb82a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bolt/workflows/other/cancer_report.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def entry(ctx, **kwargs):
6363
output_table_dir = output_dir / 'cancer_report_tables'
6464

6565
# Optional dragen hrd argument
66+
hrdetect_arg = ''
6667
if kwargs['dragen_hrd_fp']:
6768
hrdetect_arg = f"--dragen_hrd {kwargs['dragen_hrd_fp']}"
6869

@@ -92,11 +93,11 @@ def entry(ctx, **kwargs):
9293
--virusbreakend_tsv {kwargs['virusbreakend_dir']}/{kwargs['tumor_name']}.virusbreakend.vcf.summary.tsv \
9394
--virusbreakend_vcf {kwargs['virusbreakend_dir']}/{kwargs['tumor_name']}.virusbreakend.vcf \
9495
\
96+
{hrdetect_arg} \
9597
--bcftools_stats {kwargs['smlv_somatic_bcftools_stats_fp']} \
9698
\
9799
--key_genes {kwargs['cancer_genes_fp']} \
98100
--oncokb_genes {kwargs['oncokb_genes_fp']} \
99-
{hrdetect_arg} \
100101
\
101102
--img_dir {output_image_dir}/ \
102103
--result_outdir {output_table_dir}/ \

0 commit comments

Comments
 (0)