mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
ee5f59705f
* Adding new module gfaffix. * add missing entry to pytest_modules.yml * update to 0.1.4--hec16e2b_0 * fixup after prettier * add when section * update md5sum * Change to process_single as discussed Co-authored-by: Simon Pearce <24893913+SPPearce@users.noreply.github.com> Co-authored-by: Simon Heumos <simon.heumos@qbic.uni-tuebingen.de>
36 lines
1 KiB
Text
36 lines
1 KiB
Text
process GFAFFIX {
|
|
tag "$meta.id"
|
|
label 'process_single'
|
|
|
|
conda (params.enable_conda ? 'bioconda::gfaffix=0.1.4' : null)
|
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/gfaffix:0.1.4--hec16e2b_0' :
|
|
'quay.io/biocontainers/gfaffix:0.1.4--hec16e2b_0' }"
|
|
|
|
input:
|
|
tuple val(meta), path(gfa)
|
|
|
|
output:
|
|
tuple val(meta), path("*.gfa"), emit: gfa
|
|
tuple val(meta), path("*.txt"), emit: affixes
|
|
path "versions.yml" , emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
"""
|
|
gfaffix \\
|
|
$args \\
|
|
$gfa \\
|
|
-o ${prefix}.gfaffix.gfa > ${prefix}.affixes.txt
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
gfaffix: \$(gfaffix --version 2>&1 | grep -o 'gfaffix .*' | cut -f2 -d ' ')
|
|
END_VERSIONS
|
|
"""
|
|
}
|