mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
Add missing $prefix definition for MALT_RUN (#1373)
* fix: remove left-over unnecessary code * Add forgotten prefix for the log * Update meta.yml * Update tests Co-authored-by: Sateesh Peri <33637490+sateeshperi@users.noreply.github.com>
This commit is contained in:
parent
d8028dc1c3
commit
72b96f4e50
3 changed files with 4 additions and 3 deletions
|
@ -23,6 +23,7 @@ process MALT_RUN {
|
|||
|
||||
script:
|
||||
def args = task.ext.args ?: ''
|
||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||
def avail_mem = 6
|
||||
if (!task.memory) {
|
||||
log.info '[MALT_RUN] Available memory not known - defaulting to 6GB. Specify process memory requirements to change this.'
|
||||
|
@ -39,7 +40,7 @@ process MALT_RUN {
|
|||
$args \\
|
||||
--inFile ${fastqs.join(' ')} \\
|
||||
-m $mode \\
|
||||
--index $index/ |&tee malt-run.log
|
||||
--index $index/ |&tee ${prefix}-malt-run.log
|
||||
|
||||
cat <<-END_VERSIONS > versions.yml
|
||||
"${task.process}":
|
||||
|
|
|
@ -52,7 +52,7 @@ output:
|
|||
- log:
|
||||
type: file
|
||||
description: Log of verbose MALT stdout
|
||||
pattern: "malt-run.log"
|
||||
pattern: "*-malt-run.log"
|
||||
|
||||
authors:
|
||||
- "@jfy133"
|
||||
|
|
|
@ -5,4 +5,4 @@
|
|||
- malt/run
|
||||
files:
|
||||
- path: output/malt/test_1.rma6
|
||||
- path: output/malt/malt-run.log
|
||||
- path: output/malt/test-malt-run.log
|
||||
|
|
Loading…
Reference in a new issue