2022-05-23 16:35:50 +00:00
|
|
|
process CNVKIT_REFERENCE {
|
2022-05-24 08:17:41 +00:00
|
|
|
tag "$fasta"
|
2022-05-23 16:35:50 +00:00
|
|
|
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:
|
2022-05-24 10:14:32 +00:00
|
|
|
path fasta
|
|
|
|
path targets
|
|
|
|
path antitargets
|
2022-05-23 16:35:50 +00:00
|
|
|
|
|
|
|
output:
|
2022-05-24 10:14:32 +00:00
|
|
|
path "*.cnn" , emit: cnn
|
|
|
|
path "versions.yml", emit: versions
|
2022-05-23 16:35:50 +00:00
|
|
|
|
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
|
|
|
script:
|
|
|
|
def args = task.ext.args ?: ''
|
|
|
|
"""
|
|
|
|
cnvkit.py \\
|
|
|
|
reference \\
|
|
|
|
--fasta $fasta \\
|
|
|
|
--targets $targets \\
|
|
|
|
--antitargets $antitargets \\
|
|
|
|
--output reference.cnn \\
|
|
|
|
$args
|
|
|
|
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
|
|
"${task.process}":
|
|
|
|
cnvkit: \$(cnvkit.py version | sed -e "s/cnvkit v//g")
|
|
|
|
END_VERSIONS
|
|
|
|
"""
|
|
|
|
}
|