-
Notifications
You must be signed in to change notification settings - Fork 0
/
pbsv_discover.wdl
49 lines (38 loc) · 1.09 KB
/
pbsv_discover.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
version 1.0
# Generate svsigs to be used in SV calling using pbsv
import "../structs.wdl"
task pbsv_discover {
input {
File aligned_bam
File aligned_bam_index
File reference_tandem_repeat_bed
RuntimeAttributes runtime_attributes
}
String prefix = basename(aligned_bam, ".bam")
Int disk_size = ceil((size(aligned_bam, "GB") + size(reference_tandem_repeat_bed, "GB")) * 2 + 20)
command <<<
set -euo pipefail
pbsv --version
pbsv discover \
--log-level INFO \
--hifi \
--tandem-repeats ~{reference_tandem_repeat_bed} \
~{aligned_bam} \
~{prefix}.svsig.gz
>>>
output {
File svsig = "~{prefix}.svsig.gz"
}
runtime {
docker: "~{runtime_attributes.container_registry}/pbsv@sha256:798ca327f653c4e666b9f7c6a09260a762eea4e7e6864f490a87ed4106a53b98"
cpu: 2
memory: "8 GB"
disk: disk_size + " GB"
disks: "local-disk " + disk_size + " HDD"
preemptible: runtime_attributes.preemptible_tries
maxRetries: runtime_attributes.max_retries
awsBatchRetryAttempts: runtime_attributes.max_retries
queueArn: runtime_attributes.queue_arn
zones: runtime_attributes.zones
}
}