mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +00:00
31 lines
691 B
Text
Executable file
31 lines
691 B
Text
Executable file
#!/usr/bin/env nextflow
|
|
nextflow.preview.dsl = 2
|
|
|
|
params.out_dir = "test_output"
|
|
params.fastqc_args = ''
|
|
params.publish_dir_mode = "copy"
|
|
|
|
include { FASTQC } from '../main.nf'
|
|
|
|
/**
|
|
* Test if FASTQC runs with single-end data
|
|
*/
|
|
workflow test_single_end {
|
|
input_files = Channel.fromPath("input/test_single_end.fastq.gz")
|
|
.map {f -> [f.baseName, true, f]}
|
|
FASTQC(input_files)
|
|
}
|
|
|
|
/**
|
|
* Test if FASTQC runs with paired end data
|
|
*/
|
|
workflow test_paired_end {
|
|
input_files = Channel.fromFilePairs("input/test_R{1,2}.fastq.gz")
|
|
.map {f -> [f[0], false, f[1]]}
|
|
FASTQC(input_files)
|
|
}
|
|
|
|
workflow {
|
|
test_single_end()
|
|
test_paired_end()
|
|
}
|