nf-core_modules/software/fastqc/test/main.nf

37 lines
915 B
Text
Raw Normal View History

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