From 3c15e2d2fac109ba18a9a6ec3402aabcd4c5254e Mon Sep 17 00:00:00 2001 From: DLBPointon Date: Mon, 9 Dec 2024 12:37:23 +0000 Subject: [PATCH] Changin PERL version string and Updating executor values --- conf/modules.config | 2 +- conf/test_full.config | 13 +++---------- modules/local/extract_repeat.nf | 4 ++-- nextflow.config | 7 ------- 4 files changed, 6 insertions(+), 20 deletions(-) diff --git a/conf/modules.config b/conf/modules.config index 33b7601..c5a9085 100755 --- a/conf/modules.config +++ b/conf/modules.config @@ -133,7 +133,7 @@ process { } withName: PRETEXTMAP_STANDRD { - ext.args = { "${meta.map_order.equals("length") ? "--sortby length": "--sortby nosort" } --mapq 0 --memory ${task.memory.giga}" } + ext.args = { "${meta.map_order.equals("length") ? "--sortby length": "--sortby nosort" } --mapq 0" } ext.prefix = { "${meta.id}_normal_pi" } } diff --git a/conf/test_full.config b/conf/test_full.config index 8b02e36..65d109a 100755 --- a/conf/test_full.config +++ b/conf/test_full.config @@ -12,13 +12,9 @@ cleanup = true -process { - resourceLimits = [ - cpus: 4, - memory: '10.GB', - time: '1.h' - ] -} +executor.cpus = 50 +executor.memory = 50.GB +executor.time = 1.h params { config_profile_name = 'Full test profile' @@ -26,9 +22,6 @@ params { // Input data for full size test // Limit resources so that this can run on GitHub Actions - max_cpus = 1 - max_memory = '10.GB' - max_time = '6.h' sample = "testing" input = "/lustre/scratch123/tol/resources/treeval/treeval-testdata/TreeValTinyData/assembly/draft/grTriPseu1.fa" diff --git a/modules/local/extract_repeat.nf b/modules/local/extract_repeat.nf index 6f534b4..437e015 100755 --- a/modules/local/extract_repeat.nf +++ b/modules/local/extract_repeat.nf @@ -25,7 +25,7 @@ process EXTRACT_REPEAT { cat <<-END_VERSIONS > versions.yml "${task.process}": - perl: \$(echo \$(perl --version 2>&1 | grep -oP '\(\K[^\)]+') + perl: \$(echo \$(perl --version 2>&1) | awk '/This/ {print \$9}') | tr -d ()) extract_repeat.pl: $VERSION END_VERSIONS """ @@ -38,7 +38,7 @@ process EXTRACT_REPEAT { cat <<-END_VERSIONS > versions.yml "${task.process}": - perl: \$(echo \$(perl --version 2>&1 | grep -oP '\(\K[^\)]+') + perl: \$(echo \$(perl --version 2>&1) | awk '/This/ {print \$9}') | tr -d ()) extract_repeat.pl: $VERSION END_VERSIONS """ diff --git a/nextflow.config b/nextflow.config index 8faa3d3..a4f65c1 100755 --- a/nextflow.config +++ b/nextflow.config @@ -42,13 +42,6 @@ params { config_profile_url = null config_profile_name = null - - // Max resource options - // Defaults only, expecting to be overwritten - max_memory = '128.GB' - max_cpus = 16 - max_time = '240.h' - } // Load base.config by default for all pipelines