2020-11-24 19:24:54 +00:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2020-11-24 21:30:51 +00:00
|
|
|
include { FASTQC as FASTQC_SE } from '../../../software/fastqc/main.nf' addParams( options: [ publish_dir:'test_single_end' ] )
|
|
|
|
include { FASTQC as FASTQC_PE } from '../../../software/fastqc/main.nf' addParams( options: [ publish_dir:'test_paired_end' ] )
|
2020-11-24 19:24:54 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Test with single-end data
|
|
|
|
*/
|
|
|
|
workflow test_single_end {
|
|
|
|
|
|
|
|
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) ] ]
|
2020-11-24 19:24:54 +00:00
|
|
|
|
|
|
|
FASTQC_SE ( input )
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Test with paired-end data
|
|
|
|
*/
|
|
|
|
workflow test_paired_end {
|
|
|
|
|
|
|
|
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)]]
|
|
|
|
|
|
|
|
FASTQC_PE(input)
|
|
|
|
|
|
|
|
emit:
|
|
|
|
html = FASTQC_PE.out.html
|
2020-12-08 13:27:14 +00:00
|
|
|
zip = FASTQC_PE.out.zip
|
2020-11-24 19:24:54 +00:00
|
|
|
|
|
|
|
}
|
2020-11-25 00:16:56 +00:00
|
|
|
|
|
|
|
// TODO Test e2e
|