2020-11-24 19:24:54 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-02-03 16:02:58 +00:00
|
|
|
include { FASTQC } from '../../../software/fastqc/main.nf' addParams( options: [:] )
|
2020-11-24 19:24:54 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Test with single-end data
|
|
|
|
*/
|
2021-02-03 16:02:58 +00:00
|
|
|
workflow test_fastqc_single_end {
|
2020-11-24 19:24:54 +00:00
|
|
|
|
|
|
|
def input = []
|
|
|
|
input = [ [ id:'test', single_end:true ], // meta map
|
2020-11-24 20:16:20 +00:00
|
|
|
[ file("${launchDir}/tests/data/fastq/rna/test_single_end.fastq.gz", checkIfExists: true) ] ]
|
2021-02-03 16:02:58 +00:00
|
|
|
FASTQC ( input )
|
2020-11-24 19:24:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Test with paired-end data
|
|
|
|
*/
|
2021-02-03 16:02:58 +00:00
|
|
|
workflow test_fastqc_paired_end {
|
2020-11-24 19:24:54 +00:00
|
|
|
|
|
|
|
def input = []
|
2020-12-03 04:12:34 +00:00
|
|
|
input = [[id: 'test', single_end: false], // meta map
|
|
|
|
[file("${launchDir}/tests/data/fastq/rna/test_R1.fastq.gz", checkIfExists: true),
|
|
|
|
file("${launchDir}/tests/data/fastq/rna/test_R2.fastq.gz", checkIfExists: true)]]
|
2021-02-03 16:02:58 +00:00
|
|
|
FASTQC (input)
|
2020-11-24 19:24:54 +00:00
|
|
|
}
|