diff --git a/CHANGELOG.md b/CHANGELOG.md index 11dcd5bfb48030fb5968561b052fd43f2d6766d2..e21885f544507886617d58a40c9c8361f7e26249 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ All notable changes to this project will be documented in this file. - Fix xcor to increase file size for --random-source - Fix skip diff test for paired-end data - Fix python version for MultiQC report +- Fix references to display in Multiqc report + ## [publish_1.0.6 ] - 2019-05-31 ### Added diff --git a/workflow/main.nf b/workflow/main.nf index bf87941930e7a3737c8610703d224887c113a4d1..765ba3b1d1cd5b1d37d8dc339464d694c46ab8e2 100644 --- a/workflow/main.nf +++ b/workflow/main.nf @@ -654,10 +654,10 @@ process multiqcReport { """ echo $workflow.nextflow.version > version_nextflow.txt - singularity exec /project/shared/bicf_workflow_ref/singularity_images/multiqc.sif multiqc --version > version_multiqc.txt + singularity exec /project/shared/bicf_workflow_ref/singularity_images/bicf-multiqc-2.0.0.img multiqc --version > version_multiqc.txt python --version &> version_python.txt python3 $baseDir/scripts/generate_references.py -r $references -o software_references python3 $baseDir/scripts/generate_versions.py -o software_versions - singularity exec /project/shared/bicf_workflow_ref/singularity_images/multiqc.sif multiqc -c $multiqc . + singularity exec /project/shared/bicf_workflow_ref/singularity_images/bicf-multiqc-2.0.0.img multiqc -c $multiqc . """ } diff --git a/workflow/tests/test_generate_software_references.py b/workflow/tests/test_generate_software_references.py index 4d0025dfc3a925d2ec0d7bcd2bae86529d75e574..2420c6f3cee4032ea073219b7ada4a73b8582176 100644 --- a/workflow/tests/test_generate_software_references.py +++ b/workflow/tests/test_generate_software_references.py @@ -4,6 +4,7 @@ import pytest import os import utils import yaml +from bs4 import BeautifulSoup test_output_path = os.path.dirname(os.path.abspath(__file__)) + \ '/../output/multiqcReport/' @@ -21,3 +22,14 @@ def test_software_references_output(): data_loaded = yaml.load(stream) assert len(data_loaded['data'].split('<ul>')) == 19 + + +@pytest.mark.singleend +def test_software_references_html(): + multiqc_report = os.path.join(test_output_path, 'multiqc_report.html') + html_file = open(multiqc_report, 'r') + source_code = html_file.read() + multiqc_html = BeautifulSoup(source_code, 'html.parser') + references = multiqc_html.find(id="mqc-module-section-Software_References") + assert references is not None + assert len(references.find_all('ul')) == 18