2020-12-01 01:49:52 -05:00
|
|
|
#!/usr/bin/env nextflow
|
|
|
|
|
|
|
|
nextflow.enable.dsl = 2
|
|
|
|
|
2022-06-07 07:58:27 -04:00
|
|
|
include { FASTQC } from '../../../modules/fastqc/main.nf'
|
|
|
|
include { FASTQC as FASTQC2 } from '../../../modules/fastqc/main.nf'
|
|
|
|
include { MULTIQC } from '../../../modules/multiqc/main.nf'
|
2020-12-04 01:55:16 -05:00
|
|
|
|
2020-12-01 01:49:52 -05:00
|
|
|
workflow test_multiqc {
|
2022-06-08 08:42:58 -04:00
|
|
|
input = [
|
|
|
|
[ id: 'test', single_end: false ],
|
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true)]
|
|
|
|
]
|
2021-03-24 14:29:41 -04:00
|
|
|
|
2021-02-03 12:43:14 -05:00
|
|
|
FASTQC ( input )
|
2022-09-08 06:36:15 -04:00
|
|
|
MULTIQC ( FASTQC.out.zip.collect { it[1] }, [], [] )
|
2020-12-01 01:49:52 -05:00
|
|
|
}
|
2022-06-07 07:58:27 -04:00
|
|
|
|
|
|
|
workflow test_multiqc_fn_collision {
|
2022-06-08 08:42:58 -04:00
|
|
|
fqc_input = [
|
2022-06-08 08:24:55 -04:00
|
|
|
[ id: 'test', single_end: false ],
|
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true)]
|
|
|
|
]
|
2022-06-07 07:58:27 -04:00
|
|
|
mqc_input = Channel.empty()
|
|
|
|
|
|
|
|
FASTQC ( fqc_input )
|
|
|
|
mqc_input = mqc_input.mix(FASTQC.out.zip.collect { it[1] })
|
|
|
|
|
|
|
|
FASTQC2 ( fqc_input )
|
|
|
|
mqc_input = mqc_input.mix(FASTQC2.out.zip.collect { it[1] })
|
|
|
|
|
2022-09-08 06:36:15 -04:00
|
|
|
MULTIQC ( mqc_input, [], [] )
|
2022-09-08 03:12:53 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
workflow test_multiqc_config {
|
|
|
|
input = [
|
|
|
|
[ id: 'test', single_end: false ],
|
|
|
|
[ file(params.test_data['sarscov2']['illumina']['test_1_fastq_gz'], checkIfExists: true)]
|
|
|
|
]
|
|
|
|
mqc_config = file("https://github.com/nf-core/tools/raw/dev/nf_core/pipeline-template/assets/multiqc_config.yml", checkIfExists: true)
|
|
|
|
mqc_input = Channel.empty()
|
|
|
|
|
|
|
|
FASTQC ( input )
|
2022-09-08 06:36:15 -04:00
|
|
|
MULTIQC ( FASTQC.out.zip.collect { it[1] }, mqc_config, [] )
|
2022-06-07 07:58:27 -04:00
|
|
|
}
|