2022-03-15 09:20:46 +00:00
|
|
|
process CNVPYTOR_PARTITION {
|
|
|
|
tag "$meta.id"
|
|
|
|
label 'process_medium'
|
|
|
|
|
|
|
|
conda (params.enable_conda ? "bioconda::cnvpytor=1.0" : null)
|
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
2022-03-31 08:53:26 +00:00
|
|
|
'https://depot.galaxyproject.org/singularity/cnvpytor:1.0--py39h6a678da_2':
|
2022-03-15 09:20:46 +00:00
|
|
|
'quay.io/biocontainers/cnvpytor:1.0--py39h6a678da_2' }"
|
|
|
|
|
|
|
|
input:
|
|
|
|
tuple val(meta), path(pytor)
|
|
|
|
|
|
|
|
output:
|
|
|
|
tuple val(meta), path("${pytor.baseName}.pytor"), emit: pytor
|
|
|
|
path "versions.yml" , emit: versions
|
|
|
|
|
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
|
|
|
script:
|
2022-04-01 15:35:15 +00:00
|
|
|
def args = task.ext.args ?: ''
|
2022-03-15 09:20:46 +00:00
|
|
|
"""
|
|
|
|
cnvpytor \\
|
|
|
|
-root $pytor \\
|
|
|
|
-partition $args
|
|
|
|
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
|
|
"${task.process}":
|
|
|
|
cnvpytor: \$(echo \$(cnvpytor --version 2>&1) | sed 's/^.*pyCNVnator //; s/Using.*\$//' ))
|
|
|
|
END_VERSIONS
|
|
|
|
"""
|
2022-04-01 15:35:15 +00:00
|
|
|
|
|
|
|
stub:
|
|
|
|
"""
|
2022-04-04 11:18:02 +00:00
|
|
|
touch ${pytor.baseName}.pytor
|
2022-04-01 15:35:15 +00:00
|
|
|
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
|
|
"${task.process}":
|
|
|
|
cnvpytor: \$(echo \$(cnvpytor --version 2>&1) | sed 's/^.*pyCNVnator //; s/Using.*\$//' ))
|
|
|
|
END_VERSIONS
|
|
|
|
"""
|
2022-03-15 09:20:46 +00:00
|
|
|
}
|