2021-11-26 07:58:40 +00:00
|
|
|
def VERSION = '377' // Version information not provided by tool on CLI
|
2021-09-28 05:56:27 +00:00
|
|
|
|
2021-05-20 19:39:33 +00:00
|
|
|
process UCSC_WIGTOBIGWIG {
|
2022-01-11 21:31:37 +00:00
|
|
|
tag "$meta.id"
|
2021-05-20 19:39:33 +00:00
|
|
|
label 'process_medium'
|
|
|
|
|
|
|
|
conda (params.enable_conda ? "bioconda::ucsc-wigtobigwig=377" : null)
|
2021-11-26 07:58:40 +00:00
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
|
|
'https://depot.galaxyproject.org/singularity/ucsc-wigtobigwig:377--h0b8a92a_2' :
|
|
|
|
'quay.io/biocontainers/ucsc-wigtobigwig:377--h0b8a92a_2' }"
|
2021-05-20 19:39:33 +00:00
|
|
|
|
|
|
|
input:
|
2022-01-11 21:31:37 +00:00
|
|
|
tuple val(meta), path(wig)
|
2021-11-26 07:58:40 +00:00
|
|
|
path sizes
|
2021-05-20 19:39:33 +00:00
|
|
|
|
|
|
|
output:
|
2022-01-11 21:31:37 +00:00
|
|
|
tuple val(meta), path("*.bw"), emit: bw
|
|
|
|
path "versions.yml" , emit: versions
|
2021-05-20 19:39:33 +00:00
|
|
|
|
2022-02-04 08:53:32 +00:00
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
2021-05-20 19:39:33 +00:00
|
|
|
script:
|
2021-11-26 07:58:40 +00:00
|
|
|
def args = task.ext.args ?: ''
|
2022-01-11 21:31:37 +00:00
|
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
2021-05-20 19:39:33 +00:00
|
|
|
"""
|
|
|
|
wigToBigWig \\
|
2021-11-26 07:58:40 +00:00
|
|
|
$args \\
|
2021-05-20 19:39:33 +00:00
|
|
|
$wig \\
|
2021-11-26 07:58:40 +00:00
|
|
|
$sizes \\
|
2022-01-11 21:31:37 +00:00
|
|
|
${prefix}.bw
|
2021-05-20 19:39:33 +00:00
|
|
|
|
2021-09-27 08:41:24 +00:00
|
|
|
cat <<-END_VERSIONS > versions.yml
|
2021-11-26 07:58:40 +00:00
|
|
|
"${task.process}":
|
|
|
|
ucsc: $VERSION
|
2021-09-27 08:41:24 +00:00
|
|
|
END_VERSIONS
|
2021-05-20 19:39:33 +00:00
|
|
|
"""
|
2022-03-28 15:48:39 +00:00
|
|
|
|
|
|
|
stub:
|
|
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
|
|
"""
|
|
|
|
touch ${prefix}.bw
|
|
|
|
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
|
|
"${task.process}":
|
|
|
|
ucsc: $VERSION
|
|
|
|
END_VERSIONS
|
|
|
|
"""
|
2021-05-20 19:39:33 +00:00
|
|
|
}
|