annotate 0.6.1/modules/db_per_snp_cluster/main.nf @ 13:74baf1a6c3bd

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