mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
Refactor the multiqc test code
This commit is contained in:
parent
131609dc05
commit
b43c1f3937
4 changed files with 28 additions and 45 deletions
|
@ -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()
|
||||
}
|
|
@ -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
|
||||
}
|
||||
}
|
19
tests/software/multiqc/main.nf
Normal file
19
tests/software/multiqc/main.nf
Normal 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)
|
||||
}
|
9
tests/software/multiqc/test.yml
Normal file
9
tests/software/multiqc/test.yml
Normal 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
|
Loading…
Reference in a new issue