From 2d70e1afef6d6ad08756053904259f8a19a70b08 Mon Sep 17 00:00:00 2001 From: LaurenceKuhl Date: Mon, 22 Apr 2024 14:52:19 +0200 Subject: [PATCH] Update main.nf --- modules/nf-core/nanoplot/main.nf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/nf-core/nanoplot/main.nf b/modules/nf-core/nanoplot/main.nf index ca0d8454..ac60eaa3 100644 --- a/modules/nf-core/nanoplot/main.nf +++ b/modules/nf-core/nanoplot/main.nf @@ -24,10 +24,12 @@ process NANOPLOT { def args = task.ext.args ?: '' def input_file = ("$ontfile".endsWith(".fastq.gz")) ? "--fastq ${ontfile}" : ("$ontfile".endsWith(".txt")) ? "--summary ${ontfile}" : '' + def prefix = task.ext.prefix ?: "${meta.id}" """ NanoPlot \\ $args \\ -t $task.cpus \\ + -p $prefix \\ $input_file cat <<-END_VERSIONS > versions.yml "${task.process}":