Mercurial > repos > kkonganti > cfsan_bettercallsal
annotate 0.5.0/modules/salmon/index/main.nf @ 1:365849f031fd
"planemo upload"
author | kkonganti |
---|---|
date | Mon, 05 Jun 2023 18:48:51 -0400 |
parents | |
children | a492d1511fb6 |
rev | line source |
---|---|
kkonganti@1 | 1 process SALMON_INDEX { |
kkonganti@1 | 2 tag "$meta.id" |
kkonganti@1 | 3 label "process_low" |
kkonganti@1 | 4 |
kkonganti@1 | 5 module (params.enable_module ? "${params.swmodulepath}${params.fs}salmon${params.fs}1.9.0" : null) |
kkonganti@1 | 6 conda (params.enable_conda ? 'conda-forge::libgcc-ng bioconda::salmon=1.9.0' : null) |
kkonganti@1 | 7 container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? |
kkonganti@1 | 8 'https://depot.galaxyproject.org/singularity/salmon:1.9.0--h7e5ed60_1' : |
kkonganti@1 | 9 'quay.io/biocontainers/salmon:1.9.0--h7e5ed60_1' }" |
kkonganti@1 | 10 |
kkonganti@1 | 11 input: |
kkonganti@1 | 12 tuple val(meta), path(genome_fasta) |
kkonganti@1 | 13 |
kkonganti@1 | 14 output: |
kkonganti@1 | 15 tuple val(meta), path("${meta.id}_salmon_idx"), emit: idx |
kkonganti@1 | 16 path "versions.yml" , emit: versions |
kkonganti@1 | 17 |
kkonganti@1 | 18 when: |
kkonganti@1 | 19 task.ext.when == null || task.ext.when |
kkonganti@1 | 20 |
kkonganti@1 | 21 script: |
kkonganti@1 | 22 def args = task.ext.args ?: '' |
kkonganti@1 | 23 def prefix = task.ext.prefix ?: "${meta.id}_salmon_idx" |
kkonganti@1 | 24 def decoys_file = file( meta.salmon_decoys ) |
kkonganti@1 | 25 def decoys = !("${decoys_file.simpleName}" ==~ 'dummy_file.*') && decoys_file.exits() ? "--decoys ${meta.salmon_decoys}" : '' |
kkonganti@1 | 26 """ |
kkonganti@1 | 27 salmon \\ |
kkonganti@1 | 28 index \\ |
kkonganti@1 | 29 $decoys \\ |
kkonganti@1 | 30 --threads $task.cpus \\ |
kkonganti@1 | 31 $args \\ |
kkonganti@1 | 32 --index $prefix \\ |
kkonganti@1 | 33 --transcripts $genome_fasta |
kkonganti@1 | 34 |
kkonganti@1 | 35 cat <<-END_VERSIONS > versions.yml |
kkonganti@1 | 36 "${task.process}": |
kkonganti@1 | 37 salmon: \$(echo \$(salmon --version) | sed -e "s/salmon //g") |
kkonganti@1 | 38 END_VERSIONS |
kkonganti@1 | 39 """ |
kkonganti@1 | 40 } |