Newer
Older
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
task Germline {
input {
String? preCommand
String? installDir
String runDir
Array[File]+ bams
Array[File]+ indexes
File refFasta
File? callRegions
File? callRegionsIndex
Boolean exome = false
Boolean rna = false
Int cores = 1
Int memory = 4
}
String toolCommand = if defined(installDir)
then installDir + "bin/configureStrelkaGermlineWorkflow.py"
else "configureStrelkaGermlineWorkflow.py"
command {
set -e -o pipefail
~{preCommand}
~{toolCommand} \
--bam ~{sep=" --bam " bams} \
--ref ~{refFasta} \
--runDir ~{runDir} \
~{"--callRegions" + callRegions} \
~{true="--exome" false="" exome} \
~{true="--rna" false="" rna}
~{runDir}/runWorkflow.py \
-m local \
-J ~{cores} \
-g ~{memory}
}
output {
File variants = runDir + "/results/variants.vcf.gz"
File variantsIndex = runDir + "/results/variants.vcf.gz.tbi"
}
runtime {
cpu: cores
memory: memory
}
}
task Somatic {
input {
String? preCommand
String? installDir
String runDir
File normalBam
File? callRegions
File? callRegionsIndex
Boolean exome = false
Boolean rna = false
Int cores = 1
Int memory = 4
}
String toolCommand = if defined(installDir)
then installDir + "bin/configureStrelkaSomaticWorkflow.py"
else "configureStrelkaSomaticWorkflow.py"
command {
set -e -o pipefail
~{preCommand}
~{toolCommand} \
--normalBam ~{normalBam} \
--tumorBam ~{tumorBam} \
--ref ~{refFasta} \
--runDir ~{runDir} \
~{"--callRegions" + callRegions} \
~{true="--exome" false="" exome} \
~{runDir}/runWorkflow.py \
-m local \
-J ~{cores} \
-g ~{memory}
}
output {
File indelsVcf = runDir + "/results/variants/somatic.indels.vcf.gz"
File indelsIndex = runDir + "/results/variants/somatic.indels.vcf.gz.tbi"
File snvVcf = runDir + "/results/variants/somatic.snvs.vcf.gz"
File snvIndex = runDir + "/results/variants/somatic.snvs.vcf.gz.tbi"
}
runtime {
cpu: cores
memory: memory
}
}