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
1 change: 1 addition & 0 deletions modules/nf-core/lissero/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ channels:
- bioconda
dependencies:
- bioconda::lissero=0.4.9
- setuptools=80.9.0
12 changes: 1 addition & 11 deletions modules/nf-core/lissero/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ process LISSERO {

output:
tuple val(meta), path("*.tsv"), emit: tsv
path "versions.yml" , emit: versions
tuple val("${task.process}"), val('lissero'), val('0.4.9'), emit: versions_lissero, topic: versions

when:
task.ext.when == null || task.ext.when
Expand All @@ -25,21 +25,11 @@ process LISSERO {
$args \\
$fasta \\
> ${prefix}.tsv

cat <<-END_VERSIONS > versions.yml
"${task.process}":
lissero: \$( echo \$(lissero --version 2>&1) | sed 's/^.*LisSero //' )
END_VERSIONS
"""

stub:
def prefix = task.ext.prefix ?: "${meta.id}"
"""
touch ${prefix}.tsv

cat <<-END_VERSIONS > versions.yml
"${task.process}":
lissero: \$( echo \$(lissero --version 2>&1) | sed 's/^.*LisSero //' )
END_VERSIONS
"""
}
31 changes: 23 additions & 8 deletions modules/nf-core/lissero/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ tools:
homepage: https://github.com/MDU-PHL/LisSero/blob/master/README.md
documentation: https://github.com/MDU-PHL/LisSero/blob/master/README.md
tool_dev_url: https://github.com/MDU-PHL/lissero
licence: ["GPL v3"]
licence:
- "GPL v3"
identifier: ""
input:
- - meta:
Expand All @@ -35,14 +36,28 @@ output:
description: Tab-delimited result file
pattern: "*.tsv"
ontologies:
- edam: http://edamontology.org/format_3475 # TSV
- edam: http://edamontology.org/format_3475
versions_lissero:
- - ${task.process}:
type: string
description: The name of the process
- lissero:
type: string
description: The name of the tool
- 0.4.9:
type: string
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
- lissero:
type: string
description: The name of the tool
- 0.4.9:
type: string
description: The expression to obtain the version of the tool
authors:
- "@rpetit3"
maintainers:
Expand Down
11 changes: 7 additions & 4 deletions modules/nf-core/lissero/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ nextflow_process {
then {
assertAll(
{ assert process.success },
{ assert snapshot(
file(process.out.tsv[0][1]).readLines()[0], // Two line file. Line 2 contains a path.
process.out.versions
).match()
{
assert snapshot(
file(process.out.tsv[0][1]).readLines()[0],
sanitizeOutput(process.out, unstableKeys: ["tsv"])
).match()
}
)
}
Expand Down Expand Up @@ -55,3 +56,5 @@ nextflow_process {
}

}


29 changes: 23 additions & 6 deletions modules/nf-core/lissero/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"content": [
"ID\tSEROTYPE\tPRS\tLMO0737\tLMO1118\tORF2110\tORF2819\tCOMMENT",
[
"versions.yml:md5,f091db71715241a5f46beacaf97dc08b"
[
"LISSERO",
"lissero",
"0.4.9"
]
]
],
"meta": {
Expand All @@ -25,19 +29,27 @@
]
],
"1": [
"versions.yml:md5,f091db71715241a5f46beacaf97dc08b"
[
"LISSERO",
"lissero",
"0.4.9"
]
],
"tsv": [
[
{
"id": "test",
"single_end": false
},
"test.tsv:md5,d41d8cd98f00b204e9800998ecf8427e"
"test.tsv"
]
],
"versions": [
"versions.yml:md5,f091db71715241a5f46beacaf97dc08b"
"versions_lissero": [
[
"LISSERO",
"lissero",
"0.4.9"
]
]
}
],
Expand All @@ -47,4 +59,9 @@
},
"timestamp": "2024-08-30T15:08:59.133959"
}
}
}





Loading