2021-11-26 07:58:40 +00:00
|
|
|
def VERSION = '377' // Version information not provided by tool on CLI
|
2021-09-28 13:37:47 +00:00
|
|
|
|
2021-05-20 19:39:33 +00:00
|
|
|
process UCSC_BIGWIGAVERAGEOVERBED {
|
|
|
|
tag "$meta.id"
|
|
|
|
label 'process_medium'
|
|
|
|
|
|
|
|
conda (params.enable_conda ? "bioconda::ucsc-bigwigaverageoverbed=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-bigwigaverageoverbed:377--h0b8a92a_2' :
|
|
|
|
'quay.io/biocontainers/ucsc-bigwigaverageoverbed:377--h0b8a92a_2' }"
|
2021-05-20 19:39:33 +00:00
|
|
|
|
|
|
|
input:
|
|
|
|
tuple val(meta), path(bed)
|
|
|
|
path bigwig
|
|
|
|
|
|
|
|
output:
|
2021-09-28 13:37:47 +00:00
|
|
|
tuple val(meta), path("*.tab"), emit: tab
|
2021-10-01 13:04:56 +00:00
|
|
|
path "versions.yml" , emit: versions
|
2021-05-20 19:39:33 +00:00
|
|
|
|
|
|
|
script:
|
2021-11-26 07:58:40 +00:00
|
|
|
def args = task.ext.args ?: ''
|
2021-12-02 12:39:55 +00:00
|
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
2021-11-26 07:58:40 +00:00
|
|
|
// BUG: bigWigAverageOverBed cannot handle ensembl seqlevels style
|
2021-05-20 19:39:33 +00:00
|
|
|
"""
|
2021-09-28 13:37:47 +00:00
|
|
|
bigWigAverageOverBed \\
|
2021-11-26 07:58:40 +00:00
|
|
|
$args \\
|
2021-09-28 13:37:47 +00:00
|
|
|
$bigwig \\
|
|
|
|
$bed \\
|
|
|
|
${prefix}.tab
|
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
|
|
|
"""
|
|
|
|
}
|