annotate 0.6.1/modules/mash/screen/main.nf @ 15:1972677994a6

"planemo upload"
author kkonganti
date Thu, 07 Sep 2023 10:27:12 -0400
parents 749faef1caa9
children
rev   line source
kkonganti@11 1 process MASH_SCREEN {
kkonganti@11 2 tag "$meta.id"
kkonganti@11 3 label 'process_micro'
kkonganti@11 4
kkonganti@11 5 module (params.enable_module ? "${params.swmodulepath}${params.fs}mash${params.fs}2.3" : null)
kkonganti@11 6 conda (params.enable_conda ? "conda-forge::capnproto conda-forge::gsl bioconda::mash=2.3" : null)
kkonganti@11 7 container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
kkonganti@11 8 'https://depot.galaxyproject.org/singularity/mash:2.3--he348c14_1':
kkonganti@11 9 'quay.io/biocontainers/mash:2.3--he348c14_1' }"
kkonganti@11 10
kkonganti@11 11 input:
kkonganti@11 12 tuple val(meta), path(query)
kkonganti@11 13
kkonganti@11 14 output:
kkonganti@11 15 tuple val(meta), path("*.screened"), emit: screened
kkonganti@11 16 path "versions.yml" , emit: versions
kkonganti@11 17
kkonganti@11 18 when:
kkonganti@11 19 task.ext.when == null || task.ext.when
kkonganti@11 20
kkonganti@11 21 script:
kkonganti@11 22 def args = task.ext.args ?: ''
kkonganti@11 23 def prefix = task.ext.prefix ?: "${meta.id}"
kkonganti@11 24 def sequence_sketch = (meta.sequence_sketch ?: '')
kkonganti@11 25 """
kkonganti@11 26 mash \\
kkonganti@11 27 screen \\
kkonganti@11 28 $args \\
kkonganti@11 29 -p $task.cpus \\
kkonganti@11 30 $sequence_sketch \\
kkonganti@11 31 $query \\
kkonganti@11 32 > ${prefix}.screened
kkonganti@11 33
kkonganti@11 34 cat <<-END_VERSIONS > versions.yml
kkonganti@11 35 "${task.process}":
kkonganti@11 36 mash: \$( mash --version )
kkonganti@11 37 END_VERSIONS
kkonganti@11 38 """
kkonganti@11 39 }