Skip to content
Snippets Groups Projects
Verified Commit b5a93ee3 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

fastp: fix output name to be catched by multiqc

parent ad8474e6
No related branches found
No related tags found
No related merge requests found
...@@ -6,13 +6,15 @@ process fastp_pairedend { ...@@ -6,13 +6,15 @@ process fastp_pairedend {
container = "${container_url}" container = "${container_url}"
label "big_mem_multi_cpus" label "big_mem_multi_cpus"
tag "$pair_id" tag "$pair_id"
publishDir "results/QC/fastp/", mode: 'copy', pattern: "*.html"
input: input:
tuple val(pair_id), path(reads) tuple val(pair_id), path(reads)
output: output:
tuple val(pair_id), path("*.fastq.gz"), emit: fastq tuple val(pair_id), path("*.fastq.gz"), emit: fastq
tuple val(pair_id), path("*.{zip,html,json}"), emit: report tuple val(pair_id), path("*.html"), emit: html
tuple val(pair_id), path("*.json"), emit: report
script: script:
""" """
...@@ -25,7 +27,7 @@ fastp --thread ${task.cpus} \ ...@@ -25,7 +27,7 @@ fastp --thread ${task.cpus} \
--out1 ${pair_id}_R1_trim.fastq.gz \ --out1 ${pair_id}_R1_trim.fastq.gz \
--out2 ${pair_id}_R2_trim.fastq.gz \ --out2 ${pair_id}_R2_trim.fastq.gz \
--html ${pair_id}.html \ --html ${pair_id}.html \
--json ${pair_id}.json \ --json ${pair_id}_fastp.json \
--report_title ${pair_id} --report_title ${pair_id}
""" """
} }
...@@ -34,13 +36,15 @@ process fastp_singleend { ...@@ -34,13 +36,15 @@ process fastp_singleend {
container = "${container_url}" container = "${container_url}"
label "big_mem_multi_cpus" label "big_mem_multi_cpus"
tag "$pair_id" tag "$pair_id"
publishDir "results/QC/fastp/", mode: 'copy', pattern: "*.html"
input: input:
tuple val(pair_id), path(reads) tuple val(pair_id), path(reads)
output: output:
tuple val(pair_id), path("*.fastq.gz"), emit: fastq tuple val(pair_id), path("*.fastq.gz"), emit: fastq
tuple val(pair_id), path("*.{zip,html,json}"), emit: report tuple val(pair_id), path("*.html"), emit: html
tuple val(pair_id), path("*.json"), emit: report
script: script:
""" """
...@@ -51,7 +55,7 @@ fastp --thread ${task.cpus} \ ...@@ -51,7 +55,7 @@ fastp --thread ${task.cpus} \
--in1 ${reads} \ --in1 ${reads} \
--out1 ${pair_id}_trim.fastq.gz \ --out1 ${pair_id}_trim.fastq.gz \
--html ${pair_id}.html \ --html ${pair_id}.html \
--json ${pair_id}.json \ --json ${pair_id}_fastp.json \
--report_title ${pair_id} --report_title ${pair_id}
""" """
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment