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

32 lines
689 B
Text
Raw Normal View History

#!/usr/bin/env nextflow
2019-12-05 21:11:12 +00:00
nextflow.preview.dsl = 2
2020-07-14 15:38:20 +00:00
params.out_dir = "test_output"
params.fastqc_args = ''
2020-07-14 15:38:20 +00:00
params.publish_dir_mode = "copy"
2020-07-14 15:38:20 +00:00
include { FASTQC } from '../main.nf'
2020-07-14 15:38:20 +00:00
/**
* 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, true, f]}
2020-07-14 15:38:20 +00:00
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")
.map {f -> [f[0], false, f[1]]}
2020-07-14 15:38:20 +00:00
FASTQC(input_files)
}
2019-12-05 21:11:12 +00:00
workflow {
2020-07-14 15:38:20 +00:00
test_single_end()
test_paired_end()
}