-
Notifications
You must be signed in to change notification settings - Fork 1
/
ReblockGVCF.wdl
54 lines (45 loc) · 1.1 KB
/
ReblockGVCF.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
workflow ReblockGVCF {
File gvcf
Int small_disk
Int medium_disk
Int huge_disk
String sub_strip_path = "gs://.*/"
String sub_strip_gvcf = ".g.vcf.gz" + "$"
String sub_sub = sub(sub(gvcf, sub_strip_path, ""), sub_strip_gvcf, "")
call Reblock {
input:
gvcf = gvcf,
gvcf_index = gvcf + ".tbi",
output_vcf_filename = sub_sub + ".vcf.gz",
disk_size = medium_disk
}
output {
Reblock.output_vcf
Reblock.output_vcf_index
}
}
task Reblock {
File gvcf
File gvcf_index
String output_vcf_filename
Int disk_size
command <<<
gatk --java-options "-Xms3g -Xmx3g" \
ReblockGVCF \
-V ${gvcf} \
-drop-low-quals \
-do-qual-approx \
--floor-blocks -GQB 10 -GQB 20 -GQB 30 -GQB 40 -GQB 50 -GQB 60 \
-O ${output_vcf_filename}
>>>
runtime {
memory: "3 GB"
disks: "local-disk " + disk_size + " HDD"
preemptible: 3
docker: "gcr.io/broad-dsde-methods/reblock_gvcf:correctedASCounts"
}
output {
File output_vcf = "${output_vcf_filename}"
File output_vcf_index = "${output_vcf_filename}.tbi"
}
}