Refactor the multiqc test code

This commit is contained in:
Abhinav Sharma 2020-12-01 12:19:52 +05:30
parent 131609dc05
commit b43c1f3937
4 changed files with 28 additions and 45 deletions

View file

@ -1,25 +0,0 @@
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { MULTIQC } from '../main.nf' addParams( options: [ publish_dir:'test_multi' ] )
/*
* Test with single-end data
*/
workflow test_multi {
def input = []
input = [
file("${baseDir}/input/test_1_fastqc.html", checkIfExists: true),
file("${baseDir}/input/test_2_fastqc.html", checkIfExists: true),
file("${baseDir}/input/test_1_fastqc.zip", checkIfExists: true),
file("${baseDir}/input/test_2_fastqc.zip", checkIfExists: true)
]
MULTIQC ( input )
}
workflow {
test_multi()
}

View file

@ -1,20 +0,0 @@
params {
outdir = "output/"
publish_dir_mode = "copy"
enable_conda = false
}
profiles {
conda {
params.enable_conda = true
}
docker {
docker.enabled = true
docker.runOptions = '-u \$(id -u):\$(id -g)'
}
singularity {
singularity.enabled = true
singularity.autoMounts = true
}
}

View file

@ -0,0 +1,19 @@
#!/usr/bin/env nextflow
nextflow.enable.dsl = 2
include { MULTIQC } from '../../../software/multiqc/main.nf' addParams(options: [publish_dir: 'test_multiqc'])
workflow test_multiqc {
def input = []
input = [[id: 'test'], // meta map
[file("${launchDir}/tests/data/fastqc/test_1.fastq.html", checkIfExists: true),
file("${launchDir}/tests/data/fastqc/test_1.fastq.zip", checkIfExists: true),
file("${launchDir}/tests/data/fastqc/test_2.fastq.html", checkIfExists: true),
file("${launchDir}/tests/data/fastqc/test_2.fastq.zip", checkIfExists: true)]]
MULTIQC(input)
}

View file

@ -0,0 +1,9 @@
- name: Run multiqc test workflow
command: nextflow run ./tests/software/multiqc/ -profile docker -entry test_multiqc -c tests/config/nextflow.config
tags:
- multiqc
files:
- path: output/test_multiqc/test_fastqc.html
md5sum: 7027e72c3e55292c1567f12e02565e3b
- path: output/test_multiqc/test_fastqc.html
md5sum: 7027e72c3e55292c1567f12e02565e3b