Update the tests for MultiQC

This commit is contained in:
Abhinav Sharma 2020-12-02 12:38:41 +05:30
parent 4e657c82e2
commit 5fd3ba3ce6
4 changed files with 23 additions and 21 deletions

View file

@ -26,5 +26,12 @@ jobs:
wget -qO- get.nextflow.io | bash wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/ sudo mv nextflow /usr/local/bin/
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: python -m pip install --upgrade pip pytest-workflow
# Test the module # Test the module
- run: nextflow run ./software/multiqc/test/ -profile docker - run: pytest --tag multiqc --symlink --wt 2

View file

@ -12,21 +12,19 @@ process MULTIQC {
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:'') } saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:'') }
conda (params.enable_conda ? "bioconda::multiqc=1.9" : null) conda (params.enable_conda ? "bioconda::multiqc=1.9" : null)
container "quay.io/biocontainers/multiqc:1.9--py_1" container "quay.io/biocontainers/multiqc:1.9--pyh9f0ad1d_0"
input: input:
path(generic_report) tuple val(meta), path(reads)
output: output:
path "multiqc_data", emit: dir path "*multiqc_report.html", emit: report
path "multiqc_report.html", emit: html path "*_data" , emit: data
path "*.version.txt", emit: version path "*_plots" , optional:true, emit: plots
script: script:
def software = getSoftwareName(task.process)
""" """
multiqc . multiqc -f $options.args .
multiqc --version | sed -e "s/multiqc, version //g" > ${software}.version.txt
""" """
} }

View file

@ -10,10 +10,10 @@ workflow test_multiqc {
def input = [] def input = []
input = [[id: 'test'], // meta map input = [[id: 'test'], // meta map
[file("${launchDir}/tests/data/fastqc/test_1.fastq.html", checkIfExists: true), [file("${launchDir}/tests/data/fastqc/test_1_fastqc.html", checkIfExists: true),
file("${launchDir}/tests/data/fastqc/test_1.fastq.zip", checkIfExists: true), file("${launchDir}/tests/data/fastqc/test_1_fastqc.zip", checkIfExists: true),
file("${launchDir}/tests/data/fastqc/test_2.fastq.html", checkIfExists: true), file("${launchDir}/tests/data/fastqc/test_2_fastqc.html", checkIfExists: true),
file("${launchDir}/tests/data/fastqc/test_2.fastq.zip", checkIfExists: true)]] file("${launchDir}/tests/data/fastqc/test_2_fastqc.zip", checkIfExists: true)]]
MULTIQC(input) MULTIQC(input)
} }

View file

@ -3,7 +3,4 @@
tags: tags:
- multiqc - multiqc
files: files:
- path: output/test_multiqc/test_fastqc.html - path: output/test_multiqc/multiqc_report.html
md5sum: 7027e72c3e55292c1567f12e02565e3b
- path: output/test_multiqc/test_fastqc.html
md5sum: 7027e72c3e55292c1567f12e02565e3b