2020-11-24 14:24:54 -05:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2021-02-03 11:02:58 -05:00
|
|
|
include { FASTQC } from '../../../software/fastqc/main.nf' addParams( options: [:] )
|
2020-11-24 14:24:54 -05:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Test with single-end data
|
|
|
|
*/
|
2021-02-03 11:02:58 -05:00
|
|
|
workflow test_fastqc_single_end {
|
2020-11-24 14:24:54 -05:00
|
|
|
|
|
|
|
def input = []
|
|
|
|
input = [ [ id:'test', single_end:true ], // meta map
|
2020-11-24 15:16:20 -05:00
|
|
|
[ file("${launchDir}/tests/data/fastq/rna/test_single_end.fastq.gz", checkIfExists: true) ] ]
|
2021-02-03 11:02:58 -05:00
|
|
|
FASTQC ( input )
|
2020-11-24 14:24:54 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Test with paired-end data
|
|
|
|
*/
|
2021-02-03 11:02:58 -05:00
|
|
|
workflow test_fastqc_paired_end {
|
2020-11-24 14:24:54 -05:00
|
|
|
|
|
|
|
def input = []
|
2020-12-02 23:12:34 -05:00
|
|
|
input = [[id: 'test', single_end: false], // meta map
|
|
|
|
[file("${launchDir}/tests/data/fastq/rna/test_R1.fastq.gz", checkIfExists: true),
|
|
|
|
file("${launchDir}/tests/data/fastq/rna/test_R2.fastq.gz", checkIfExists: true)]]
|
2021-02-03 11:02:58 -05:00
|
|
|
FASTQC (input)
|
2020-11-24 14:24:54 -05:00
|
|
|
}
|