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

45 lines
1.1 KiB
Text
Raw Normal View History

process CNVPYTOR_HISTOGRAM {
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:24:54 +00:00
val bin_sizes
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-05-03 12:24:54 +00:00
def bins = bin_sizes ?: '1000'
"""
cnvpytor \\
-root $pytor \\
2022-05-03 12:24:54 +00:00
-his $bins
cat <<-END_VERSIONS > versions.yml
"${task.process}":
cnvpytor: \$(echo \$(cnvpytor --version 2>&1) | sed 's/CNVpytor //' )
END_VERSIONS
"""
stub:
"""
2022-04-04 11:18:02 +00:00
touch ${pytor.baseName}.pytor
cat <<-END_VERSIONS > versions.yml
"${task.process}":
cnvpytor: \$(echo \$(cnvpytor --version 2>&1) | sed 's/CNVpytor //' )
END_VERSIONS
"""
}