nf-core_modules/tests/modules/custom/dumpsoftwareversions/main.nf
Harshil Patel b2c2d4deb4
Add custom/dumpsoftwareversions modules for nf-core pipeline template (#761)
* Add custom/dumpsoftwareversions modules for nf-core pipeline template

* Remove md5sums due to differing NF versions
2021-09-29 14:27:00 +01:00

24 lines
1.1 KiB
Text

#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { FASTQC } from '../../../../modules/fastqc/main.nf' addParams( options: [:] )
include { MULTIQC } from '../../../../modules/multiqc/main.nf' addParams( options: [:] )
include { CUSTOM_DUMPSOFTWAREVERSIONS } from '../../../../modules/custom/dumpsoftwareversions/main.nf' addParams( options: [publish_dir:'custom'] )
workflow test_custom_dumpsoftwareversions {
input = [
[ id: 'test', single_end: false ],
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true),
file(params.test_data['sarscov2']['illumina']['test_2_fastq_gz'], checkIfExists: true) ]
]
FASTQC ( input )
MULTIQC ( FASTQC.out.zip.collect { it[1] } )
ch_software_versions = Channel.empty()
ch_software_versions = ch_software_versions.mix(FASTQC.out.version)
ch_software_versions = ch_software_versions.mix(MULTIQC.out.version)
CUSTOM_DUMPSOFTWAREVERSIONS ( ch_software_versions.collectFile() )
}