nf-core_modules/modules/cnvpytor/callcnvs/main.nf

44 lines
1.2 KiB
Text
Raw Normal View History

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)
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' }"
input:
tuple val(meta), path(pytor)
2022-05-03 12:20:05 +00:00
val bin_sizes
output:
2022-05-03 12:20:05 +00:00
tuple val(meta), path("${pytor.baseName}.pytor") , emit: pytor
path "versions.yml" , emit: versions
when:
task.ext.when == null || task.ext.when
script:
2022-05-03 13:04:37 +00:00
def bins = bin_sizes ?: '1000'
"""
cnvpytor \\
-root $pytor \\
2022-05-03 12:20:05 +00:00
-call $bin_sizes
cat <<-END_VERSIONS > versions.yml
"${task.process}":
cnvpytor: \$(echo \$(cnvpytor --version 2>&1) | sed 's/CNVpytor //' )
END_VERSIONS
"""
stub:
"""
2022-05-03 12:20:05 +00:00
touch ${pytor.baseName}.pytor
cat <<-END_VERSIONS > versions.yml
"${task.process}":
cnvpytor: \$(echo \$(cnvpytor --version 2>&1) | sed 's/CNVpytor //' )
END_VERSIONS
"""
}