mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-15 06:03:10 +00:00
ae92159762
* Initial structure * Working with local singularity image * Working generateMap.pl script * Remote not working bioconda * Working generateMap with biocontainer * Lint changes * Updated hmmcopy container version to be consistent * Fix failing test * Remove path to perl * No hardpath to script * Update main.nf Moved version outside of process, add support for zipped fasta file * Revert to not allowing gzip via pipe, as perl script can't cope Co-authored-by: Simon Pearce <simon.pearce@cruk.manchester.ac.uk>
32 lines
919 B
Text
32 lines
919 B
Text
def VERSION = '0.1.1' // Version information not provided by tool on CLI
|
|
|
|
process HMMCOPY_READCOUNTER {
|
|
tag "$meta.id"
|
|
label 'process_low'
|
|
|
|
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:
|
|
tuple val(meta), path(bam), path(bai)
|
|
|
|
output:
|
|
tuple val(meta), path("*.wig"), emit: wig
|
|
path "versions.yml" , emit: versions
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
"""
|
|
readCounter \\
|
|
$args \\
|
|
${bam} > ${prefix}.wig
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
hmmcopy: $VERSION
|
|
END_VERSIONS
|
|
"""
|
|
}
|