galaxy-dist commit 122aaabe2c7e: Workaround Issue 397 using 'if' in Cheetah template to avoid hidden parameters
# HG changeset patch -- Bitbucket.org # Project galaxy-dist # URL http://bitbucket.org/galaxy/galaxy-dist/overview # User peterjc <p.j.a.cock@googlemail.com> # Date 1286965628 -3600 # Node ID 122aaabe2c7eb48726f65233370926b838b6b444 # Parent 10d0ffe5b7e22b2d122945ab5b7fa951a18c6e4a Workaround Issue 397 using 'if' in Cheetah template to avoid hidden parameters --- a/tools/ncbi_blast_plus/ncbi_blastn_wrapper.xml +++ b/tools/ncbi_blast_plus/ncbi_blastn_wrapper.xml @@ -12,11 +12,12 @@ blastn #end if -task $blast_type -evalue $evalue_cutoff -$adv_opts.filter_query -$adv_opts.strand -out $output1 $out_format -num_threads 8 +#if $adv_opts.adv_opts_selector=="advanced": +$adv_opts.filter_query +$adv_opts.strand ## Need int(str(...)) because $adv_opts.max_hits is an InputValueWrapper object not a string ## Note -max_target_seqs overrides -num_descriptions and -num_alignments #if (str($adv_opts.max_hits) and int(str($adv_opts.max_hits)) > 0): @@ -26,6 +27,8 @@ blastn -word_size $adv_opts.word_size #end if $adv_opts.ungapped +## End of advanced options: +#end if </command><inputs><param name="query" type="data" format="fasta" label="Nucleotide query sequence(s)"/> @@ -78,13 +81,7 @@ blastn <option value="basic" selected="True">Hide Advanced Options</option><option value="advanced">Show Advanced Options</option></param> - <when value="basic"> - <param name="filter_query" type="hidden" value="" /> - <param name="strand" type="hidden" value="" /> - <param name="max_hits" type="hidden" value="" /> - <param name="word_size" type="hidden" value="" /> - <param name="ungapped" type="hidden" value="" /> - </when> + <when value="basic" /><when value="advanced"><!-- Could use a select (yes, no, other) where other allows setting 'level window linker' --><param name="filter_query" type="boolean" label="Filter out low complexity regions (with DUST)" truevalue="-dust yes" falsevalue="-dust no" checked="true" /> --- a/tools/ncbi_blast_plus/ncbi_blastp_wrapper.xml +++ b/tools/ncbi_blast_plus/ncbi_blastp_wrapper.xml @@ -12,11 +12,12 @@ blastp #end if -task $blast_type -evalue $evalue_cutoff -$adv_opts.filter_query -$adv_opts.matrix -out $output1 $out_format -num_threads 8 +#if $adv_opts.adv_opts_selector=="advanced": +$adv_opts.filter_query +$adv_opts.matrix ## Need int(str(...)) because $adv_opts.max_hits is an InputValueWrapper object not a string ## Note -max_target_seqs overrides -num_descriptions and -num_alignments #if (str($adv_opts.max_hits) and int(str($adv_opts.max_hits)) > 0): @@ -27,6 +28,8 @@ blastp #end if ##Ungapped disabled for now - see comments below ##$adv_opts.ungapped +## End of advanced options: +#end if </command><inputs><param name="query" type="data" format="fasta" label="Protein query sequence(s)"/> @@ -73,16 +76,7 @@ blastp <option value="basic" selected="True">Hide Advanced Options</option><option value="advanced">Show Advanced Options</option></param> - <when value="basic"> - <param name="filter_query" type="hidden" value="" /> - <param name="matrix" type="hidden" value="" /> - <param name="max_hits" type="hidden" value="" /> - <param name="word_size" type="hidden" value="" /> - <!-- - Ungapped disabled for now, see comments below - <param name="ungapped" type="hidden" value="" /> - --> - </when> + <when value="basic" /><when value="advanced"><!-- Could use a select (yes, no, other) where other allows setting 'window locut hicut' --><param name="filter_query" type="boolean" label="Filter out low complexity regions (with SEG)" truevalue="-seg yes" falsevalue="-seg no" checked="true" /> --- a/tools/ncbi_blast_plus/ncbi_tblastx_wrapper.xml +++ b/tools/ncbi_blast_plus/ncbi_tblastx_wrapper.xml @@ -11,12 +11,13 @@ tblastx -subject "$db_opts.subject" #end if -evalue $evalue_cutoff +-out $output1 +$out_format +-num_threads 8 +#if $adv_opts.adv_opts_selector=="advanced": $adv_opts.filter_query $adv_opts.strand $adv_opts.matrix --out $output1 -$out_format --num_threads 8 ## Need int(str(...)) because $adv_opts.max_hits is an InputValueWrapper object not a string ## Note -max_target_seqs overrides -num_descriptions and -num_alignments #if (str($adv_opts.max_hits) and int(str($adv_opts.max_hits)) > 0): @@ -25,6 +26,8 @@ tblastx #if (str($adv_opts.word_size) and int(str($adv_opts.word_size)) > 0): -word_size $adv_opts.word_size #end if +## End of advanced options: +#end if </command><inputs><param name="query" type="data" format="fasta" label="Nucleotide query sequence(s)"/> @@ -67,13 +70,7 @@ tblastx <option value="basic" selected="True">Hide Advanced Options</option><option value="advanced">Show Advanced Options</option></param> - <when value="basic"> - <param name="filter_query" type="hidden" value="" /> - <param name="strand" type="hidden" value="" /> - <param name="matrix" type="hidden" value="" /> - <param name="max_hits" type="hidden" value="" /> - <param name="word_size" type="hidden" value="" /> - </when> + <when value="basic" /><when value="advanced"><!-- Could use a select (yes, no, other) where other allows setting 'window locut hicut' --><param name="filter_query" type="boolean" label="Filter out low complexity regions (with SEG)" truevalue="-seg yes" falsevalue="-seg no" checked="true" /> --- a/tools/ncbi_blast_plus/ncbi_blastx_wrapper.xml +++ b/tools/ncbi_blast_plus/ncbi_blastx_wrapper.xml @@ -11,12 +11,13 @@ blastx -subject "$db_opts.subject" #end if -evalue $evalue_cutoff +-out $output1 +$out_format +-num_threads 8 +#if $adv_opts.adv_opts_selector=="advanced": $adv_opts.filter_query $adv_opts.strand $adv_opts.matrix --out $output1 -$out_format --num_threads 8 ## Need int(str(...)) because $adv_opts.max_hits is an InputValueWrapper object not a string ## Note -max_target_seqs overrides -num_descriptions and -num_alignments #if (str($adv_opts.max_hits) and int(str($adv_opts.max_hits)) > 0): @@ -26,6 +27,8 @@ blastx -word_size $adv_opts.word_size #end if $adv_opts.ungapped +## End of advanced options: +#end if </command><inputs><param name="query" type="data" format="fasta" label="Nucleotide query sequence(s)"/> @@ -68,14 +71,7 @@ blastx <option value="basic" selected="True">Hide Advanced Options</option><option value="advanced">Show Advanced Options</option></param> - <when value="basic"> - <param name="filter_query" type="hidden" value="" /> - <param name="strand" type="hidden" value="" /> - <param name="matrix" type="hidden" value="" /> - <param name="max_hits" type="hidden" value="" /> - <param name="word_size" type="hidden" value="" /> - <param name="ungapped" type="hidden" value="" /> - </when> + <when value="basic" /><when value="advanced"><!-- Could use a select (yes, no, other) where other allows setting 'window locut hicut' --><param name="filter_query" type="boolean" label="Filter out low complexity regions (with SEG)" truevalue="-seg yes" falsevalue="-seg no" checked="true" /> --- a/tools/ncbi_blast_plus/ncbi_tblastn_wrapper.xml +++ b/tools/ncbi_blast_plus/ncbi_tblastn_wrapper.xml @@ -11,11 +11,12 @@ tblastn -subject "$db_opts.subject" #end if -evalue $evalue_cutoff -$adv_opts.filter_query -$adv_opts.matrix -out $output1 $out_format -num_threads 8 +#if $adv_opts.adv_opts_selector=="advanced": +$adv_opts.filter_query +$adv_opts.matrix ## Need int(str(...)) because $adv_opts.max_hits is an InputValueWrapper object not a string ## Note -max_target_seqs overrides -num_descriptions and -num_alignments #if (str($adv_opts.max_hits) and int(str($adv_opts.max_hits)) > 0): @@ -26,6 +27,8 @@ tblastn #end if ##Ungapped disabled for now - see comments below ##$adv_opts.ungapped +## End of advanced options: +#end if </command><inputs><param name="query" type="data" format="fasta" label="Protein query sequence(s)"/> @@ -68,16 +71,7 @@ tblastn <option value="basic" selected="True">Hide Advanced Options</option><option value="advanced">Show Advanced Options</option></param> - <when value="basic"> - <param name="filter_query" type="hidden" value="" /> - <param name="matrix" type="hidden" value="" /> - <param name="max_hits" type="hidden" value="" /> - <param name="word_size" type="hidden" value="" /> - <!-- - Ungapped disabled for now, see comments below - <param name="ungapped" type="hidden" value="" /> - --> - </when> + <when value="basic" /><when value="advanced"><!-- Could use a select (yes, no, other) where other allows setting 'window locut hicut' --><param name="filter_query" type="boolean" label="Filter out low complexity regions (with SEG)" truevalue="-seg yes" falsevalue="-seg no" checked="true" />
participants (1)
-
commits-noreply@bitbucket.org