nf-core_modules/modules/hmmcopy/mapcounter/main.nf
Simon Pearce 02218ab5a0
hmmcopy/mapCounter (#1175)
* hmmcopy/mapCounter

* update test

* Remove bam tag

* Remove /tmp/ path from test.yml

* Update modules/hmmcopy/mapcounter/meta.yml

Incorporate formatting changes

Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>

* Update modules/hmmcopy/mapcounter/meta.yml

Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>

* Update tests/modules/hmmcopy/mapcounter/main.nf

Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>

Co-authored-by: Simon Pearce <simon.pearce@cruk.manchester.ac.uk>
Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>
2021-12-17 15:39:50 +00:00

31 lines
849 B
Text

def VERSION = '0.1.1' // Version information not provided by tool on CLI
process HMMCOPY_MAPCOUNTER {
label 'process_medium'
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 bigwig
output:
path "*.map.wig" , emit: wig
path "versions.yml" , emit: versions
script:
def args = task.ext.args ?: ''
"""
mapCounter \\
$args \\
$bigwig > ${bigwig.baseName}.map.wig
cat <<-END_VERSIONS > versions.yml
"${task.process}":
hmmcopy: \$(echo $VERSION)
END_VERSIONS
"""
}