mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-11 04:33:10 +00:00
21 lines
715 B
Text
21 lines
715 B
Text
#!/usr/bin/env nextflow
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
include { MULTIQC } from '../../../software/multiqc/main.nf' addParams(options: [publish_dir: 'test_multiqc'])
|
|
include { test_paired_end } from '../fastqc/main.nf' addParams(options: [publish_dir: 'test_paired_end'])
|
|
|
|
ch_multiqc_config = file("$launchDir/tests/software/multiqc/multiqc_config.yml", checkIfExists: true)
|
|
ch_multiqc_custom_config = params.multiqc_config ? Channel.fromPath(params.multiqc_config) : Channel.empty()
|
|
|
|
workflow test_multiqc {
|
|
test_paired_end()
|
|
|
|
input = [
|
|
ch_multiqc_config,
|
|
ch_multiqc_custom_config.collect().ifEmpty([]),
|
|
test_paired_end.out.zip.collect { it[1] }.ifEmpty([])
|
|
]
|
|
|
|
MULTIQC(*input)
|
|
}
|