mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
Update MOTUS/PROFILE module to output log file (#1871)
* Add saving of stderr output as a log file as it contains summary statistics * Apply suggestions from code review
This commit is contained in:
parent
957cb9b836
commit
b6ed584443
3 changed files with 9 additions and 1 deletions
|
@ -15,6 +15,7 @@ process MOTUS_PROFILE {
|
||||||
tuple val(meta), path("*.out"), emit: out
|
tuple val(meta), path("*.out"), emit: out
|
||||||
tuple val(meta), path("*.bam"), optional: true, emit: bam
|
tuple val(meta), path("*.bam"), optional: true, emit: bam
|
||||||
tuple val(meta), path("*.mgc"), optional: true, emit: mgc
|
tuple val(meta), path("*.mgc"), optional: true, emit: mgc
|
||||||
|
tuple val(meta), path("*.log") , emit: log
|
||||||
path "versions.yml" , emit: versions
|
path "versions.yml" , emit: versions
|
||||||
|
|
||||||
when:
|
when:
|
||||||
|
@ -36,7 +37,8 @@ process MOTUS_PROFILE {
|
||||||
$refdb \\
|
$refdb \\
|
||||||
-t $task.cpus \\
|
-t $task.cpus \\
|
||||||
-n $prefix \\
|
-n $prefix \\
|
||||||
-o ${prefix}.out
|
-o ${prefix}.out \\
|
||||||
|
2> ${prefix}.log
|
||||||
|
|
||||||
## mOTUs version number is not available from command line.
|
## mOTUs version number is not available from command line.
|
||||||
## mOTUs save the version number in index database folder.
|
## mOTUs save the version number in index database folder.
|
||||||
|
|
|
@ -56,6 +56,10 @@ output:
|
||||||
type: file
|
type: file
|
||||||
description: Optional intermediate mgc read count table file saved with `-M`.
|
description: Optional intermediate mgc read count table file saved with `-M`.
|
||||||
pattern: "*.{mgc}"
|
pattern: "*.{mgc}"
|
||||||
|
- log:
|
||||||
|
type: file
|
||||||
|
description: Standard error logging file containing summary statistics
|
||||||
|
pattern: "*.log"
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- "@jianhong"
|
- "@jianhong"
|
||||||
|
|
|
@ -6,3 +6,5 @@
|
||||||
files:
|
files:
|
||||||
- path: output/motus/test.out
|
- path: output/motus/test.out
|
||||||
contains: ["#consensus_taxonomy\ttest"]
|
contains: ["#consensus_taxonomy\ttest"]
|
||||||
|
- path: output/motus/test.log
|
||||||
|
contains: ["Finished computation"]
|
||||||
|
|
Loading…
Reference in a new issue