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
18 changes: 4 additions & 14 deletions modules/nf-core/fq/generate/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ process FQ_GENERATE {
val meta

output:
tuple val(meta), path("*.fastq.gz"), emit: fastq
path "versions.yml" , emit: versions
tuple val(meta), path("*.fastq.gz") , emit: fastq
tuple val("${task.process}"), val('fq'), eval("fq generate --version | sed 's/fq-generate //;s/ (.*//' "), emit: versions_fq, topic: versions

when:
task.ext.when == null || task.ext.when
Expand All @@ -24,22 +24,12 @@ process FQ_GENERATE {
fq generate \\
$args \\
${prefix}_R1.fastq.gz ${prefix}_R2.fastq.gz

cat <<-END_VERSIONS > versions.yml
"${task.process}":
fq: \$(echo \$(fq generate --version | sed 's/fq-generate //g'))
END_VERSIONS
"""

stub:
def prefix = task.ext.prefix ?: "${meta.id}"
"""
echo | gzip > ${prefix}_R1.fastq.gz
echo | gzip > ${prefix}_R2.fastq.gz

cat <<-END_VERSIONS > versions.yml
"${task.process}":
fq: \$(echo \$(fq generate --version | sed 's/fq-generate //g'))
END_VERSIONS
echo "" | gzip > ${prefix}_R1.fastq.gz
echo "" | gzip > ${prefix}_R2.fastq.gz
"""
}
31 changes: 23 additions & 8 deletions modules/nf-core/fq/generate/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ tools:
homepage: "https://github.com/stjude-rust-labs/fq"
documentation: "https://github.com/stjude-rust-labs/fq"
tool_dev_url: "https://github.com/stjude-rust-labs/fq"
licence: ["MIT"]
licence:
- "MIT"
identifier: ""
input:
- meta:
Expand All @@ -32,14 +33,28 @@ output:
description: Random generated FASTQ files.
pattern: "*_R[12].fastq.gz"
ontologies:
- edam: http://edamontology.org/format_3989 # GZIP format
- edam: http://edamontology.org/format_3989
versions_fq:
- - ${task.process}:
type: string
description: The name of the process
- fq:
type: string
description: The name of the tool
- "fq generate --version | sed 's/fq-generate //;s/ (.*//' ":
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
- fq:
type: string
description: The name of the tool
- "fq generate --version | sed 's/fq-generate //;s/ (.*//' ":
type: eval
description: The expression to obtain the version of the tool
authors:
- "@adamrtalbot"
maintainers:
Expand Down
44 changes: 30 additions & 14 deletions modules/nf-core/fq/generate/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
]
],
"1": [
"versions.yml:md5,cacd942133fef4aada49329843f0a582"
[
"FQ_GENERATE",
"fq",
"0.12.0"
]
],
"fastq": [
[
Expand All @@ -29,16 +33,20 @@
]
]
],
"versions": [
"versions.yml:md5,cacd942133fef4aada49329843f0a582"
"versions_fq": [
[
"FQ_GENERATE",
"fq",
"0.12.0"
]
]
}
],
"timestamp": "2026-05-01T12:15:33.190349",
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-10-19T16:38:52.818166434"
"nf-test": "0.9.4",
"nextflow": "26.04.0"
}
},
"test fq": {
"content": [
Expand All @@ -56,7 +64,11 @@
]
],
"1": [
"versions.yml:md5,cacd942133fef4aada49329843f0a582"
[
"FQ_GENERATE",
"fq",
"0.12.0"
]
],
"fastq": [
[
Expand All @@ -70,15 +82,19 @@
]
]
],
"versions": [
"versions.yml:md5,cacd942133fef4aada49329843f0a582"
"versions_fq": [
[
"FQ_GENERATE",
"fq",
"0.12.0"
]
]
}
],
"timestamp": "2026-05-01T12:15:29.873962",
"meta": {
"nf-test": "0.9.0",
"nextflow": "24.04.4"
},
"timestamp": "2024-10-19T16:38:39.365406108"
"nf-test": "0.9.4",
"nextflow": "26.04.0"
}
}
}
Loading