Skip to content

Commit

Permalink
Run partition option cannot be run on a single GPU and is not compati…
Browse files Browse the repository at this point in the history
…ble with --gvcf flag
  • Loading branch information
skchronicles committed Jun 26, 2024
1 parent cc1e0fa commit 20cd507
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions workflow/rules/germline.smk
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ rule parabricks_gatk_germline_1gpu_normal_memory_optimized:
output:
bam = join(workpath, "gatk_germline", "1gpu_normal_memory_optimized", "{sample}", "{name}.bam"),
# Gzipped VCF cannot be created with --run-partition option
gvcf = join(workpath, "gatk_germline", "1gpu_normal_memory_optimized", "{sample}", "{name}.g.vcf"),
gvcf = join(workpath, "gatk_germline", "1gpu_normal_memory_optimized", "{sample}", "{name}.vcf"),
recal = join(workpath, "gatk_germline", "1gpu_normal_memory_optimized", "{sample}", "{name}.recal"),
params:
# Rule specific parameters
Expand Down Expand Up @@ -135,14 +135,12 @@ rule parabricks_gatk_germline_1gpu_normal_memory_optimized:
--out-bam {output.bam} \\
--out-variants {output.gvcf} \\
--out-recal-file {output.recal} \\
--gvcf \\
--bwa-options="-M" \\
--monitor-usage \\
--memory-limit {params.RUNNING_MEMORY_GB} \\
--tmp-dir /tmp \\
--num-cpu-threads-per-stage {threads} \\
--bwa-cpu-thread-pool {threads} \\
--run-partition \\
--read-from-tmp-dir \\
--gpusort \\
--gpuwrite \\
Expand Down Expand Up @@ -379,7 +377,7 @@ rule parabricks_gatk_germline_2gpu_normal_memory_optimized:
output:
bam = join(workpath, "gatk_germline", "2gpu_normal_memory_optimized", "{sample}", "{name}.bam"),
# Gzipped VCF cannot be created with --run-partition option
gvcf = join(workpath, "gatk_germline", "2gpu_normal_memory_optimized", "{sample}", "{name}.g.vcf"),
gvcf = join(workpath, "gatk_germline", "2gpu_normal_memory_optimized", "{sample}", "{name}.vcf"),
recal = join(workpath, "gatk_germline", "2gpu_normal_memory_optimized", "{sample}", "{name}.recal"),
params:
# Rule specific parameters
Expand Down Expand Up @@ -420,7 +418,6 @@ rule parabricks_gatk_germline_2gpu_normal_memory_optimized:
--out-bam {output.bam} \\
--out-variants {output.gvcf} \\
--out-recal-file {output.recal} \\
--gvcf \\
--bwa-options="-M" \\
--monitor-usage \\
--memory-limit {params.RUNNING_MEMORY_GB} \\
Expand Down Expand Up @@ -596,7 +593,7 @@ rule parabricks_gatk_germline_4gpu_normal_memory_optimized:
output:
bam = join(workpath, "gatk_germline", "4gpu_normal_memory_optimized", "{sample}", "{name}.bam"),
# Gzipped VCF cannot be created with --run-partition option
gvcf = join(workpath, "gatk_germline", "4gpu_normal_memory_optimized", "{sample}", "{name}.g.vcf"),
gvcf = join(workpath, "gatk_germline", "4gpu_normal_memory_optimized", "{sample}", "{name}.vcf"),
recal = join(workpath, "gatk_germline", "4gpu_normal_memory_optimized", "{sample}", "{name}.recal"),
params:
# Rule specific parameters
Expand Down Expand Up @@ -637,7 +634,6 @@ rule parabricks_gatk_germline_4gpu_normal_memory_optimized:
--out-bam {output.bam} \\
--out-variants {output.gvcf} \\
--out-recal-file {output.recal} \\
--gvcf \\
--bwa-options="-M" \\
--monitor-usage \\
--memory-limit {params.RUNNING_MEMORY_GB} \\
Expand Down

0 comments on commit 20cd507

Please sign in to comment.