nf-core_modules/software/fastqc/test/main.nf
2020-07-15 09:48:14 +02:00

31 lines
654 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("data/test_single_end.fastq.gz")
.map {f -> [f.baseName, f]}
input_files.view()
FASTQC(input_files)
}
/**
* Test if FASTQC runs with paired end data
*/
workflow test_paired_end {
input_files = Channel.fromFilePairs("data/test_R{1,2}.fastq.gz")
FASTQC(input_files)
}
workflow {
test_single_end()
test_paired_end()
}