mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2025-01-02 04:32:08 -05:00
Updated dumpsoftwareversions.py to match the pipeline template (#2045)
* Updated dumpsoftwareversions.py to match the pipeline template * Fixed the test Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
This commit is contained in:
parent
f0a86eaf5b
commit
de7b50fdd0
2 changed files with 7 additions and 6 deletions
|
@ -58,11 +58,12 @@ versions_by_module = {}
|
||||||
for process, process_versions in versions_by_process.items():
|
for process, process_versions in versions_by_process.items():
|
||||||
module = process.split(":")[-1]
|
module = process.split(":")[-1]
|
||||||
try:
|
try:
|
||||||
assert versions_by_module[module] == process_versions, (
|
if versions_by_module[module] != process_versions:
|
||||||
"We assume that software versions are the same between all modules. "
|
raise AssertionError(
|
||||||
"If you see this error-message it means you discovered an edge-case "
|
"We assume that software versions are the same between all modules. "
|
||||||
"and should open an issue in nf-core/tools. "
|
"If you see this error-message it means you discovered an edge-case "
|
||||||
)
|
"and should open an issue in nf-core/tools. "
|
||||||
|
)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
versions_by_module[module] = process_versions
|
versions_by_module[module] = process_versions
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ workflow test_custom_dumpsoftwareversions {
|
||||||
// cases where subworkflows have a module with the same name.
|
// cases where subworkflows have a module with the same name.
|
||||||
fastqc1 ( input )
|
fastqc1 ( input )
|
||||||
fastqc2 ( input )
|
fastqc2 ( input )
|
||||||
MULTIQC ( fastqc2.out.zip.collect { it[1] }, [[],[]] )
|
MULTIQC ( fastqc2.out.zip.collect { it[1] }, [], [], [] )
|
||||||
|
|
||||||
fastqc1
|
fastqc1
|
||||||
.out
|
.out
|
||||||
|
|
Loading…
Reference in a new issue