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
2 changes: 1 addition & 1 deletion modules/nf-core/assemblyscan/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ channels:
- conda-forge
- bioconda
dependencies:
- bioconda::assembly-scan=0.4.1
- bioconda::assembly-scan=1.0.0
17 changes: 11 additions & 6 deletions modules/nf-core/assemblyscan/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,28 @@ process ASSEMBLYSCAN {

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/assembly-scan:0.4.1--pyhdfd78af_0' :
'biocontainers/assembly-scan:0.4.1--pyhdfd78af_0' }"
'https://depot.galaxyproject.org/singularity/assembly-scan:1.0.0--pyhdfd78af_0' :
'biocontainers/assembly-scan:1.0.0--pyhdfd78af_0' }"

input:
tuple val(meta), path(assembly)

output:
tuple val(meta), path("*.json"), emit: json
path "versions.yml" , emit: versions
tuple val(meta), path("*.tsv"), emit: tsv, optional: true
tuple val(meta), path("*.json"), emit: json, optional: true
path "versions.yml", emit: versions

when:
task.ext.when == null || task.ext.when

script:
def prefix = task.ext.prefix ?: "${meta.id}"
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def file_format = (task.ext.args?.contains("--json")) ? "json" : "tsv"
"""
assembly-scan ${assembly} > ${prefix}.json
assembly-scan \\
${args} \\
${assembly} > ${prefix}.${file_format}

cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
14 changes: 14 additions & 0 deletions modules/nf-core/assemblyscan/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ input:
pattern: "*.fasta"
ontologies: []
output:
tsv:
- - meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- "*.tsv":
type: file
description: Assembly statistics in tsv format
pattern: "*.tsv"
ontologies:
- edam: http://edamontology.org/format_3475 # TSV
json:
- - meta:
type: map
Expand All @@ -47,6 +59,8 @@ output:
authors:
- "@sateeshperi"
- "@mjcipriano"
- "@eit-maxlcummins"
maintainers:
- "@sateeshperi"
- "@mjcipriano"
- "@eit-maxlcummins"
20 changes: 15 additions & 5 deletions modules/nf-core/assemblyscan/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,36 @@
"id": "test",
"single_end": false
},
"test.json:md5,9140e3d43f2d676f62e1325ace5dd8bd"
"test.tsv:md5,d3bda95a4a6f65cd94adeccca998b0b6"
]
],
"1": [
"versions.yml:md5,406f16dbbbf8f98709caafe49ca10e21"

],
"2": [
"versions.yml:md5,4113de9fcbbd8f6fc66a5abc7720aa62"
],
"json": [

],
"tsv": [
[
{
"id": "test",
"single_end": false
},
"test.json:md5,9140e3d43f2d676f62e1325ace5dd8bd"
"test.tsv:md5,d3bda95a4a6f65cd94adeccca998b0b6"
]
],
"versions": [
"versions.yml:md5,406f16dbbbf8f98709caafe49ca10e21"
"versions.yml:md5,4113de9fcbbd8f6fc66a5abc7720aa62"
]
}
],
"timestamp": "2023-10-18T15:04:38.644743625"
"meta": {
"nf-test": "0.9.2",
"nextflow": "25.04.6"
},
"timestamp": "2025-12-04T16:48:44.200207939"
}
}
2 changes: 1 addition & 1 deletion modules/nf-core/trinity/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ process TRINITY {
gzip ${prefix}.fa
touch ${prefix}.log
"""
}
}
2 changes: 1 addition & 1 deletion modules/nf-core/trinity/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ authors:
- "@gallvp"
maintainers:
- "@timslittle"
- "@gallvp"
- "@gallvp"
Loading