Skip to content

Commit cb53ef3

Browse files
authored
Merge pull request #1352 from nf-core/harmonize_new_for_multiqc
Assorted fixes to MultiQC usage
2 parents ad67c51 + 10a73f5 commit cb53ef3

File tree

15 files changed

+155
-85
lines changed

15 files changed

+155
-85
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ Thank you to everyone else that has contributed by reporting bugs, enhancements
109109
- [PR #1345](https://github.com/nf-core/rnaseq/pull/1345) - Fix preprocessing call
110110
- [PR #1350](https://github.com/nf-core/rnaseq/pull/1350) - Reduce resource usage for sort process in bedtools/genomecov
111111
- [PR #1353](https://github.com/nf-core/rnaseq/pull/1353) - Correct conditional for salmon indexing in preprocessing workflow
112+
- [PR #1352](https://github.com/nf-core/rnaseq/pull/1352) - Assorted fixes to MultiQC usage
112113
- [PR #1355](https://github.com/nf-core/rnaseq/pull/1355) - Make all curves on subway map better looking, and all lines now have the same width
113114

114115
### Parameters

modules.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
},
9393
"multiqc": {
9494
"branch": "master",
95-
"git_sha": "b80f5fd12ff7c43938f424dd76392a2704fa2396",
95+
"git_sha": "878d2adbb911aa6e15c06a4d1e93d01bd6f26c74",
9696
"installed_by": ["modules"]
9797
},
9898
"picard/markduplicates": {
@@ -324,7 +324,7 @@
324324
},
325325
"fastq_qc_trim_filter_setstrandedness": {
326326
"branch": "master",
327-
"git_sha": "22c8d535286728605ccd229e5d1bb014cb965f8f",
327+
"git_sha": "8c47be6a114b82a6e6d2f5320b3b5c67579956c0",
328328
"installed_by": ["subworkflows"]
329329
},
330330
"fastq_subsample_fq_salmon": {

modules/nf-core/multiqc/environment.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/multiqc/main.nf

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/multiqc/tests/main.nf.test.snap

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

subworkflows/local/utils_nfcore_rnaseq_pipeline/main.nf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -493,18 +493,6 @@ def checkMaxContigSize(fai_file) {
493493
}
494494
}
495495

496-
//
497-
// Create MultiQC tsv custom content from a list of values
498-
//
499-
def multiqcTsvFromList(tsv_data, header) {
500-
def tsv_string = ""
501-
if (tsv_data.size() > 0) {
502-
tsv_string += "${header.join('\t')}\n"
503-
tsv_string += tsv_data.join('\n')
504-
}
505-
return tsv_string
506-
}
507-
508496
//
509497
// Function that parses and returns the alignment rate from the STAR log output
510498
//

subworkflows/local/utils_nfcore_rnaseq_pipeline/tests/main.function.nf.test

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -367,29 +367,6 @@ nextflow_function {
367367
}
368368

369369

370-
test("Test Function multiqcTsvFromList") {
371-
372-
function "multiqcTsvFromList"
373-
374-
when {
375-
function {
376-
"""
377-
// Create a TSV of one entry
378-
input[0] = [ 'test', 'value' ]
379-
input[1] = [ 'id' , 'attribute']
380-
"""
381-
}
382-
}
383-
384-
then {
385-
assertAll(
386-
{ assert function.success },
387-
{ assert snapshot(function.result).match() }
388-
)
389-
}
390-
391-
}
392-
393370
test("Test Function getStarPercentMapped pass") {
394371

395372
function "getStarPercentMapped"

subworkflows/local/utils_nfcore_rnaseq_pipeline/tests/main.function.nf.test.snap

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,6 @@
9595
},
9696
"timestamp": "2024-03-06T14:33:40.548126"
9797
},
98-
"Test Function multiqcTsvFromList": {
99-
"content": [
100-
"id\tattribute\ntest\nvalue"
101-
],
102-
"meta": {
103-
"nf-test": "0.8.4",
104-
"nextflow": "23.10.1"
105-
},
106-
"timestamp": "2024-03-06T14:33:43.671826"
107-
},
10898
"Test Function checkSamplesAfterGrouping success": {
10999
"content": [
110100
[

subworkflows/nf-core/fastq_qc_trim_filter_setstrandedness/main.nf

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/nextflow.config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ process {
2727
memory = 3.GB
2828
time = 2.h
2929
}
30+
withName: 'MULTIQC' {
31+
ext.prefix = null
32+
}
3033
}
3134

3235
// Impose same minimum Nextflow version as the pipeline for testing

0 commit comments

Comments
 (0)