nf-core_modules/modules/genmap/mappability/main.nf
JIANHONG OU d1c8bddaaa
fix typo in tag of genmap_mappability (#1527)
fix tyop in tag of genmap_mappability
2022-09-26 16:21:45 +01:00

36 lines
1,018 B
Text

process GENMAP_MAPPABILITY {
tag '$index'
label 'process_high'
conda (params.enable_conda ? "bioconda::genmap=1.3.0" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/genmap:1.3.0--h1b792b2_1' :
'quay.io/biocontainers/genmap:1.3.0--h1b792b2_1' }"
input:
path index
output:
path "*.wig" , optional:true, emit: wig
path "*.bedgraph" , optional:true, emit: bedgraph
path "*.txt" , optional:true, emit: txt
path "versions.yml" , emit: versions
when:
task.ext.when == null || task.ext.when
script:
def args = task.ext.args ?: ''
"""
genmap \\
map \\
$args \\
-I $index \\
-O mappability
cat <<-END_VERSIONS > versions.yml
"${task.process}":
genmap: \$(genmap --version 2>&1 | sed 's/GenMap version: //; s/SeqAn.*\$//')
END_VERSIONS
"""
}