Skip to content

Commit

Permalink
Merge pull request #171 from nf-core/hot-fixes
Browse files Browse the repository at this point in the history
Clean up MultiQC and tests
  • Loading branch information
edmundmiller authored Oct 21, 2024
2 parents f84692e + a989636 commit af25b3f
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 26 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#142](https://github.com/nf-core/nascent/pull/142) - Add STAR aligner
- [#149](https://github.com/nf-core/nascent/pull/149) - Add Software citations to MultiQC

### Fixed

- [#171](https://github.com/nf-core/nascent/pull/171) - Clean up MultiQC report

### Changed

- [#137](https://github.com/nf-core/nascent/pull/137) - Use singularity containers for PINTS
- [#142](https://github.com/nf-core/nascent/pull/142) - Updated CHM13 references
- [#171](https://github.com/nf-core/nascent/pull/171) - Use assertAll in tests

### Fixed

Expand Down
36 changes: 27 additions & 9 deletions assets/multiqc_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,29 @@ report_comment: >
analysis pipeline. For information about how to interpret these results, please see the
<a href="https://nf-co.re/nascent/dev/docs/output" target="_blank">documentation</a>.
report_section_order:
fastqc:
order: 4004
fastp:
order: 4003
star:
order: 3000
hisat2:
order: 3000
samtools:
order: 3000
featurecounts_biotype:
order: 3000
picard:
order: 3000
preseq:
order: 3000
qualimap:
order: 3000
rseqc:
order: 3000
umitools:
order: 3000
# Summaries
"nf-core-nascent-methods-description":
order: -1000
software_versions:
Expand All @@ -20,19 +43,14 @@ run_modules:
- featureCounts
- homer

module_order:
- fastqc:
name: "FastQC (raw)"
info: "This section of the report shows FastQC results before adapter trimming."
path_filters:
- "./fastqc/*.zip"

custom_data:
grohmm_plot:
section_name: "groHMM TD Plot"
description: "Transcription direction (TD) plot generated by groHMM"
plot_type: "image"
sp:
my_custom_content_image:
fn: "./grohmm/*.tdplot.jpg"
grohmm_plot:
fn: "*.tdplot_mqc.jpg"
ignore_images: false

export_plots: true
Expand Down
5 changes: 4 additions & 1 deletion modules/local/grohmm/parametertuning/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ nextflow_process {

then {
// FIXME Broken test
assert process.failed
assertAll(
{ assert process.failed },
{ assert snapshot(process.out).match() }
)
}

}
Expand Down
6 changes: 4 additions & 2 deletions modules/local/grohmm/transcriptcalling/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ nextflow_process {
}

then {
// FIXME Broken test
assert process.failed
assertAll(
{ assert process.failed },
{ assert snapshot(process.out).match() }
)
}

}
Expand Down
1 change: 1 addition & 0 deletions nf-test.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ config {
testsDir "."
workDir System.getenv("NFT_WORKDIR") ?: ".nf-test"
configFile "tests/nextflow.config"
profile "test"
plugins {
load "[email protected]"
}
Expand Down
18 changes: 12 additions & 6 deletions subworkflows/local/grohmm/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ nextflow_workflow {
}

then {
assert workflow.success
assert snapshot(workflow.out).match()
assertAll(
{ assert workflow.success },
{ assert snapshot(workflow.out).match() }
)
}

}
Expand All @@ -55,8 +57,10 @@ nextflow_workflow {
}

then {
assert workflow.success
assert snapshot(workflow.out).match()
assertAll(
{ assert workflow.success },
{ assert snapshot(workflow.out).match() }
)
}

}
Expand Down Expand Up @@ -84,8 +88,10 @@ nextflow_workflow {
}

then {
assert workflow.success
assert snapshot(workflow.out).match()
assertAll(
{ assert workflow.success },
{ assert snapshot(workflow.out).match() }
)
}

}
Expand Down
22 changes: 14 additions & 8 deletions workflows/tests/aligner/bwa.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ nextflow_pipeline {
}

then {
assert workflow.success
assert snapshot(
workflow.trace.tasks().size(),
).match()
assertAll(
{ assert workflow.success },
{ assert snapshot(
workflow.trace.tasks().size(),
).match()
}
)
}
}

Expand All @@ -91,10 +94,13 @@ nextflow_pipeline {
}

then {
assert workflow.success
assert snapshot(
workflow.trace.tasks().size(),
).match()
assertAll(
{ assert workflow.success },
{ assert snapshot(
workflow.trace.tasks().size(),
).match()
}
)
}

}
Expand Down

0 comments on commit af25b3f

Please sign in to comment.