Skip to content

Commit 7fa5bf9

Browse files
committed
update SSD disk requirement
1 parent 7bf2094 commit 7fa5bf9

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

CNV-Profiler/CNV-Profiler.wdl

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,10 @@ task SamtoolsDepth {
153153
File target_bed
154154
Int minBaseQuality = 20
155155
Int minMappingQuality = 20
156-
Int? mem_gb
157-
Int? cpu
158-
Int? disk_size_gb
156+
Int mem_gb = 32
157+
Int cpu = 4
158+
Int disk_size_gb = 500
159+
Boolean use_ssd = true
159160
String samtools_docker = "euformatics/samtools:1.20"
160161
}
161162
command <<<
@@ -179,10 +180,10 @@ task SamtoolsDepth {
179180
File depth_profile = "output/~{sampleName}_samtools.depth"
180181
}
181182
runtime {
182-
memory: select_first([mem_gb, 7]) * 1000 + " MB"
183-
cpu: select_first([cpu, 1])
183+
memory: mem_gb * 1000 + " MB"
184+
cpu: cpu
184185
docker: samtools_docker
185-
disks: "local-disk ~{disk_size_gb} SSD"
186+
disks: "local-disk " + disk_size_gb + if use_ssd then " SSD" else " HDD"
186187
preemptible: 0
187188
maxRetries: 3
188189
}
@@ -199,6 +200,7 @@ task cnvDepthProfiler{
199200
Int preemptible = 0
200201
Int disk_size_gb = 500
201202
Int maxRetries = 1
203+
Boolean use_ssd = true
202204
}
203205
command <<<
204206
set -e
@@ -220,7 +222,7 @@ task cnvDepthProfiler{
220222
memory: mem_gb + " GB"
221223
cpu: cpu
222224
docker: cnvProfiler_Docker
223-
disks: "local-disk ~{disk_size_gb} SSD"
225+
disks: "local-disk " + disk_size_gb + if use_ssd then " SSD" else " HDD"
224226
preemptible: preemptible
225227
maxRetries: maxRetries
226228
}
@@ -239,6 +241,7 @@ task HeterozygosityCheck{
239241
Int preemptible = 0
240242
Int disk_size_gb = 500
241243
Int maxRetries = 1
244+
Boolean use_ssd = true
242245
}
243246
command <<<
244247
set -e
@@ -265,7 +268,7 @@ task HeterozygosityCheck{
265268
memory: mem_gb + " GB"
266269
cpu: cpu
267270
docker: cnvProfiler_Docker
268-
disks: "local-disk ~{disk_size_gb} SSD"
271+
disks: "local-disk " + disk_size_gb + if use_ssd then " SSD" else " HDD"
269272
preemptible: preemptible
270273
maxRetries: maxRetries
271274
}

0 commit comments

Comments
 (0)