Skip to content

Commit

Permalink
Add patch to multiqc module so that it can now accept a meta map as i…
Browse files Browse the repository at this point in the history
…nput
  • Loading branch information
anoronh4 committed May 18, 2023
1 parent d26bcff commit 8f3550d
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 7 deletions.
2 changes: 1 addition & 1 deletion conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ process {
]
}

withName: '.*:QC:MULTIQC' {
withName: '.*:QC:MULTIQC_COLLECT' {
publishDir = [
path: { "${params.outdir}/multiqc" },
mode: params.publish_dir_mode,
Expand Down
3 changes: 2 additions & 1 deletion modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"multiqc": {
"branch": "master",
"git_sha": "ee80d14721e76e2e079103b8dcd5d57129e584ba",
"installed_by": ["modules"]
"installed_by": ["modules"],
"patch": "modules/nf-core/multiqc/multiqc.diff"
},
"picard/collecthsmetrics": {
"branch": "master",
Expand Down
2 changes: 1 addition & 1 deletion modules/nf-core/multiqc/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions modules/nf-core/multiqc/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions modules/nf-core/multiqc/multiqc.diff

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions subworkflows/local/qc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ ch_multiqc_config = Channel.fromPath("$projectDir/assets/multiqc_config

include { PICARD_COLLECTRNASEQMETRICS } from '../../modules/nf-core/picard/collectrnaseqmetrics/main'
include { PICARD_COLLECTHSMETRICS } from '../../modules/nf-core/picard/collecthsmetrics/main'
include { MULTIQC } from '../../modules/nf-core/multiqc/main'
include {
MULTIQC ;
MULTIQC as MULTIQC_COLLECT
} from '../../modules/nf-core/multiqc/main'

workflow QC {

Expand Down Expand Up @@ -47,8 +50,6 @@ workflow QC {
multiqc_ch = PICARD_COLLECTRNASEQMETRICS.out.metrics
.mix(fastp_json)
.mix(PICARD_COLLECTHSMETRICS.out.metrics)
.map{meta, multiqc_files -> multiqc_files }
.collect()

MULTIQC(
multiqc_ch,
Expand All @@ -57,6 +58,13 @@ workflow QC {
[]
)

MULTIQC_COLLECT(
multiqc_ch.map{meta, multiqc_files -> multiqc_files}.collect().map{[[:],it]},
ch_multiqc_config.collect().ifEmpty([]),
[],
[]
)

emit:
ch_versions

Expand Down
2 changes: 1 addition & 1 deletion workflows/forte.nf
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ workflow FORTE {
ch_multiqc_files = ch_multiqc_files.mix(ch_methods_description.collectFile(name: 'methods_description_mqc.yaml'))
ch_multiqc_files = ch_multiqc_files.mix(CUSTOM_DUMPSOFTWAREVERSIONS.out.mqc_yml.collect())

ch_multiqc_files.collect()
ch_multiqc_files.collect().map{ files -> [[:], files] }

MULTIQC (
ch_multiqc_files.collect(),
Expand Down

0 comments on commit 8f3550d

Please # to comment.