Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions modules/nf-core/multiqc/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ process MULTIQC {
path(sample_names)

output:
path "*multiqc_report.html", emit: report
path "*_data" , emit: data
path "*_plots" , optional:true, emit: plots
path "versions.yml" , emit: versions
path "*multiqc_report.html" , emit: report
path "*_data" , emit: data
path "*_plots" , optional:true , emit: plots
tuple val("${task.process}"), val('multiqc'), eval('multiqc --version | sed "s/.* //g"'), topic: versions, emit: versions_multiqc

when:
task.ext.when == null || task.ext.when
Expand All @@ -42,11 +42,6 @@ process MULTIQC {
$replace \\
$samples \\
.

cat <<-END_VERSIONS > versions.yml
"${task.process}":
multiqc: \$( multiqc --version | sed -e "s/multiqc, version //g" )
END_VERSIONS
"""

stub:
Expand All @@ -55,9 +50,5 @@ process MULTIQC {
mkdir multiqc_plots
touch multiqc_report.html

cat <<-END_VERSIONS > versions.yml
"${task.process}":
multiqc: \$( multiqc --version | sed -e "s/multiqc, version //g" )
END_VERSIONS
"""
}
36 changes: 25 additions & 11 deletions modules/nf-core/multiqc/meta.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: multiqc
description: Aggregate results from bioinformatics analyses across many samples into
a single report
description: Aggregate results from bioinformatics analyses across many samples
into a single report
keywords:
- QC
- bioinformatics tools
Expand Down Expand Up @@ -28,8 +28,8 @@ input:
- edam: http://edamontology.org/format_3750 # YAML
- extra_multiqc_config:
type: file
description: Second optional config yml for MultiQC. Will override common sections
in multiqc_config.
description: Second optional config yml for MultiQC. Will override common
sections in multiqc_config.
pattern: "*.{yml,yaml}"
ontologies:
- edam: http://edamontology.org/format_3750 # YAML
Expand Down Expand Up @@ -73,13 +73,27 @@ output:
description: Plots created by MultiQC
pattern: "*_data"
ontologies: []
versions:
- versions.yml:
type: file
description: File containing software versions
pattern: "versions.yml"
ontologies:
- edam: http://edamontology.org/format_3750 # YAML
versions_multiqc:
- - ${task.process}:
type: string
description: The process the versions were collected from
- multiqc:
type: string
description: The tool name
- multiqc --version | sed "s/.* //g:
type: string
description: The command used to generate the version of the tool
topics:
- versions:
- - process:
type: string
description: The process the versions were collected from
- tool:
type: string
description: The tool name
- version:
type: string
description: The version of the tool
authors:
- "@abhi18av"
- "@bunop"
Expand Down
6 changes: 3 additions & 3 deletions modules/nf-core/multiqc/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ nextflow_process {
{ assert process.success },
{ assert process.out.report[0] ==~ ".*/multiqc_report.html" },
{ assert process.out.data[0] ==~ ".*/multiqc_data" },
{ assert snapshot(process.out.versions).match("multiqc_versions_single") }
{ assert snapshot(process.out.findAll { key, val -> key.startsWith("versions")}).match() }
)
}

Expand All @@ -56,7 +56,7 @@ nextflow_process {
{ assert process.success },
{ assert process.out.report[0] ==~ ".*/multiqc_report.html" },
{ assert process.out.data[0] ==~ ".*/multiqc_data" },
{ assert snapshot(process.out.versions).match("multiqc_versions_config") }
{ assert snapshot(process.out.findAll { key, val -> key.startsWith("versions")}).match() }
)
}
}
Expand Down Expand Up @@ -84,7 +84,7 @@ nextflow_process {
{ assert snapshot(process.out.report.collect { file(it).getName() } +
process.out.data.collect { file(it).getName() } +
process.out.plots.collect { file(it).getName() } +
process.out.versions ).match("multiqc_stub") }
process.out.findAll { key, val -> key.startsWith("versions")} ).match() }
)
}

Expand Down
58 changes: 39 additions & 19 deletions modules/nf-core/multiqc/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
@@ -1,41 +1,61 @@
{
"multiqc_versions_single": {
"sarscov2 single-end [fastqc]": {
"content": [
[
"versions.yml:md5,737bb2c7cad54ffc2ec020791dc48b8f"
]
{
"versions_multiqc": [
[
"MULTIQC",
"multiqc",
"1.32"
]
]
}
],
"meta": {
"nf-test": "0.9.3",
"nextflow": "24.10.4"
"nf-test": "0.9.2",
"nextflow": "25.04.6"
},
"timestamp": "2025-10-27T13:33:24.356715"
"timestamp": "2025-10-28T15:27:59.813370216"
},
"multiqc_stub": {
"sarscov2 single-end [fastqc] - stub": {
"content": [
[
"multiqc_report.html",
"multiqc_data",
"multiqc_plots",
"versions.yml:md5,737bb2c7cad54ffc2ec020791dc48b8f"
{
"versions_multiqc": [
[
"MULTIQC",
"multiqc",
"1.32"
]
]
}
]
],
"meta": {
"nf-test": "0.9.3",
"nextflow": "24.10.4"
"nf-test": "0.9.2",
"nextflow": "25.04.6"
},
"timestamp": "2025-10-27T13:34:11.103619"
"timestamp": "2025-10-28T15:30:48.963962021"
},
"multiqc_versions_config": {
"sarscov2 single-end [fastqc] [config]": {
"content": [
[
"versions.yml:md5,737bb2c7cad54ffc2ec020791dc48b8f"
]
{
"versions_multiqc": [
[
"MULTIQC",
"multiqc",
"1.32"
]
]
}
],
"meta": {
"nf-test": "0.9.3",
"nextflow": "24.10.4"
"nf-test": "0.9.2",
"nextflow": "25.04.6"
},
"timestamp": "2025-10-27T13:34:04.615233"
"timestamp": "2025-10-28T15:29:30.664969334"
}
}