2021-12-15 15:57:42 +00:00
|
|
|
process HMMCOPY_GENERATEMAP {
|
|
|
|
tag '$bam'
|
|
|
|
label 'process_long'
|
|
|
|
|
2022-06-27 08:35:41 +00:00
|
|
|
// WARN: Version information not provided by tool on CLI. Please update version string below when bumping container versions.
|
2021-12-15 15:57:42 +00:00
|
|
|
conda (params.enable_conda ? "bioconda::hmmcopy=0.1.1" : null)
|
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
|
|
'https://depot.galaxyproject.org/singularity/hmmcopy:0.1.1--h2e03b76_7':
|
|
|
|
'quay.io/biocontainers/hmmcopy:0.1.1--h2e03b76_7' }"
|
|
|
|
|
|
|
|
input:
|
|
|
|
path fasta
|
|
|
|
|
|
|
|
output:
|
|
|
|
path "*.map.bw" , emit: bigwig
|
|
|
|
path "versions.yml" , emit: versions
|
|
|
|
|
2022-02-04 08:53:32 +00:00
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
2021-12-15 15:57:42 +00:00
|
|
|
script:
|
|
|
|
def args = task.ext.args ?: ''
|
2022-06-27 08:35:41 +00:00
|
|
|
def VERSION = '0.1.1' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
|
2021-12-15 15:57:42 +00:00
|
|
|
"""
|
|
|
|
# build required indexes
|
|
|
|
generateMap.pl -b \\
|
|
|
|
$args \\
|
|
|
|
$fasta
|
|
|
|
|
|
|
|
# run
|
|
|
|
generateMap.pl \\
|
|
|
|
$args \\
|
|
|
|
$fasta
|
|
|
|
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
|
|
"${task.process}":
|
|
|
|
hmmcopy: \$(echo $VERSION)
|
|
|
|
END_VERSIONS
|
|
|
|
"""
|
|
|
|
}
|