Skip to content

Commit

Permalink
Merge pull request #1281 from JoseEspinosa/fix_software_ver
Browse files Browse the repository at this point in the history
Update template version of the dumpsoftwareversions module
  • Loading branch information
drpatelh authored Oct 7, 2021
2 parents 770fa1b + 56162a5 commit 7ca734b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Template

* Modify software version channel handling to support multiple software version emissions (e.g. from mulled containers), and multiple software versions.
* Update `dumpsoftwareversion` module to correctly report versions with trailing zeros.

### General

Expand Down
2 changes: 1 addition & 1 deletion nf_core/pipeline-template/modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"repos": {
"nf-core/modules": {
"custom/dumpsoftwareversions": {
"git_sha": "7b3315591a149609e27914965f858c9a7e071564"
"git_sha": "84f2302920078b0cf7716b2a2e5fcc0be5c4531d"
},
"fastqc": {
"git_sha": "7b3315591a149609e27914965f858c9a7e071564"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ process CUSTOM_DUMPSOFTWAREVERSIONS {
}
with open("$versions") as f:
workflow_versions = yaml.safe_load(f) | module_versions
workflow_versions = yaml.load(f, Loader=yaml.BaseLoader) | module_versions
workflow_versions["Workflow"] = {
"Nextflow": "$workflow.nextflow.version",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ output:
type: file
description: MultiQC custom content YML file containing software versions
pattern: "software_versions_mqc.yml"
- version:
- versions:
type: file
description: File containing software version
description: File containing software versions
pattern: "versions.yml"

authors:
Expand Down
2 changes: 1 addition & 1 deletion nf_core/pipeline-template/workflows/pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ workflow {{ short_name|upper }} {
ch_versions = ch_versions.mix(FASTQC.out.versions.first())

CUSTOM_DUMPSOFTWAREVERSIONS (
ch_versions.collectFile()
ch_versions.unique().collectFile(name: 'collated_versions.yml')
)

//
Expand Down

0 comments on commit 7ca734b

Please sign in to comment.