2019-12-05 09:57:32 -05:00
|
|
|
#!/usr/bin/env nextflow
|
2020-03-16 10:17:38 -04:00
|
|
|
|
2020-08-06 19:35:34 -04:00
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2020-07-14 11:38:20 -04:00
|
|
|
include { FASTQC } from '../main.nf'
|
2019-12-05 09:57:32 -05:00
|
|
|
|
2020-08-06 19:35:34 -04:00
|
|
|
/*
|
|
|
|
* Test with single-end data
|
2020-07-14 11:38:20 -04:00
|
|
|
*/
|
|
|
|
workflow test_single_end {
|
2020-07-16 08:20:37 -04:00
|
|
|
|
2020-08-07 04:32:03 -04:00
|
|
|
def input = []
|
2020-08-07 04:44:16 -04:00
|
|
|
input = [ [ id:'test', single_end:true ], // meta map
|
2020-08-07 04:40:02 -04:00
|
|
|
[ file("${baseDir}/input/test_single_end.fastq.gz", checkIfExists: true) ] ]
|
2020-07-16 08:20:37 -04:00
|
|
|
|
2020-08-07 04:32:03 -04:00
|
|
|
FASTQC ( input, [ publish_dir:'test_single_end' ] )
|
2020-07-14 11:38:20 -04:00
|
|
|
}
|
|
|
|
|
2020-08-06 19:35:34 -04:00
|
|
|
/*
|
|
|
|
* Test with paired-end data
|
2020-07-14 11:38:20 -04:00
|
|
|
*/
|
|
|
|
workflow test_paired_end {
|
2020-07-16 08:20:37 -04:00
|
|
|
|
2020-08-07 04:32:03 -04:00
|
|
|
def input = []
|
2020-08-07 04:44:16 -04:00
|
|
|
input = [ [ id:'test', single_end:false ], // meta map
|
2020-08-07 04:40:02 -04:00
|
|
|
[ file("${baseDir}/input/test_R1.fastq.gz", checkIfExists: true),
|
|
|
|
file("${baseDir}/input/test_R2.fastq.gz", checkIfExists: true) ] ]
|
2020-07-16 08:20:37 -04:00
|
|
|
|
2020-08-07 04:32:03 -04:00
|
|
|
FASTQC ( input, [ publish_dir:'test_paired_end' ] )
|
2020-07-14 11:38:20 -04:00
|
|
|
}
|
2019-12-05 09:57:32 -05:00
|
|
|
|
2019-12-05 16:11:12 -05:00
|
|
|
workflow {
|
2020-07-14 11:38:20 -04:00
|
|
|
test_single_end()
|
|
|
|
test_paired_end()
|
2019-12-05 09:57:32 -05:00
|
|
|
}
|