From 26062dd4383b88d16cd93f734904ef266de9bf9c Mon Sep 17 00:00:00 2001 From: luisas Date: Wed, 18 Dec 2024 13:13:48 +0100 Subject: [PATCH] upd --- .../utils_nfcore_multiplesequencealign_pipeline/main.nf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subworkflows/local/utils_nfcore_multiplesequencealign_pipeline/main.nf b/subworkflows/local/utils_nfcore_multiplesequencealign_pipeline/main.nf index 80f00302..45255245 100644 --- a/subworkflows/local/utils_nfcore_multiplesequencealign_pipeline/main.nf +++ b/subworkflows/local/utils_nfcore_multiplesequencealign_pipeline/main.nf @@ -344,7 +344,7 @@ def keepKeysFromArrayList(arrayList, keysToKeep) { * @return The total time in minutes as a double. * @throws IllegalArgumentException if the time string is not in the correct format. */ - def convertTime(String timeStr) { +def convertTime(String timeStr) { def pattern = /((?\d+(\.\d+)?)h)?\s*((?\d+(\.\d+)?)m)?\s*((?\d+(\.\d+)?)s)?\s*((?\d+(\.\d+)?)ms)?/ def matcher = timeStr.trim() =~ pattern @@ -374,8 +374,8 @@ def keepKeysFromArrayList(arrayList, keysToKeep) { * @param memory The memory string to be converted. * @return The memory in gigabytes as a double, or null if the input is invalid. */ - def convertMemory(String memory) { - if (!memory){ +def convertMemory(String memory) { + if (!memory) { return null }