Skip to content
Snippets Groups Projects
Commit a702288a authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fixing arguments

parent 783783a9
No related branches found
No related tags found
1 merge request!61Switch to structs
...@@ -62,7 +62,7 @@ task RunSomatic { ...@@ -62,7 +62,7 @@ task RunSomatic {
file: runDir + "/results/variants/candidateSV.vcf.gz", file: runDir + "/results/variants/candidateSV.vcf.gz",
index: runDir + "/results/variants/candidateSV.vcf.gz.tbi" index: runDir + "/results/variants/candidateSV.vcf.gz.tbi"
} }
File tumorSV = if (paired) IndexedVcfFile tumorSV = if (paired)
then object { then object {
file: runDir + "/results/variants/somaticSV.vcf.gz", file: runDir + "/results/variants/somaticSV.vcf.gz",
index: runDir + "/results/variants/somaticSV.vcf.gz.tbi" index: runDir + "/results/variants/somaticSV.vcf.gz.tbi"
......
version 1.0 version 1.0
import "common.wdl" as common
task ConfigureGermline { task ConfigureGermline {
input { input {
String? preCommand String? preCommand
...@@ -7,8 +9,7 @@ task ConfigureGermline { ...@@ -7,8 +9,7 @@ task ConfigureGermline {
String runDir String runDir
Array[File]+ bams Array[File]+ bams
Array[File]+ indexes Array[File]+ indexes
File refFasta Reference reference
File refFastaIndex
File? callRegions File? callRegions
File? callRegionsIndex File? callRegionsIndex
Boolean exome = false Boolean exome = false
...@@ -24,7 +25,7 @@ task ConfigureGermline { ...@@ -24,7 +25,7 @@ task ConfigureGermline {
~{preCommand} ~{preCommand}
~{toolCommand} \ ~{toolCommand} \
--bam ~{sep=" --bam " bams} \ --bam ~{sep=" --bam " bams} \
--ref ~{refFasta} \ --ref ~{reference.fasta} \
--runDir ~{runDir} \ --runDir ~{runDir} \
~{"--callRegions " + callRegions} \ ~{"--callRegions " + callRegions} \
~{true="--exome" false="" exome} \ ~{true="--exome" false="" exome} \
...@@ -41,16 +42,12 @@ task ConfigureSomatic { ...@@ -41,16 +42,12 @@ task ConfigureSomatic {
String? preCommand String? preCommand
String? installDir String? installDir
String runDir String runDir
File normalBam IndexedBamFile normalBam
File normalIndex IndexedBamFile tumorBam
File tumorBam Reference reference
File tumorIndex
File refFasta
File refFastaIndex
File? callRegions File? callRegions
File? callRegionsIndex File? callRegionsIndex
File? indelCandidates IndexedVcfFile? indelCandidates
File? indelCandidatesIndex
Boolean exome = false Boolean exome = false
} }
...@@ -58,16 +55,18 @@ task ConfigureSomatic { ...@@ -58,16 +55,18 @@ task ConfigureSomatic {
then installDir + "bin/configureStrelkaSomaticWorkflow.py" then installDir + "bin/configureStrelkaSomaticWorkflow.py"
else "configureStrelkaSomaticWorkflow.py" else "configureStrelkaSomaticWorkflow.py"
String indelCandidatesArg = if (defined(indelCandidates)) then "--indelCandidates " + select_first([indelCandidates]).file else ""
command { command {
set -e -o pipefail set -e -o pipefail
~{preCommand} ~{preCommand}
~{toolCommand} \ ~{toolCommand} \
--normalBam ~{normalBam} \ --normalBam ~{normalBam.file} \
--tumorBam ~{tumorBam} \ --tumorBam ~{tumorBam.file} \
--ref ~{refFasta} \ --ref ~{reference.fasta} \
--runDir ~{runDir} \ --runDir ~{runDir} \
~{"--callRegions " + callRegions} \ ~{"--callRegions " + callRegions} \
~{"--indelCandidates " + indelCandidates} \ ~{indelCandidatesArg} \
~{true="--exome" false="" exome} \ ~{true="--exome" false="" exome} \
} }
...@@ -82,6 +81,7 @@ task Run { ...@@ -82,6 +81,7 @@ task Run {
Int cores = 1 Int cores = 1
Int memory = 4 Int memory = 4
Boolean somatic = true Boolean somatic = true
#FIXME: This task does not have input files
} }
command { command {
......
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