2022-03-15 09:20:46 +00:00
|
|
|
process CNVPYTOR_CALLCNVS {
|
|
|
|
tag "$meta.id"
|
|
|
|
label 'process_medium'
|
|
|
|
|
2022-05-01 19:14:01 +00:00
|
|
|
conda (params.enable_conda ? "bioconda::cnvpytor=1.2.1" : null)
|
2022-03-15 09:20:46 +00:00
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
2022-05-01 19:14:01 +00:00
|
|
|
'https://depot.galaxyproject.org/singularity/cnvpytor:1.2.1--pyhdfd78af_0':
|
|
|
|
'quay.io/biocontainers/cnvpytor:1.2.1--pyhdfd78af_0' }"
|
2022-03-15 09:20:46 +00:00
|
|
|
|
|
|
|
input:
|
|
|
|
tuple val(meta), path(pytor)
|
2022-05-03 12:20:05 +00:00
|
|
|
val bin_sizes
|
2022-03-15 09:20:46 +00:00
|
|
|
|
|
|
|
output:
|
2022-05-03 12:20:05 +00:00
|
|
|
tuple val(meta), path("${pytor.baseName}.pytor") , emit: pytor
|
|
|
|
path "versions.yml" , emit: versions
|
2022-03-15 09:20:46 +00:00
|
|
|
|
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
|
|
|
script:
|
2022-05-03 13:04:37 +00:00
|
|
|
def bins = bin_sizes ?: '1000'
|
2022-03-15 09:20:46 +00:00
|
|
|
"""
|
|
|
|
cnvpytor \\
|
|
|
|
-root $pytor \\
|
2022-05-03 12:20:05 +00:00
|
|
|
-call $bin_sizes
|
2022-03-15 09:20:46 +00:00
|
|
|
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
|
|
"${task.process}":
|
2022-05-03 12:20:05 +00:00
|
|
|
cnvpytor: \$(echo \$(cnvpytor --version 2>&1) | sed 's/CNVpytor //' ))
|
2022-03-15 09:20:46 +00:00
|
|
|
END_VERSIONS
|
|
|
|
"""
|
2022-04-01 15:35:15 +00:00
|
|
|
|
|
|
|
stub:
|
|
|
|
"""
|
2022-05-03 12:20:05 +00:00
|
|
|
touch ${pytor.baseName}.pytor
|
2022-04-01 15:35:15 +00:00
|
|
|
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
|
|
"${task.process}":
|
2022-05-03 12:20:05 +00:00
|
|
|
cnvpytor: \$(echo \$(cnvpytor --version 2>&1) | sed 's/CNVpytor //' ))
|
2022-04-01 15:35:15 +00:00
|
|
|
END_VERSIONS
|
|
|
|
"""
|
2022-03-15 09:20:46 +00:00
|
|
|
}
|