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
12 changes: 1 addition & 11 deletions modules/nf-core/untar/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ process UNTAR {

output:
tuple val(meta), path("${prefix}"), emit: untar
path "versions.yml", emit: versions
tuple val("${task.process}"), val('tar'), eval("tar --version | head -n 1 | cut -f4 -d ' '"), topic: versions, emit: versions_tar

when:
task.ext.when == null || task.ext.when
Expand Down Expand Up @@ -42,11 +42,6 @@ process UNTAR {
${archive} \\
${args2}
fi

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

stub:
Expand Down Expand Up @@ -75,10 +70,5 @@ process UNTAR {
fi
done
fi

cat <<-END_VERSIONS > versions.yml
"${task.process}":
untar: \$(echo \$(tar --version 2>&1) | sed 's/^.*(GNU tar) //; s/ Copyright.*\$//')
END_VERSIONS
"""
}
28 changes: 22 additions & 6 deletions modules/nf-core/untar/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,34 @@ output:
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
pattern: "*/"
versions_tar:
- - ${task.process}:
type: string
description: The name of the process
- tar:
type: string
description: The name of the tool
- "tar --version | head -n 1 | cut -f4 -d ' '":
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
- tar:
type: string
description: The name of the tool
- "tar --version | head -n 1 | cut -f4 -d ' '":
type: eval
description: The expression to obtain the version of the tool
authors:
- "@joseespinosa"
- "@drpatelh"
- "@matthdsm"
- "@jfy133"
- "@eit-maxlcummins"
maintainers:
- "@joseespinosa"
- "@drpatelh"
Expand Down
80 changes: 56 additions & 24 deletions modules/nf-core/untar/tests/main.nf.test.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
]
],
"1": [
"versions.yml:md5,6063247258c56fd271d076bb04dd7536"
[
"UNTAR",
"tar",
"1.34"
]
],
"untar": [
[
Expand All @@ -25,16 +29,20 @@
]
]
],
"versions": [
"versions.yml:md5,6063247258c56fd271d076bb04dd7536"
"versions_tar": [
[
"UNTAR",
"tar",
"1.34"
]
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.3"
"nf-test": "0.9.3",
"nextflow": "25.10.2"
},
"timestamp": "2024-07-10T12:04:28.231047"
"timestamp": "2026-01-22T14:15:23.063536907"
},
"test_untar_onlyfiles - stub": {
"content": [
Expand All @@ -50,7 +58,11 @@
]
],
"1": [
"versions.yml:md5,6063247258c56fd271d076bb04dd7536"
[
"UNTAR",
"tar",
"1.34"
]
],
"untar": [
[
Expand All @@ -62,16 +74,20 @@
]
]
],
"versions": [
"versions.yml:md5,6063247258c56fd271d076bb04dd7536"
"versions_tar": [
[
"UNTAR",
"tar",
"1.34"
]
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.3"
"nf-test": "0.9.3",
"nextflow": "25.10.2"
},
"timestamp": "2024-07-10T12:04:45.773103"
"timestamp": "2026-01-22T14:15:34.84221815"
},
"test_untar - stub": {
"content": [
Expand All @@ -89,7 +105,11 @@
]
],
"1": [
"versions.yml:md5,6063247258c56fd271d076bb04dd7536"
[
"UNTAR",
"tar",
"1.34"
]
],
"untar": [
[
Expand All @@ -103,16 +123,20 @@
]
]
],
"versions": [
"versions.yml:md5,6063247258c56fd271d076bb04dd7536"
"versions_tar": [
[
"UNTAR",
"tar",
"1.34"
]
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.3"
"nf-test": "0.9.3",
"nextflow": "25.10.2"
},
"timestamp": "2024-07-10T12:04:36.777441"
"timestamp": "2026-01-22T14:15:28.946517024"
},
"test_untar": {
"content": [
Expand All @@ -130,7 +154,11 @@
]
],
"1": [
"versions.yml:md5,6063247258c56fd271d076bb04dd7536"
[
"UNTAR",
"tar",
"1.34"
]
],
"untar": [
[
Expand All @@ -144,15 +172,19 @@
]
]
],
"versions": [
"versions.yml:md5,6063247258c56fd271d076bb04dd7536"
"versions_tar": [
[
"UNTAR",
"tar",
"1.34"
]
]
}
],
"meta": {
"nf-test": "0.8.4",
"nextflow": "24.04.3"
"nf-test": "0.9.3",
"nextflow": "25.10.2"
},
"timestamp": "2024-07-10T12:04:19.377674"
"timestamp": "2026-01-22T14:15:17.05337819"
}
}
Loading