Update PORECHOP module to output log file (#1870)

Update porechop to output log file
This commit is contained in:
James A. Fellows Yates 2022-07-12 16:07:31 +02:00 committed by GitHub
parent ec806cebf1
commit b78e19b9da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View file

@ -12,6 +12,7 @@ process PORECHOP {
output:
tuple val(meta), path("*.fastq.gz"), emit: reads
tuple val(meta), path("*.log") , emit: log
path "versions.yml" , emit: versions
when:
@ -25,7 +26,8 @@ process PORECHOP {
-i $reads \\
-t $task.cpus \\
$args \\
-o ${prefix}.fastq.gz
-o ${prefix}.fastq.gz \\
> ${prefix}.log
cat <<-END_VERSIONS > versions.yml
"${task.process}":

View file

@ -38,6 +38,10 @@ output:
type: file
description: Demultiplexed and/or adapter-trimmed fastq.gz file
pattern: "*.{fastq.gz}"
- log:
type: file
description: Log file containing stdout information
pattern: "*.log"
authors:
- "@ggabernet"
@ -48,3 +52,4 @@ authors:
- "@jonasscheid"
- "@jonoave"
- "@GokceOGUZ"
- "@jfy133"

View file

@ -5,3 +5,5 @@
files:
- path: output/porechop/test_porechop.fastq.gz
md5sum: 08f314ae9f162c8dcc27e5b513d2064d
- path: output/porechop/test_porechop.log
contains: ["Saving trimmed reads to file"]