Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions modules/nf-core/miniasm/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ process MINIASM {
output:
tuple val(meta), path("*.gfa.gz") , emit: gfa
tuple val(meta), path("*.fasta.gz"), emit: assembly
path "versions.yml" , emit: versions
tuple val("${task.process}"), val('miniasm'), eval('miniasm -V 2>&1'), emit: versions_miniasm, topic: versions

when:
task.ext.when == null || task.ext.when
Expand All @@ -33,10 +33,6 @@ process MINIASM {
gzip -n ${prefix}.gfa
gzip -n ${prefix}.fasta

cat <<-END_VERSIONS > versions.yml
"${task.process}":
miniasm: \$( miniasm -V 2>&1 )
END_VERSIONS
"""

stub:
Expand All @@ -45,10 +41,6 @@ process MINIASM {
echo "" | gzip > ${prefix}.gfa.gz
echo "" | gzip > ${prefix}.fasta.gz

cat <<-END_VERSIONS > versions.yml
"${task.process}":
miniasm: \$( miniasm -V 2>&1 )
END_VERSIONS
"""

}
26 changes: 20 additions & 6 deletions modules/nf-core/miniasm/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,27 @@ output:
pattern: "*.fasta.gz"
ontologies:
- edam: http://edamontology.org/format_3989 # GZIP format
versions_miniasm:
- - ${task.process}:
type: string
description: The process the versions were collected from
- miniasm:
type: string
description: The tool name
- miniasm -V 2>&1:
type: eval
description: The expression to obtain the version of the tool
topics:
versions:
- versions.yml:
type: file
description: File containing software versions
pattern: "versions.yml"
ontologies:
- edam: http://edamontology.org/format_3750 # YAML
- - "${task.process}":
type: string
description: The name of the process
- miniasm:
type: string
description: The name of the tool
- miniasm -V 2>&1:
type: eval
description: The expression to obtain the version of the tool
authors:
- "@avantonder"
maintainers:
Expand Down
40 changes: 28 additions & 12 deletions modules/nf-core/miniasm/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
]
],
"2": [
"versions.yml:md5,0572fb9059c7518d698bc5d609d63935"
[
"MINIASM",
"miniasm",
"0.3-r179"
]
],
"assembly": [
[
Expand All @@ -41,16 +45,20 @@
"test.gfa.gz:md5,60e8b0c635905d20bc5296710749abde"
]
],
"versions": [
"versions.yml:md5,0572fb9059c7518d698bc5d609d63935"
"versions_miniasm": [
[
"MINIASM",
"miniasm",
"0.3-r179"
]
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
"nf-test": "0.9.3",
"nextflow": "25.10.2"
},
"timestamp": "2024-05-13T11:09:05.048611538"
"timestamp": "2026-01-22T16:50:51.951168082"
},
"bacteroides_fragilis - [fastq.gz, paf]- fasta - stub": {
"content": [
Expand All @@ -74,7 +82,11 @@
]
],
"2": [
"versions.yml:md5,0572fb9059c7518d698bc5d609d63935"
[
"MINIASM",
"miniasm",
"0.3-r179"
]
],
"assembly": [
[
Expand All @@ -94,15 +106,19 @@
"test.gfa.gz:md5,60e8b0c635905d20bc5296710749abde"
]
],
"versions": [
"versions.yml:md5,0572fb9059c7518d698bc5d609d63935"
"versions_miniasm": [
[
"MINIASM",
"miniasm",
"0.3-r179"
]
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "23.10.1"
"nf-test": "0.9.3",
"nextflow": "25.10.2"
},
"timestamp": "2024-05-13T11:09:16.769292018"
"timestamp": "2026-01-22T16:50:58.724404158"
}
}
Loading