Skip to content
Snippets Groups Projects
Commit 5f9751a9 authored by Sander Bollen's avatar Sander Bollen
Browse files

Chunks may have quirky names.

Wrap in quotes to prevent shell oddities.
parent 6c15de9c
No related branches found
No related tags found
No related merge requests found
......@@ -261,13 +261,13 @@ rule gvcf_gather:
ref=REFERENCE,
gatk=GATK
params:
gvcfs=" -V ".join(expand(out_path("{{sample}}/vcf/{{sample}}.{chunk}.part.vcf.gz"),
gvcfs="' -V '".join(expand(out_path("{{sample}}/vcf/{{sample}}.{chunk}.part.vcf.gz"),
chunk=CHUNKS))
output:
gvcf=out_path("{sample}/vcf/{sample}.g.vcf.gz")
conda: "envs/gatk.yml"
shell: "java -Xmx4G -cp {input.gatk} org.broadinstitute.gatk.tools.CatVariants "\
"-R {input.ref} -V {params.gvcfs} -out {output.gvcf} "\
"-R {input.ref} -V '{params.gvcfs}' -out {output.gvcf} "\
"-assumeSorted"
......@@ -295,13 +295,13 @@ rule genotype_gather:
ref=REFERENCE,
gatk=GATK
params:
vcfs=" -V ".join(expand(out_path("multisample/genotype.{chunk}.part.vcf.gz"),
vcfs="' -V '".join(expand(out_path("multisample/genotype.{chunk}.part.vcf.gz"),
chunk=CHUNKS))
output:
combined=out_path("multisample/genotyped.vcf.gz")
conda: "envs/gatk.yml"
shell: "java -Xmx4G -cp {input.gatk} org.broadinstitute.gatk.tools.CatVariants "\
"-R {input.ref} -V {params.vcfs} -out {output.combined} "\
"-R {input.ref} -V '{params.vcfs}' -out {output.combined} "\
"-assumeSorted"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment