mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
58c5ec2f4e
Co-authored-by: FriederikeHanssen <Friederike.hanssen@qbic.uni-tuebingen.de>
36 lines
979 B
Text
36 lines
979 B
Text
process CNVKIT_ANTITARGET {
|
|
tag "$meta.id"
|
|
label 'process_low'
|
|
|
|
conda (params.enable_conda ? "bioconda::cnvkit=0.9.9" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/cnvkit:0.9.9--pyhdfd78af_0':
|
|
'quay.io/biocontainers/cnvkit:0.9.9--pyhdfd78af_0' }"
|
|
|
|
input:
|
|
tuple val(meta), path(targets)
|
|
|
|
output:
|
|
tuple val(meta), path("*.bed"), emit: bed
|
|
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}"
|
|
|
|
"""
|
|
cnvkit.py \\
|
|
antitarget \\
|
|
$targets \\
|
|
--output ${prefix}.antitarget.bed \\
|
|
$args
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
cnvkit: \$(cnvkit.py version | sed -e "s/cnvkit v//g")
|
|
END_VERSIONS
|
|
"""
|
|
}
|