forked from biowdl/tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanta.wdl
More file actions
59 lines (51 loc) · 1.86 KB
/
Copy pathmanta.wdl
File metadata and controls
59 lines (51 loc) · 1.86 KB
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
version 1.0
import "common.wdl"
task Somatic {
input {
File tumorBam
File tumorBamIndex
File? normalBam
File? normalBamIndex
File referenceFasta
File referenceFastaFai
String runDir = "./manta_run"
File? callRegions
File? callRegionsIndex
Boolean exome = false
Int cores = 1
Int memory = 4
String dockerImage = "quay.io/biocontainers/manta:1.4.0--py27_1"
}
command {
configManta.py \
~{"--normalBam " + normalBam} \
~{"--tumorBam " + tumorBam} \
--referenceFasta ~{referenceFasta} \
~{"--callRegions " + callRegions} \
--runDir ~{runDir} \
~{true="--exome" false="" exome}
~{runDir}/runWorkflow.py \
-m local \
-j ~{cores} \
-g ~{memory}
}
output {
File candidateSmallIndelsVcf = runDir + "/results/variants/candidateSmallIndels.vcf.gz"
File candidateSmallIndelsVcfIndex = runDir + "/results/variants/candidateSmallIndels.vcf.gz.tbi"
File candidateSVVcf = runDir + "/results/variants/candidateSV.vcf.gz"
File candidatSVVcfIndex = runDir + "/results/variants/candidateSV.vcf.gz.tbi"
File tumorSVVcf = if defined(normalBam)
then runDir + "/results/variants/somaticSV.vcf.gz"
else runDir + "/results/variants/tumorSV.vcf.gz"
File tumorSVVcfIndex = if defined(normalBam)
then runDir + "/results/variants/somaticSV.vcf.gz.tbi"
else runDir + "/results/variants/tumorSV.vcf.gz.tbi"
File? diploidSV = runDir + "/results/variants/diploidSV.vcf.gz"
File? diploidSVindex = runDir + "/results/variants/diploidSV.vcf.gz.tbi"
}
runtime {
cpu: cores
memory: memory
docker: dockerImage
}
}