Skip to content

Commit 5bd6fb8

Browse files
committed
handle case where metadata file is not provided in config
1 parent bcf10e6 commit 5bd6fb8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

workflow/rules/sequencing.smk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ rule make_qc_plot_amplicon_coverage_heatmap:
127127
"Rscript {params.plot_script} --path qc_sequencing --output {output.plot} --table {output.table}"
128128

129129
def get_metadata_opt(wildcards):
130-
return "-m %s" % get_metadata_file(wildcards)
130+
metadata_file = get_metadata_file(wildcards)
131+
if metadata_file != "":
132+
return "-m %s" % get_metadata_file(wildcards)
133+
else:
134+
return ""
131135

132136
# plot coverage along the genome for each sample
133137
rule make_qc_plot_depth_by_position:

0 commit comments

Comments
 (0)