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

FastQC: add id_file var for single-end like for paired-end

parent 81a2d4bb
No related branches found
No related tags found
No related merge requests found
......@@ -18,15 +18,16 @@ log.info "fastq files : ${params.fastq}"
Channel
.fromPath( params.fastq )
.ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" }
.map { it -> [(it.baseName =~ /([^\.]*)/)[0][1], it]}
.set { fastq_files }
process fastqc_fastq {
tag "$reads.baseName"
tag "$file_id"
publishDir "results/fastq/fastqc/", mode: 'copy'
cpus = 1
input:
file reads from fastq_files
set file_id, file(reads) from fastq_files
output:
file "*.{zip,html}" into fastqc_report
......
......@@ -5,15 +5,16 @@ log.info "fastq files : ${params.fastq}"
Channel
.fromPath( params.fastq )
.ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" }
.map { it -> [(it.baseName =~ /([^\.]*)/)[0][1], it]}
.set { fastq_files }
process fastqc_fastq {
tag "$reads.baseName"
tag "$file_id"
publishDir "results/fastq/fastqc/", mode: 'copy'
cpus = 1
input:
file reads from fastq_files
set file_id, file(reads) from fastq_files
output:
file "*.{zip,html}" into fastqc_report
......
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