From 918a7f03635ca2f0b1afb7e7a07760e5c6dccb2f Mon Sep 17 00:00:00 2001 From: veitveit Date: Wed, 9 Feb 2022 10:42:07 +0100 Subject: [PATCH] added when section --- modules/maxquant/lfq/main.nf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/maxquant/lfq/main.nf b/modules/maxquant/lfq/main.nf index 05419d46..1ddd2977 100644 --- a/modules/maxquant/lfq/main.nf +++ b/modules/maxquant/lfq/main.nf @@ -16,6 +16,9 @@ process MAXQUANT_LFQ { tuple val(meta), path("*.txt"), emit: maxquant_txt path "versions.yml" , emit: version + when: + task.ext.when == null || task.ext.when + script: def args = task.ext.args ?: '' def prefix = task.ext.prefix ?: "${meta.id}"