Skip to content

Commit 1f0416e

Browse files
committed
add scaling factors for filter_bam_to_taxa and rmdup_ubam
1 parent 66252b9 commit 1f0416e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pipes/WDL/tasks/tasks_metagenomics.wdl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,12 +785,12 @@ task filter_bam_to_taxa {
785785
Boolean exclude_taxa = false
786786
String out_filename_suffix = "filtered"
787787

788-
Int machine_mem_gb = 26
788+
Int machine_mem_gb = 26 + 10 * ceil(size(classified_reads_txt_gz, "GB"))
789789
String docker = "quay.io/broadinstitute/viral-classify:2.2.5"
790790
}
791791

792792
String out_basename = basename(classified_bam, ".bam") + "." + out_filename_suffix
793-
Int disk_size = 375
793+
Int disk_size = 375 + 2 * ceil(size(classified_bam, "GB"))
794794

795795
command <<<
796796
set -ex -o pipefail

pipes/WDL/tasks/tasks_read_utils.wdl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ task rmdup_ubam {
247247
String docker = "quay.io/broadinstitute/viral-core:2.4.1"
248248
}
249249

250-
Int disk_size = 375
250+
Int disk_size = 375 + 2 * ceil(size(reads_unmapped_bam, "GB"))
251251

252252
parameter_meta {
253253
reads_unmapped_bam: { description: "unaligned reads in BAM format", patterns: ["*.bam"] }

0 commit comments

Comments
 (0)