added when section

This commit is contained in:
veitveit 2022-02-09 10:42:07 +01:00
parent ad98111756
commit 918a7f0363

View file

@ -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}"