nf-core_modules/modules/delly/call/main.nf
nvnieuwk 5a30294eec
Update for the delly/call module (#2008)
* updated the delly/call module

* Update modules/delly/call/meta.yml

Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>

Co-authored-by: Matthias De Smet <11850640+matthdsm@users.noreply.github.com>
Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>
2022-09-05 12:09:55 +02:00

42 lines
1.2 KiB
Text

process DELLY_CALL {
tag "$meta.id"
label 'process_medium'
conda (params.enable_conda ? "bioconda::delly=1.1.3" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/delly:1.1.3--h358d541_0' :
'quay.io/biocontainers/delly:1.1.3--h358d541_0' }"
input:
tuple val(meta), path(input), path(input_index)
path exclude_bed
path fasta
path fai
output:
tuple val(meta), path("*.bcf"), emit: bcf
tuple val(meta), path("*.csi"), emit: csi
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}"
def exclude = exclude_bed ? "--exclude ${exclude_bed}" : ""
"""
delly \\
call \\
${args} \\
--outfile ${prefix}.bcf \\
--genome ${fasta} \\
${exclude} \\
${input}
cat <<-END_VERSIONS > versions.yml
"${task.process}":
delly: \$( echo \$(delly --version 2>&1) | sed 's/^.*Delly version: v//; s/ using.*\$//')
END_VERSIONS
"""
}