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

36 lines
802 B
Text
Raw Normal View History

#!/usr/bin/env nextflow
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'
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-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-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-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-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 16:11:12 -05:00
workflow {
2020-07-14 11:38:20 -04:00
test_single_end()
test_paired_end()
}