Skip to content

Commit b048045

Browse files
committed
more room for samtools mpileup
1 parent b71a808 commit b048045

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

wdl/tasks/Utility/BAMutils.wdl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,8 +1415,10 @@ task BamToRelevantPileup {
14151415
Int cores = 12
14161416
Int memory = 4 + cores
14171417
Int local_ssd_sz = if size(bam, "GiB") > 150 then 750 else 375
1418-
Int pd_sz = 20 + 2 * ceil(size(bam, "GiB"))
1419-
Int disk_size = if "LOCAL" == disk_type then local_ssd_sz else pd_sz
1418+
Int pd_sz = 20 + 4 * ceil(size(bam, "GiB"))
1419+
Int min_pd_sz = 300
1420+
Int picked_pd_sz = if pd_sz < min_pd_sz then min_pd_sz else pd_sz
1421+
Int disk_size = if "LOCAL" == disk_type then local_ssd_sz else picked_pd_sz
14201422

14211423
runtime {
14221424
cpu: "~{cores}"

0 commit comments

Comments
 (0)