galaxy-dist commit d8da4f7bb0f5: Add -ungapped for blastn and blastx (having trouble with blastp and tblastn, not in tblastx)
# 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 1286554738 -3600 # Node ID d8da4f7bb0f5e1d43b371e4e52fb688ad816e5bf # Parent 8979b429d7691f4121afb368a05e6b9d0ea40706 Add -ungapped for blastn and blastx (having trouble with blastp and tblastn, not in tblastx) --- a/tools/ncbi_blast_plus/ncbi_blastn_wrapper.xml +++ b/tools/ncbi_blast_plus/ncbi_blastn_wrapper.xml @@ -25,6 +25,7 @@ blastn #if (str($adv_opts.word_size) and int(str($adv_opts.word_size)) > 0): -word_size $adv_opts.word_size #end if +$adv_opts.ungapped </command><inputs><param name="query" type="data" format="fasta" label="Nucleotide query sequence(s)"/> @@ -76,6 +77,7 @@ blastn <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="advanced"><!-- Could use a select (yes, no, other) where other allows setting 'level window linker' --> @@ -93,6 +95,7 @@ blastn <param name="word_size" type="integer" value="0" label="Word size for wordfinder algorithm" help="Use zero for default, otherwise minimum 4."><validator type="in_range" min="0" /></param> + <param name="ungapped" type="boolean" label="Perform ungapped alignment only?" truevalue="-ungapped" falsevalue="" checked="false" /></when></conditional></inputs> --- a/tools/ncbi_blast_plus/ncbi_blastp_wrapper.xml +++ b/tools/ncbi_blast_plus/ncbi_blastp_wrapper.xml @@ -25,6 +25,8 @@ blastp #if (str($adv_opts.word_size) and int(str($adv_opts.word_size)) > 0): -word_size $adv_opts.word_size #end if +##Ungapped disabled for now - see comments below +##$adv_opts.ungapped </command><inputs><param name="query" type="data" format="fasta" label="Protein query sequence(s)"/> @@ -70,6 +72,10 @@ blastp <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="advanced"><!-- Could use a select (yes, no, other) where other allows setting 'window locut hicut' --> @@ -92,6 +98,12 @@ blastp <param name="word_size" type="integer" value="0" label="Word size for wordfinder algorithm" help="Use zero for default, otherwise minimum 2."><validator type="in_range" min="0" /></param> + <!-- + Can't use '-ungapped' on its own, error back is: + Composition-adjusted searched are not supported with an ungapped search, please add -comp_based_stats F or do a gapped search + Tried using '-ungapped -comp_based_stats F' and blastp crashed with 'Attempt to access NULL pointer.' + <param name="ungapped" type="boolean" label="Perform ungapped alignment only?" truevalue="-ungapped -comp_based_stats F" falsevalue="" checked="false" /> + --></when></conditional></inputs> --- a/tools/ncbi_blast_plus/ncbi_blastx_wrapper.xml +++ b/tools/ncbi_blast_plus/ncbi_blastx_wrapper.xml @@ -25,6 +25,7 @@ blastx #if (str($adv_opts.word_size) and int(str($adv_opts.word_size)) > 0): -word_size $adv_opts.word_size #end if +$adv_opts.ungapped </command><inputs><param name="query" type="data" format="fasta" label="Nucleotide query sequence(s)"/> @@ -67,6 +68,7 @@ blastx <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="advanced"><!-- Could use a select (yes, no, other) where other allows setting 'window locut hicut' --> @@ -94,6 +96,7 @@ blastx <param name="word_size" type="integer" value="0" label="Word size for wordfinder algorithm" help="Use zero for default, otherwise minimum 2."><validator type="in_range" min="0" /></param> + <param name="ungapped" type="boolean" label="Perform ungapped alignment only?" truevalue="-ungapped" falsevalue="" checked="false" /></when></conditional></inputs> --- a/tools/ncbi_blast_plus/ncbi_tblastn_wrapper.xml +++ b/tools/ncbi_blast_plus/ncbi_tblastn_wrapper.xml @@ -24,6 +24,8 @@ tblastn #if (str($adv_opts.word_size) and int(str($adv_opts.word_size)) > 0): -word_size $adv_opts.word_size #end if +##Ungapped disabled for now - see comments below +##$adv_opts.ungapped </command><inputs><param name="query" type="data" format="fasta" label="Protein query sequence(s)"/> @@ -65,6 +67,10 @@ tblastn <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="advanced"><!-- Could use a select (yes, no, other) where other allows setting 'window locut hicut' --> @@ -87,6 +93,12 @@ tblastn <param name="word_size" type="integer" value="0" label="Word size for wordfinder algorithm" help="Use zero for default, otherwise minimum 2."><validator type="in_range" min="0" /></param> + <!-- + Can't use '-ungapped' on its own, error back is: + Composition-adjusted searched are not supported with an ungapped search, please add -comp_based_stats F or do a gapped search + Tried using '-ungapped -comp_based_stats F' and tblastn crashed with 'Attempt to access NULL pointer.' + <param name="ungapped" type="boolean" label="Perform ungapped alignment only?" truevalue="-ungapped -comp_based_stats F" falsevalue="" checked="false" /> + --></when></conditional></inputs>
participants (1)
-
commits-noreply@bitbucket.org