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

40 lines
859 B
Text
Raw Normal View History

#!/usr/bin/env nextflow
2020-08-06 23:35:34 +00:00
nextflow.enable.dsl = 2
2020-08-07 08:32:03 +00:00
params.outdir = "output/"
2020-07-14 15:38:20 +00:00
params.publish_dir_mode = "copy"
2020-08-06 23:35:34 +00:00
params.conda = false
2020-07-14 15:38:20 +00:00
include { FASTQC } from '../main.nf'
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 = []
input = [ [ id:'test', single_end:true ],
2020-08-07 08:40:02 +00:00
[ file("${baseDir}/input/test_single_end.fastq.gz", checkIfExists: true) ] ]
2020-08-07 08:32:03 +00:00
FASTQC ( input, [ publish_dir:'test_single_end' ] )
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 = []
input = [ [ id:'test', single_end:false ],
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-08-07 08:32:03 +00:00
FASTQC ( input, [ publish_dir:'test_paired_end' ] )
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()
}