From ab5735aaa53ee21f884a7c6e80726b7274b99f1b Mon Sep 17 00:00:00 2001 From: "Moritz E. Beber" Date: Mon, 4 Nov 2024 11:49:21 +0100 Subject: [PATCH] fix: always use list of files --- modules/nf-core/krakenuniq/preloadedkrakenuniq/main.nf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/nf-core/krakenuniq/preloadedkrakenuniq/main.nf b/modules/nf-core/krakenuniq/preloadedkrakenuniq/main.nf index 4c33eece20c0..5311e4f3c8c2 100644 --- a/modules/nf-core/krakenuniq/preloadedkrakenuniq/main.nf +++ b/modules/nf-core/krakenuniq/preloadedkrakenuniq/main.nf @@ -29,6 +29,7 @@ process KRAKENUNIQ_PRELOADEDKRAKENUNIQ { script: assert sequence_type in ['fasta', 'fastq'] + sequences = sequences instanceof List ? sequences : [sequences] def args = task.ext.args ?: '' def args2 = task.ext.args ?: '' @@ -117,6 +118,7 @@ process KRAKENUNIQ_PRELOADEDKRAKENUNIQ { stub: assert sequence_type in ['fasta', 'fastq'] + sequences = sequences instanceof List ? sequences : [sequences] def args = task.ext.args ?: '' def args2 = task.ext.args ?: ''