mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +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:
|
script:
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def avail_mem = 6
|
def avail_mem = 6
|
||||||
if (!task.memory) {
|
if (!task.memory) {
|
||||||
log.info '[MALT_RUN] Available memory not known - defaulting to 6GB. Specify process memory requirements to change this.'
|
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 \\
|
$args \\
|
||||||
--inFile ${fastqs.join(' ')} \\
|
--inFile ${fastqs.join(' ')} \\
|
||||||
-m $mode \\
|
-m $mode \\
|
||||||
--index $index/ |&tee malt-run.log
|
--index $index/ |&tee ${prefix}-malt-run.log
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
"${task.process}":
|
"${task.process}":
|
||||||
|
|
|
@ -52,7 +52,7 @@ output:
|
||||||
- log:
|
- log:
|
||||||
type: file
|
type: file
|
||||||
description: Log of verbose MALT stdout
|
description: Log of verbose MALT stdout
|
||||||
pattern: "malt-run.log"
|
pattern: "*-malt-run.log"
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- "@jfy133"
|
- "@jfy133"
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
- malt/run
|
- malt/run
|
||||||
files:
|
files:
|
||||||
- path: output/malt/test_1.rma6
|
- 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