From 7db296e70f162c68ce3c8b05c86618c749e7f9a5 Mon Sep 17 00:00:00 2001 From: Ruben Vorderman <r.h.p.vorderman@lumc.nl> Date: Tue, 16 Jun 2020 08:58:37 +0200 Subject: [PATCH] resource requirements for multiqc --- multiqc.wdl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/multiqc.wdl b/multiqc.wdl index 6a967b3..7dcf333 100644 --- a/multiqc.wdl +++ b/multiqc.wdl @@ -51,11 +51,11 @@ task MultiQC { Boolean megaQCUpload = false # This must be actively enabled in my opinion. The tools default is to upload. File? config # A directory String? clConfig - - String memory = "4G" - Int timeMinutes = 120 + String? memory + Int timeMinutes = 2 + ceil(size(reports, "G") * 8) String dockerImage = "quay.io/biocontainers/multiqc:1.7--py_1" } + Int memoryGb = 2 + ceil(size(reports, "G")) # This is where the reports end up. It does not need to be changed by the # user. It is full of symbolic links, so it is not of any use to the user @@ -132,7 +132,7 @@ task MultiQC { } runtime { - memory: memory + memory: select_first([memory, "~{memoryGb}G"]) time_minutes: timeMinutes docker: dockerImage } -- GitLab