forked from biowdl/tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
strelka.wdl
99 lines (85 loc) · 2.46 KB
/
strelka.wdl
1
2
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version 1.0
import "common.wdl" as common
task Germline {
input {
String runDir = "./strelka_run"
Array[File]+ bams
Array[File]+ indexes
File referenceFasta
File referenceFastaFai
File? callRegions
File? callRegionsIndex
Boolean exome = false
Boolean rna = false
Int cores = 1
Int memory = 4
String dockerImage = "quay.io/biocontainers/strelka:2.9.7--0"
}
command {
configureStrelkaGermlineWorkflow.py \
--bam ~{sep=" --bam " bams} \
--ref ~{referenceFasta} \
--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/variants.vcf.gz"
File variantsIndex = runDir + "/results/variants/variants.vcf.gz.tbi"
}
runtime {
docker: dockerImage
cpu: cores
memory: memory
}
}
task Somatic {
input {
String runDir = "./strelka_run"
File normalBam
File normalBamIndex
File tumorBam
File tumorBamIndex
File referenceFasta
File referenceFastaFai
File? callRegions
File? callRegionsIndex
File? indelCandidatesVcf
File? indelCandidatesVcfIndex
Boolean exome = false
Int cores = 1
Int memory = 4
String dockerImage = "quay.io/biocontainers/strelka:2.9.7--0"
File? doNotDefineThis #FIXME
}
command {
configureStrelkaSomaticWorkflow.py \
--normalBam ~{normalBam} \
--tumorBam ~{tumorBam} \
--ref ~{referenceFasta} \
--runDir ~{runDir} \
~{"--callRegions " + callRegions} \
~{"--indelCandidates " + indelCandidatesVcf} \
~{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 variants = runDir + "/results/variants/somatic.snvs.vcf.gz"
File variantsIndex = runDir + "/results/variants/somatic.snvs.vcf.gz.tbi"
}
runtime {
docker: dockerImage
cpu: cores
memory: memory
}
}