mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
Apply suggestions from code review by @Emiller88
This commit is contained in:
parent
5fd3ba3ce6
commit
84c0bda00e
2 changed files with 15 additions and 12 deletions
|
@ -23,9 +23,14 @@ workflow test_single_end {
|
|||
workflow test_paired_end {
|
||||
|
||||
def input = []
|
||||
input = [ [ id:'test', single_end:false ], // meta map
|
||||
[ file("${launchDir}/tests/data/fastq/rna/test_R1.fastq.gz", checkIfExists: true),
|
||||
file("${launchDir}/tests/data/fastq/rna/test_R2.fastq.gz", checkIfExists: true) ] ]
|
||||
input = [[id: 'test', single_end: false], // meta map
|
||||
[file("${launchDir}/tests/data/fastq/rna/test_R1.fastq.gz", checkIfExists: true),
|
||||
file("${launchDir}/tests/data/fastq/rna/test_R2.fastq.gz", checkIfExists: true)]]
|
||||
|
||||
FASTQC_PE(input)
|
||||
|
||||
emit:
|
||||
html = FASTQC_PE.out.html
|
||||
zip = FASTQC_PE.out.zip
|
||||
|
||||
FASTQC_PE ( input )
|
||||
}
|
||||
|
|
|
@ -3,17 +3,15 @@
|
|||
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' ] )
|
||||
|
||||
workflow test_multiqc {
|
||||
test_paired_end()
|
||||
|
||||
def input = []
|
||||
|
||||
input = [[id: 'test'], // meta map
|
||||
[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)]]
|
||||
input = [
|
||||
[id: 'test'],
|
||||
test_paired_end.out.html.join(test_paired_end.out.zip, by: 0).flatten().filter(java.nio.file.Path).toList()
|
||||
]
|
||||
|
||||
MULTIQC(input)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue