From b5ecb0cb0a3525da51bc68cb67faa9709bb82bb5 Mon Sep 17 00:00:00 2001 From: Micah Rickles-Young Date: Tue, 29 Oct 2024 10:00:16 -0400 Subject: [PATCH] Fixing BAM size calc for WDL version --- .../RevertBamAndBwaAln/subworkflows/MergeBamAlignment.wdl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Liquid_Biopsy_Duplex_Analysis/RevertBamAndBwaAln/subworkflows/MergeBamAlignment.wdl b/Liquid_Biopsy_Duplex_Analysis/RevertBamAndBwaAln/subworkflows/MergeBamAlignment.wdl index fcf6e31..58bda77 100644 --- a/Liquid_Biopsy_Duplex_Analysis/RevertBamAndBwaAln/subworkflows/MergeBamAlignment.wdl +++ b/Liquid_Biopsy_Duplex_Analysis/RevertBamAndBwaAln/subworkflows/MergeBamAlignment.wdl @@ -27,7 +27,7 @@ task MergeBamAlignmentTask { String? sort_order = "coordinate" Int? diskgb_buffer - Float disk_size = 50 + size(mapped_bam, "GB")*3 + size(unmapped_bam, "GB")*3 + select_first([diskgb_buffer, 0]) + Float disk_size = 50 + size(mapped_bam[0], "GB")*length(mapped_bam)*3 + size(unmapped_bam, "GB")*3 + select_first([diskgb_buffer, 0]) Int compression_level Int? preemptible_tries = 1 String? gatk_docker = "us.gcr.io/broad-gatk/gatk:4.5.0.0"