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

39 lines
751 B
Text
Raw Normal View History

#!/usr/bin/env nextflow
2020-08-06 19:35:34 -04:00
nextflow.enable.dsl = 2
params.outdir = "results/"
2020-07-14 11:38:20 -04:00
params.publish_dir_mode = "copy"
2020-08-06 19:35:34 -04:00
params.conda = false
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-06 19:35:34 -04:00
def reads = []
reads = [ [ id:'test', single_end:true ],
[ file('input/test_single_end.fastq.gz', checkIfExists: true) ] ]
2020-08-06 19:35:34 -04:00
FASTQC ( reads, [:] )
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-06 19:35:34 -04:00
def reads = []
reads = [ [ id:'test', single_end:false ],
[ file('input/test_R1.fastq.gz', checkIfExists: true), file('input/test_R2.fastq.gz', checkIfExists: true) ] ]
2020-08-06 19:35:34 -04:00
FASTQC ( reads, [:] )
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()
}