Update filtlong module to output log file (#1873)

Redirect logging information to log file in filtlong module
This commit is contained in:
Sofia Stamouli 2022-07-12 17:05:31 +02:00 committed by GitHub
parent b78e19b9da
commit 957cb9b836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 7 deletions

View file

@ -12,7 +12,8 @@ process FILTLONG {
output:
tuple val(meta), path("*.fastq.gz"), emit: reads
path "versions.yml" , emit: versions
tuple val(meta), path("*.log") , emit: log
path "versions.yml" , emit: versions
when:
task.ext.when == null || task.ext.when
@ -27,6 +28,7 @@ process FILTLONG {
$short_reads \\
$args \\
$longreads \\
2> ${prefix}.log \\
| gzip -n > ${prefix}.fastq.gz
cat <<-END_VERSIONS > versions.yml

View file

@ -45,6 +45,11 @@ output:
type: file
description: Filtered (compressed) fastq file
pattern: "*.fastq.gz"
- log:
type: file
description: Standard error logging file containing summary statistics
pattern: "*.log"
authors:
- "@d4straub"
- "@sofstam"

View file

@ -4,8 +4,8 @@
- filtlong
files:
- path: output/filtlong/test_lr.fastq.gz
contains:
- "@00068f7a-51b3-4933-8fc6-7d6e29181ff9"
- path: output/filtlong/test_lr.log
contains: ["Scoring long reads"]
- name: filtlong test_filtlong_illumina_se
command: nextflow run ./tests/modules/filtlong -entry test_filtlong_illumina_se -c ./tests/config/nextflow.config -c ./tests/modules/filtlong/nextflow.config
@ -13,8 +13,8 @@
- filtlong
files:
- path: output/filtlong/test_lr.fastq.gz
contains:
- "@00068f7a-51b3-4933-8fc6-7d6e29181ff9"
- path: output/filtlong/test_lr.log
contains: ["Scoring long reads"]
- name: filtlong test_filtlong_illumina_pe
command: nextflow run ./tests/modules/filtlong -entry test_filtlong_illumina_pe -c ./tests/config/nextflow.config -c ./tests/modules/filtlong/nextflow.config
@ -22,5 +22,5 @@
- filtlong
files:
- path: output/filtlong/test_lr.fastq.gz
contains:
- "@00068f7a-51b3-4933-8fc6-7d6e29181ff9"
- path: output/filtlong/test_lr.log
contains: ["Scoring long reads"]