Mercurial > repos > kkonganti > cfsan_bettercallsal
annotate 0.5.0/modules/db_per_snp_cluster/main.nf @ 1:365849f031fd
"planemo upload"
author | kkonganti |
---|---|
date | Mon, 05 Jun 2023 18:48:51 -0400 |
parents | |
children |
rev | line source |
---|---|
kkonganti@1 | 1 process DB_PER_SNP_CLUSTER { |
kkonganti@1 | 2 tag "waterfall_per_snp_cluster.pl" |
kkonganti@1 | 3 label "process_pico" |
kkonganti@1 | 4 |
kkonganti@1 | 5 module (params.enable_module ? "${params.swmodulepath}${params.fs}perl${params.fs}5.30.0" : null) |
kkonganti@1 | 6 conda (params.enable_conda ? "conda-forge::perl bioconda::perl-bioperl=1.7.8" : null) |
kkonganti@1 | 7 container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ? |
kkonganti@1 | 8 'https://depot.galaxyproject.org/singularity/perl-bioperl:1.7.8--hdfd78af_1' : |
kkonganti@1 | 9 'quay.io/biocontainers/perl-bioperl:1.7.8--hdfd78af_1' }" |
kkonganti@1 | 10 |
kkonganti@1 | 11 input: |
kkonganti@1 | 12 path accs_tbl |
kkonganti@1 | 13 path pdg_metadata |
kkonganti@1 | 14 path snp_cluster_metadata |
kkonganti@1 | 15 |
kkonganti@1 | 16 output: |
kkonganti@1 | 17 path '*asm_chunk_snp.tbl' , emit: asm_chunk_snp_tbl |
kkonganti@1 | 18 path '*asm_chunk_snp_counts.tbl', emit: asm_chunk_snp_counts |
kkonganti@1 | 19 path '*accs_snp.txt' , emit: accs_snp |
kkonganti@1 | 20 path 'mash_snp_genome_list.txt' , emit: genome_paths |
kkonganti@1 | 21 path 'versions.yml' , emit: versions |
kkonganti@1 | 22 |
kkonganti@1 | 23 when: |
kkonganti@1 | 24 task.ext.when == null || task.ext.when |
kkonganti@1 | 25 |
kkonganti@1 | 26 script: |
kkonganti@1 | 27 def args = task.ext.args ?: '' |
kkonganti@1 | 28 def prefix = task.index ?: '' |
kkonganti@1 | 29 """ |
kkonganti@1 | 30 waterfall_per_snp_cluster.pl \\ |
kkonganti@1 | 31 -p $pdg_metadata \\ |
kkonganti@1 | 32 -t $accs_tbl \\ |
kkonganti@1 | 33 -snp $snp_cluster_metadata \\ |
kkonganti@1 | 34 $args \\ |
kkonganti@1 | 35 1> asm_chunk_snp.tbl 2> asm_chunk_snp_counts.tbl |
kkonganti@1 | 36 |
kkonganti@1 | 37 cat <<-END_VERSIONS > versions.yml |
kkonganti@1 | 38 "${task.process}": |
kkonganti@1 | 39 perl: \$( perl -e 'print \$^V' | sed 's/v//g' ) |
kkonganti@1 | 40 bioperl: \$(perl -MBio::Root::Version -e 'print \$Bio::Root::Version::VERSION') |
kkonganti@1 | 41 END_VERSIONS |
kkonganti@1 | 42 """ |
kkonganti@1 | 43 } |