mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-15 22:23:09 +00:00
ef585046a0
* feat added vcflib/vcfbreakmulti module * fix comments review * Update modules/vcflib/vcfbreakmulti/main.nf Co-authored-by: Anders Jemt <jemten@users.noreply.github.com> * Update modules/vcflib/vcfbreakmulti/main.nf Co-authored-by: Anders Jemt <jemten@users.noreply.github.com> * fix change required by reviewer * fix commiting pytest_modules.yml * fix version * fix version_ * Update tests/modules/vcflib/vcfbreakmulti/test.yml Co-authored-by: nvnieuwk <101190534+nvnieuwk@users.noreply.github.com> * fix undid previous commit * fix test * Update tests/modules/vcflib/vcfbreakmulti/test.yml Co-authored-by: nvnieuwk <101190534+nvnieuwk@users.noreply.github.com> * Update tests/modules/vcflib/vcfbreakmulti/test.yml Co-authored-by: nvnieuwk <101190534+nvnieuwk@users.noreply.github.com> Co-authored-by: Anders Jemt <jemten@users.noreply.github.com> Co-authored-by: nvnieuwk <101190534+nvnieuwk@users.noreply.github.com>
49 lines
1.5 KiB
Text
49 lines
1.5 KiB
Text
process VCFLIB_VCFBREAKMULTI {
|
|
tag "$meta.id"
|
|
label 'process_low'
|
|
|
|
conda (params.enable_conda ? "bioconda::vcflib=1.0.3" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/vcflib:1.0.3--hecb563c_1':
|
|
'quay.io/biocontainers/vcflib:1.0.3--ha025227_0' }"
|
|
|
|
input:
|
|
tuple val(meta), path(vcf), path(tbi)
|
|
|
|
output:
|
|
tuple val(meta), path("*.vcf.gz"), emit: vcf
|
|
path "versions.yml" , emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
def args2 = task.ext.args2 ?: ''
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
def VERSION = '1.0.3' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
|
|
|
|
"""
|
|
vcfbreakmulti \\
|
|
$vcf \\
|
|
$args \\
|
|
| bgzip -c $args2 > ${prefix}.breakmulti.vcf.gz
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
vcflib: $VERSION
|
|
END_VERSIONS
|
|
"""
|
|
|
|
stub:
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
def VERSION = '1.0.3' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
|
|
"""
|
|
touch ${prefix}.breakmulti.vcf.gz
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
vcflib: $VERSION
|
|
END_VERSIONS
|
|
"""
|
|
}
|