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

Fastqc.nf: add tests

parent 6ccc5fa2
No related branches found
No related tags found
No related merge requests found
......@@ -21,19 +21,19 @@ Channel
.set { fastq_files }
process fastqc_fastq {
tag "$fastq.baseName"
tag "$reads.baseName"
publishDir "results/fastq/fastqc/", mode: 'copy'
cpus = 1
input:
file fastq from fastq_files
file reads from fastq_files
output:
file "*.{zip,html}" into fastqc_repport
script:
"""
fastqc --quiet --threads ${task.cpus} --outdir -f fastq ./ ${fastq}
fastqc --quiet --threads ${task.cpus} --format fastq --outdir ./ ${reads}
"""
}
......@@ -63,8 +63,8 @@ process fastqc_fastq {
script:
"""
fastqc --quiet --threads ${task.cpus} --outdir -f fastq ./ \
${fastq[0]} ${fastq[1]}
fastqc --quiet --threads ${task.cpus} --format fastq --outdir ./ \
${reads[0]} ${reads[1]}
"""
}
params.fastq = "$baseDir/data/fastq/*_{1,2}.fastq"
log.info "fastq files : ${params.fastq}"
Channel
.fromFilePairs( params.fastq )
.ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" }
.set { fastq_files }
process fastqc_fastq {
tag "$pair_id"
publishDir "results/fastq/fastqc/", mode: 'copy'
input:
set pair_id, file(reads) from fastq_files
output:
file "*.{zip,html}" into fastqc_repport
script:
"""
fastqc --quiet --threads ${task.cpus} --format fastq --outdir ./ \
${reads[0]} ${reads[1]}
"""
}
params.fastq = "$baseDir/data/fastq/*.fastq"
log.info "fastq files : ${params.fastq}"
Channel
.fromPath( params.fastq )
.ifEmpty { error "Cannot find any fastq files matching: ${params.fastq}" }
.set { fastq_files }
process fastqc_fastq {
tag "$reads.baseName"
publishDir "results/fastq/fastqc/", mode: 'copy'
cpus = 1
input:
file reads from fastq_files
output:
file "*.{zip,html}" into fastqc_repport
script:
"""
fastqc --quiet --threads ${task.cpus} --format fastq --outdir ./ ${reads}
"""
}
nextflow src/nf_modules/FastQC/tests/fastqc_paired.nf \
-c src/nf_modules/FastQC/fastqc.config \
-profile docker \
--fastq "data/tiny_dataset/fastq/tiny_R{1,2}.fastq"
nextflow src/nf_modules/FastQC/tests/fastqc_single.nf \
-c src/nf_modules/FastQC/fastqc.config \
-profile docker \
--fastq "data/tiny_dataset/fastq/tiny_S.fastq"
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