Apply suggestions from code review by @Emiller88

This commit is contained in:
Abhinav Sharma 2020-12-03 09:42:34 +05:30 committed by Abhinav Sharma
parent 5fd3ba3ce6
commit 84c0bda00e
2 changed files with 15 additions and 12 deletions

View file

@ -28,4 +28,9 @@ workflow test_paired_end {
file("${launchDir}/tests/data/fastq/rna/test_R2.fastq.gz", checkIfExists: true)]] file("${launchDir}/tests/data/fastq/rna/test_R2.fastq.gz", checkIfExists: true)]]
FASTQC_PE(input) FASTQC_PE(input)
emit:
html = FASTQC_PE.out.html
zip = FASTQC_PE.out.zip
} }

View file

@ -3,17 +3,15 @@
nextflow.enable.dsl = 2 nextflow.enable.dsl = 2
include { MULTIQC } from '../../../software/multiqc/main.nf' addParams(options: [publish_dir: 'test_multiqc']) 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' ] )
workflow test_multiqc { workflow test_multiqc {
test_paired_end()
def input = [] input = [
[id: 'test'],
input = [[id: 'test'], // meta map test_paired_end.out.html.join(test_paired_end.out.zip, by: 0).flatten().filter(java.nio.file.Path).toList()
[file("${launchDir}/tests/data/fastqc/test_1_fastqc.html", checkIfExists: true), ]
file("${launchDir}/tests/data/fastqc/test_1_fastqc.zip", checkIfExists: true),
file("${launchDir}/tests/data/fastqc/test_2_fastqc.html", checkIfExists: true),
file("${launchDir}/tests/data/fastqc/test_2_fastqc.zip", checkIfExists: true)]]
MULTIQC(input) MULTIQC(input)
} }