nf-core_modules/modules/dshbio/exportsegments/main.nf
Michael L Heuer 72adfbff72
Update dsh-bio to 2.1 (#2100)
Update dsh-bio to 2.1.
2022-09-26 10:41:33 +01:00

35 lines
997 B
Text

process DSHBIO_EXPORTSEGMENTS {
tag "${meta.id}"
label 'process_medium'
conda (params.enable_conda ? "bioconda::dsh-bio=2.1" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/dsh-bio:2.1--hdfd78af_0' :
'quay.io/biocontainers/dsh-bio:2.1--hdfd78af_0' }"
input:
tuple val(meta), path(gfa)
output:
tuple val(meta), path("*.fa.gz"), emit: fasta
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}"
"""
dsh-bio \\
export-segments \\
$args \\
-i $gfa \\
-o ${prefix}.fa.gz
cat <<-END_VERSIONS > versions.yml
"${task.process}":
dshbio: \$(dsh-bio --version 2>&1 | grep -o 'dsh-bio-tools .*' | cut -f2 -d ' ')
END_VERSIONS
"""
}