# HG changeset patch # User iuc # Date 1662473885 0 # Node ID 46c5d7a0393bb4482c8e5fce0d748588d7fdf52d # Parent f9a0855c792d2d06738c33240308141b4257a894 planemo upload for repository https://github.com/katholt/srst2 commit 2e3867763a28e217bf5f44558a3f56e7efe041c5 diff -r f9a0855c792d -r 46c5d7a0393b macros.xml --- a/macros.xml Mon Aug 22 19:13:16 2022 +0000 +++ b/macros.xml Tue Sep 06 14:18:05 2022 +0000 @@ -1,7 +1,7 @@ 0.2.0 - 0 + 1 20.01 diff -r f9a0855c792d -r 46c5d7a0393b srst2.xml --- a/srst2.xml Mon Aug 22 19:13:16 2022 +0000 +++ b/srst2.xml Tue Sep 06 14:18:05 2022 +0000 @@ -21,11 +21,13 @@ ln -s $s './$i-prev_output.txt' && #end if #end for -#for $i, $s in enumerate($use_gene_db.gene_db) - #if $s - ln -s $s './$i-gene_db.fasta' && - #end if -#end for +#if $use_gene_db.selector == "yes" + #for $i, $s in enumerate($use_gene_db.gene_db) + #if $s + ln -s $s './$i-gene_db.fasta' && + #end if + #end for +#end if #if $use_mlst_db.selector == "yes" #set ext_3=$use_mlst_db.mlst_definitions.datatype.file_ext ln -s $use_mlst_db.mlst_db './mlst_db.fasta' && @@ -96,18 +98,19 @@ #if 'keep_interim_alignment' in str($output_files_selector) --keep_interim_alignment #end if +## |true here is added in order not to search for a file that is not produced at all, such that if the user provided no gene/MLST databases or there are no outputs found, the tool will run successfully and only notify the user that no outputs are found #if 'report_new_consensus' in str($output_files_selector) and $use_gene_db.selector == "yes" and $use_mlst_db.selector == "yes" -&& mkdir -p allelesOutput/ && cp *.output__input.*.pileup allelesOutput +&& mkdir -p allelesOutput/ && cp *.output__input.*.pileup allelesOutput | true #end if #if $use_gene_db.selector == "yes" and $use_gene_db.no_gene_details -&& mkdir -p geneTypingOutput/ && cp output__genes__*__results.txt geneTypingOutput && cp output__fullgenes__*__results.txt geneTypingOutput +&& mkdir -p geneTypingOutput/ && cp output__genes__*__results.txt geneTypingOutput | true && cp output__fullgenes__*__results.txt geneTypingOutput | true #end if #if 'save_scores' in str($output_files_selector) - && mkdir -p scoresOutput/ && cp *.scores scoresOutput + && mkdir -p scoresOutput/ && cp *.scores scoresOutput | true #end if #if $input.selector == "single" or $input.selector == "paired" -&& mkdir -p bowtie2Alignments/ && cp *.sorted.bam bowtie2Alignments -&& mkdir -p samtoolsPileup/ && cp output__input.*.pileup samtoolsPileup +&& mkdir -p bowtie2Alignments/ && cp *.sorted.bam bowtie2Alignments | true +&& mkdir -p samtoolsPileup/ && cp output__input.*.pileup samtoolsPileup | true #end if ]]> @@ -315,6 +318,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +