# HG changeset patch # User peterjc # Date 1505730087 14400 # Node ID 6f386c5dc4fb8d62c9d8dea3e02cd743e730ef9c # Parent 7538e2bfcd41434d3d293390c53acff224a55240 v0.2.01 add -max_hsps, -use_sw_tback; lists args; internal updates diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/README.rst --- a/tools/ncbi_blast_plus/README.rst Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/README.rst Mon Sep 18 06:21:27 2017 -0400 @@ -1,7 +1,7 @@ Galaxy wrappers for NCBI BLAST+ suite ===================================== -These wrappers are copyright 2010-2016 by Peter Cock (The James Hutton Institute, +These wrappers are copyright 2010-2017 by Peter Cock (The James Hutton Institute, UK) and additional contributors including Edward Kirton, John Chilton, Nicola Soranzo, Jim Johnson, and Bjoern Gruening. @@ -213,7 +213,7 @@ table definitions in Galaxy's ``tool_data_table_conf.xml`` file, setup via ``tool-data/tool_data_table_conf.xml.sample`` - Replace ``.extra_files_path`` with ``.files_path`` (internal change, - thanks to Bjoern Gruening and John Chilton). + thanks to Bjoern Gruening and John Chilton). - Added "NCBI BLAST+ integrated into Galaxy" preprint citation. v0.1.03 - Reorder XML elements (internal change only). - Planemo for Tool Shed upload (``.shed.yml``, internal change only). @@ -233,15 +233,21 @@ (contribution from Gildas Le Corguillé and Emma Prudent). - Minor XML and Python style changes (internal change only). - Set ``allow_duplicate_entries="False"`` in sample configuration file - ``tool_data_table_conf.xml``. + ``tool_data_table_conf.xml``. - Fix identifers with pipes in ``blastdbcmd`` wrapper (Devon Ryan). v0.2.00 - Updated for NCBI BLAST+ 2.5.0, where GI numbers are less visible, tabular output changes with `-parse_deflines`, and percentage - identifies are now given to 3dp rather than 2dp. + identifies are now given to 3dp rather than 2dp. - Depends on ``package_blast_plus_2_5_0`` in ToolShed, or BioConda. - ``blastxml_to_tabular`` now also gives percentage idenity to 3dp. - Removed never-used binary and Python module dependency declarations (internal change only). +v0.2.01 - Use ```` (internal change only). + - Single quote command line arguments (internal change only). + - Show BLAST command line argument corresponding to each tool + parameter (contribution from Nicola Soranzo). + - Add ``-max_hsps`` option (contribution from Nicola Soranzo). + - Add ``-use_sw_tback`` option for BLASTP (Nicola Soranzo). ======= ====================================================================== @@ -278,7 +284,7 @@ $ planemo shed_upload --tar_only tools/ncbi_blast_plus/ ... - $ tar -tzf shed_upload.tar.gz + $ tar -tzf shed_upload.tar.gz test-data/blastdb.loc ... tools/ncbi_blast_plus/tool_dependencies.xml diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/blastxml_to_tabular.py --- a/tools/ncbi_blast_plus/blastxml_to_tabular.py Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/blastxml_to_tabular.py Mon Sep 18 06:21:27 2017 -0400 @@ -61,6 +61,7 @@ space character (probably a bug). """ +from __future__ import print_function import os import re @@ -69,7 +70,7 @@ from optparse import OptionParser if "-v" in sys.argv or "--version" in sys.argv: - print "v0.2.00" + print("v0.2.01") sys.exit(0) if sys.version_info[:2] >= (2, 5): @@ -295,7 +296,7 @@ salltitles = "<>".join(name.split(None, 1)[1] for name in hit_def.split(" >")) except IndexError as e: sys.exit("Problem splitting multuple hits?\n%r\n--> %s" % (hit_def, e)) - # print hit_def, "-->", sallseqid + # print(hit_def, "-->", sallseqid) positive = hsp.findtext("Hsp_positive") ppos = "%0.2f" % (100 * float(positive) / float(length)) qframe = hsp.findtext("Hsp_query-frame") @@ -325,7 +326,7 @@ if cols: # Only a subset of the columns are needed values = [values[colnames.index(c)] for c in cols] - # print "\t".join(values) + # print("\t".join(values)) output_handle.write("\t".join(values) + "\n") # prevents ElementTree from growing large datastructure root.clear() diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/blastxml_to_tabular.xml --- a/tools/ncbi_blast_plus/blastxml_to_tabular.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/blastxml_to_tabular.xml Mon Sep 18 06:21:27 2017 -0400 @@ -3,27 +3,22 @@ ncbi_macros.xml - - - - - - blastxml_to_tabular.py --version - -blastxml_to_tabular.py -o "$tabular_file" + python $__tool_directory__/blastxml_to_tabular.py --version + +python $__tool_directory__/blastxml_to_tabular.py -o '$tabular_file' #if $output.out_format == "cols": #set cols = (str($output.std_cols)+","+str($output.ext_cols)).replace("None", " ").replace(",,", ",").replace(",", " ") --c "$cols" +-c '$cols' #else --c "$output.out_format" +-c '$output.out_format' #end if -#for i in $blastxml_file#"${i}" #end for# +#for i in $blastxml_file#'${i}' #end for# - + @@ -139,7 +134,7 @@ - + **What it does** NCBI BLAST+ (and the older NCBI 'legacy' BLAST) can output in a range of diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_blastdbcmd_info.xml --- a/tools/ncbi_blast_plus/ncbi_blastdbcmd_info.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_blastdbcmd_info.xml Mon Sep 18 06:21:27 2017 -0400 @@ -5,7 +5,7 @@ ncbi_macros.xml - + blastdbcmd -dbtype $db_opts.db_type -db "${db_opts.database.fields.path}" -info -out "$info" @@ -32,7 +32,7 @@ - + **What it does** Calls the NCBI BLAST+ blastdbcmd command line tool with the -info diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_blastdbcmd_wrapper.xml --- a/tools/ncbi_blast_plus/ncbi_blastdbcmd_wrapper.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_blastdbcmd_wrapper.xml Mon Sep 18 06:21:27 2017 -0400 @@ -5,7 +5,7 @@ ncbi_macros.xml - + ## The command is a Cheetah template which allows some Python based syntax. ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces blastdbcmd -dbtype $db_opts.db_type -db "${db_opts.database.fields.path}" @@ -13,7 +13,7 @@ ##TODO: What about -ctrl_a and -target_only as advanced options? #if $id_opts.id_type=="file": --entry_batch "$id_opts.entries" +-entry_batch '$id_opts.entries' #else: ##Perform some simple search/replaces to remove whitespace ##and make it comma separated. Quoted so don't escape pipes. @@ -40,11 +40,11 @@ ##using sed, however the exact syntax differs for Mac OS X's sed #if str($outfmt)=="blastid": --out "$seq" +-out '$seq' #else if sys.platform == "darwin": -| sed -E 's/^>(lcl\||gnl\|BL_ORD_ID\|[0-9]* )/>/1' > "$seq" +| sed -E 's/^>(lcl\||gnl\|BL_ORD_ID\|[0-9]* )/>/1' > "$seq" #else: -| sed 's/>\(lcl|\|gnl|BL_ORD_ID|[0-9]* \)/>/1' > "$seq" +| sed 's/>\(lcl|\|gnl|BL_ORD_ID|[0-9]* \)/>/1' > "$seq" #end if @@ -55,10 +55,10 @@ - + - + @@ -105,7 +105,7 @@ - + **What it does** Extracts FASTA formatted sequences from a BLAST database @@ -138,5 +138,5 @@ @REFERENCES@ - + diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_blastn_wrapper.xml --- a/tools/ncbi_blast_plus/ncbi_blastn_wrapper.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_blastn_wrapper.xml Mon Sep 18 06:21:27 2017 -0400 @@ -6,11 +6,11 @@ - + ## The command is a Cheetah template which allows some Python based syntax. ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces blastn --query "$query" +-query '$query' @BLAST_DB_SUBJECT@ -task $blast_type -evalue $evalue_cutoff @@ -31,9 +31,9 @@ #end if - + - + @@ -49,16 +49,14 @@ - + - - + + - - - - + + @@ -134,6 +132,15 @@ + + + + + + + + + @@ -144,7 +151,7 @@ - + @SEARCH_TIME_WARNING@ **What it does** diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_blastp_wrapper.xml --- a/tools/ncbi_blast_plus/ncbi_blastp_wrapper.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_blastp_wrapper.xml Mon Sep 18 06:21:27 2017 -0400 @@ -6,34 +6,34 @@ - + ## The command is a Cheetah template which allows some Python based syntax. ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces blastp --query "$query" +-query '$query' @BLAST_DB_SUBJECT@ -task $blast_type -evalue $evalue_cutoff @BLAST_OUTPUT@ @THREADS@ #if $adv_opts.adv_opts_selector=="advanced": --matrix $adv_opts.matrix -@ADV_FILTER_QUERY@ -@ADV_MAX_HITS@ -@ADV_WORD_SIZE@ -##Ungapped disabled for now - see comments below -##$adv_opts.ungapped -@ADV_ID_LIST_FILTER@ -@ADV_QCOV_HSP_PERC@ -## End of advanced options: + -matrix $adv_opts.matrix + @ADV_FILTER_QUERY@ + @ADV_MAX_HITS@ + @ADV_WORD_SIZE@ + ##Ungapped disabled for now - see comments below + ##$adv_opts.ungapped + @ADV_ID_LIST_FILTER@ + @ADV_QCOV_HSP_PERC@ + $adv_opts.use_sw_tback #end if - + - + @@ -50,11 +50,12 @@ 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.' - + --> + @@ -72,11 +73,11 @@ - + - + @@ -89,11 +90,11 @@ - + - + @@ -106,11 +107,11 @@ - + - + @@ -127,7 +128,7 @@ - + @SEARCH_TIME_WARNING@ **What it does** @@ -150,5 +151,5 @@ @REFERENCES@ - + diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_blastx_wrapper.xml --- a/tools/ncbi_blast_plus/ncbi_blastx_wrapper.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_blastx_wrapper.xml Mon Sep 18 06:21:27 2017 -0400 @@ -6,11 +6,11 @@ - + ## The command is a Cheetah template which allows some Python based syntax. ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces blastx --query "$query" +-query '$query' @BLAST_DB_SUBJECT@ -query_gencode $query_gencode -task $blast_type @@ -30,11 +30,11 @@ #end if - + - + @@ -48,7 +48,7 @@ - + @@ -107,7 +107,7 @@ - + @SEARCH_TIME_WARNING@ **What it does** diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_convert2blastmask_wrapper.xml --- a/tools/ncbi_blast_plus/ncbi_convert2blastmask_wrapper.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_convert2blastmask_wrapper.xml Mon Sep 18 06:21:27 2017 -0400 @@ -5,36 +5,36 @@ ncbi_macros.xml - + ## The command is a Cheetah template which allows some Python based syntax. ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces convert2blastmask --in $infile --masking_algorithm "$masking_algorithm" --masking_options "$masking_options" +-in '$infile' +-masking_algorithm '$masking_algorithm' +-masking_options '$masking_options' $parse_seqids --out "$outfile" +-out '$outfile' -outfmt $outformat - - + + - + - - + + - + @@ -42,9 +42,9 @@ - + --> @@ -54,7 +54,7 @@ - + @@ -62,7 +62,7 @@ - + diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_dustmasker_wrapper.xml --- a/tools/ncbi_blast_plus/ncbi_dustmasker_wrapper.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_dustmasker_wrapper.xml Mon Sep 18 06:21:27 2017 -0400 @@ -6,26 +6,26 @@ ncbi_macros.xml - + ## The command is a Cheetah template which allows some Python based syntax. ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces dustmasker #if $db_opts.db_opts_selector == "db": - -in "${db_opts.database.fields.path}" -infmt blastdb + -in '${db_opts.database.fields.path}' -infmt blastdb #elif $db_opts.db_opts_selector == "histdb": - -in "${os.path.join($db_opts.histdb.files_path, 'blastdb')}" -infmt blastdb + -in '${os.path.join($db_opts.histdb.files_path, "blastdb")}' -infmt blastdb #else: - -in "$subject" -infmt fasta + -in '$subject' -infmt fasta #end if --out "$outfile" +-out '$outfile' -window $window -level $level -linker $linker -outfmt $outformat - - - - + + + + @@ -40,9 +40,9 @@ - + --> diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_macros.xml --- a/tools/ncbi_blast_plus/ncbi_macros.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_macros.xml Mon Sep 18 06:21:27 2017 -0400 @@ -1,5 +1,5 @@ - 0.2.00 + 0.2.01 @@ -8,15 +8,6 @@ blast - - - - - - - - - @BINARY@ -version @@ -32,9 +23,9 @@ - + - + @@ -118,11 +109,11 @@ - + - + @@ -130,9 +121,9 @@ - + - + @@ -153,9 +144,9 @@ - + - + @@ -176,9 +167,10 @@ + - + @@ -187,7 +179,7 @@ - + @@ -197,14 +189,15 @@ - + + - + @@ -223,18 +216,18 @@ - + - + - + @@ -242,65 +235,62 @@ - + - - + + - + - + - + - + - + - - - + + - + - - - + - + - + - + @@ -313,23 +303,23 @@ - + help="This feature provides a means to exclude ID's from a BLAST database search. The expectation values in the BLAST results are based upon the sequences actually searched, and not on the underlying database. Note this cannot be used when comparing against a FASTA file."> + - - - @@ -351,23 +341,24 @@ -num_threads "\${GALAXY_SLOTS:-8}" #if $db_opts.db_opts_selector == "db": - -db "${' '.join(str( $db_opts.database.fields.path ).split( ',' ))}" + -db '${" ".join(str($db_opts.database.fields.path).split(","))}' #elif $db_opts.db_opts_selector == "histdb": - -db "${os.path.join($db_opts.histdb.extra_files_path,'blastdb')}" + -db '${os.path.join($db_opts.histdb.extra_files_path, "blastdb")}' #else: - -subject "$db_opts.subject" + -subject '$db_opts.subject' #end if - -out "$output1" + -out '$output1' ##Set the extended list here so when we add things, saved workflows are not affected #if str($output.out_format)=="ext": - -outfmt "6 std sallseqid score nident positive gaps ppos qframe sframe qseq sseq qlen slen salltitles" + -outfmt '6 std sallseqid score nident positive gaps ppos qframe sframe qseq sseq qlen slen salltitles' #elif str($output.out_format)=="cols" ##Pick your own columns. Galaxy gives us it comma separated, BLAST+ wants space separated: ##TODO - Can we catch the user picking no columns and raise an error here? #set cols = (str($output.std_cols)+","+str($output.ext_cols)+","+str($output.ids_cols)+","+str($output.misc_cols)+","+str($output.tax_cols)).replace("None", "").replace(",,", ",").replace(",", " ").strip() - -outfmt "6 $cols" + -outfmt '6 $cols' #else: +## Note do not quote this as can be '0 -html' which is really two arguments -outfmt $output.out_format #end if @@ -377,13 +368,16 @@ ## Note -max_target_seqs used to simply override -num_descriptions and -num_alignments ## but this was changed in BLAST+ 2.2.27 onwards to force their use (raised with NCBI) #if (str($adv_opts.max_hits) and int(str($adv_opts.max_hits)) > 0): -#if str($output.out_format) in ["6", "ext", "cols", "5"]: -## Most output formats use this, including tabular and XML: --max_target_seqs $adv_opts.max_hits -#else -## Text and HTML output formats 0-4 currently need this instead: --num_descriptions $adv_opts.max_hits -num_alignments $adv_opts.max_hits + #if str($output.out_format) in ["6", "ext", "cols", "5"]: + ## Most output formats use this, including tabular and XML: + -max_target_seqs $adv_opts.max_hits + #else + ## Text and HTML output formats 0-4 currently need this instead: + -num_descriptions $adv_opts.max_hits -num_alignments $adv_opts.max_hits + #end if #end if +#if str($adv_opts.max_hsps) + -max_hsps $adv_opts.max_hsps #end if @@ -394,11 +388,11 @@ #if str($db_opts.db_opts_selector)=='db' -${db_opts.database} +'${db_opts.database}' #elif str($db_opts.db_opts_selector)=='histdb' -${db_opts.histdb.name} +'${db_opts.histdb.name}' #else -${db_opts.subject.name} +'${db_opts.subject.name}' #end if Peter J. A. Cock, John M. Chilton, Björn Grüning, James E. Johnson, Nicola Soranzo (2015). @@ -491,7 +485,7 @@ .. class:: warningmark **Note**. Database searches may take a substantial amount of time. -For large input datasets it is advisable to allow overnight processing. +For large input datasets it is advisable to allow overnight processing. ----- diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_makeblastdb.xml --- a/tools/ncbi_blast_plus/ncbi_makeblastdb.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_makeblastdb.xml Mon Sep 18 06:21:27 2017 -0400 @@ -5,23 +5,24 @@ ncbi_macros.xml - check_no_duplicates.py + +python $__tool_directory__/check_no_duplicates.py ##First check for duplicates (since BLAST+ 2.2.28 fails to do so) ##and abort (via the ampersand ampersand trick) if any are found. -#for i in $input_file#"${i}" #end for# +#for i in $input_file#'${i}' #end for# && -makeblastdb -out "${os.path.join($outfile.files_path,'blastdb')}" +makeblastdb -out '${os.path.join($outfile.files_path, "blastdb")}' $parse_seqids $hash_index ## Single call to -in with multiple filenames space separated with outer quotes ## (presumably any filenames with spaces would be a problem). Note this gives ## some extra spaces, e.g. -in "file1 file2 file3 " but BLAST seems happy: --in "#for i in $input_file#${i} #end for#" +-in '#for i in $input_file#${i} #end for#' #if $title: --title "$title" +-title '$title' #else: ##Would default to being based on the cryptic Galaxy filenames, which is unhelpful --title "BLAST Database" +-title 'BLAST Database' #end if -dbtype $dbtype ## -------------------------------------------------------------------- @@ -31,7 +32,7 @@ ## See Trello issue https://trello.com/c/lp5YmA1O #if ' '.join( map(str, $mask_data_file) ) != 'None': #for i in $mask_data_file: --mask_data "${i}" +-mask_data '${i}' #end for #end if ## -------------------------------------------------------------------- @@ -48,7 +49,7 @@ > "$outfile" - + @@ -56,13 +57,13 @@ NOTE Double check the new database would be self contained first --> - - - - + + + + - + @@ -76,11 +77,11 @@ - + @@ -107,7 +108,7 @@ - + @@ -126,7 +127,7 @@ - + @@ -144,7 +145,7 @@ - + @@ -163,7 +164,7 @@ - + diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_makeprofiledb.xml --- a/tools/ncbi_blast_plus/ncbi_makeprofiledb.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_makeprofiledb.xml Mon Sep 18 06:21:27 2017 -0400 @@ -5,19 +5,19 @@ ncbi_macros.xml - + ##Unlike makeblastdb, makeprofiledb needs directory to exist already: mkdir -p $outfile.files_path && -makeprofiledb -out "${os.path.join($outfile.files_path,'blastdb')}" +makeprofiledb -out '${os.path.join($outfile.files_path, "blastdb")}' -##We turn $infile_list into $infiles with a configfile entry defined below --in $infiles +##We turn $input_file into $infiles with a configfile entry defined below +-in '$infiles' #if $title: --title "$title" +-title '$title' #else: ##Would default to being based on the cryptic Galaxy filenames, which is unhelpful --title "Profile Database" +-title 'Profile Database' #end if -threshold $threshold @@ -32,7 +32,7 @@ -obsr_threshold $obsr_threshold -exclude_invalid $exclude_invalid --logfile "$outfile" +-logfile '$outfile' @@ -42,13 +42,12 @@ - - + - - + + - - @@ -89,7 +88,7 @@ - + diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_rpsblast_wrapper.xml --- a/tools/ncbi_blast_plus/ncbi_rpsblast_wrapper.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_rpsblast_wrapper.xml Mon Sep 18 06:21:27 2017 -0400 @@ -6,15 +6,15 @@ - + ## The command is a Cheetah template which allows some Python based syntax. ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces rpsblast --query "$query" +-query '$query' #if $db_opts.db_opts_selector == "db": - -db "${db_opts.database.fields.path}" + -db '${db_opts.database.fields.path}' #elif $db_opts.db_opts_selector == "histdb": - -db "${os.path.join($db_opts.histdb.files_path,'blastdb')}" + -db '${os.path.join($db_opts.histdb.files_path, "blastdb")}' #end if -evalue $evalue_cutoff @BLAST_OUTPUT@ @@ -27,7 +27,7 @@ #end if - + @@ -61,7 +61,7 @@ - + @SEARCH_TIME_WARNING@ **What it does** @@ -76,7 +76,7 @@ http://www.ncbi.nlm.nih.gov/Structure/cdd/cdd_help.shtml#NCBI_curated_domains *Kog* - PSSMs from automatically aligned sequences and sequence -fragments classified in the KOGs resource, the eukaryotic +fragments classified in the KOGs resource, the eukaryotic counterpart to COGs, see http://www.ncbi.nlm.nih.gov/COG/ *Cog* - PSSMs from automatically aligned sequences and sequence diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_rpstblastn_wrapper.xml --- a/tools/ncbi_blast_plus/ncbi_rpstblastn_wrapper.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_rpstblastn_wrapper.xml Mon Sep 18 06:21:27 2017 -0400 @@ -6,15 +6,15 @@ - + ## The command is a Cheetah template which allows some Python based syntax. ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces rpstblastn --query "$query" +-query '$query' #if $db_opts.db_opts_selector == "db": - -db "${db_opts.database.fields.path}" + -db '${db_opts.database.fields.path}' #elif $db_opts.db_opts_selector == "histdb": - -db "${os.path.join($db_opts.histdb.files_path,'blastdb')}" + -db '${os.path.join($db_opts.histdb.files_path, "blastdb")}' #end if -evalue $evalue_cutoff @BLAST_OUTPUT@ @@ -28,7 +28,7 @@ #end if - + @@ -61,7 +61,7 @@ - + @SEARCH_TIME_WARNING@ **What it does** @@ -76,7 +76,7 @@ http://www.ncbi.nlm.nih.gov/Structure/cdd/cdd_help.shtml#NCBI_curated_domains *Kog* - PSSMs from automatically aligned sequences and sequence -fragments classified in the KOGs resource, the eukaryotic +fragments classified in the KOGs resource, the eukaryotic counterpart to COGs, see http://www.ncbi.nlm.nih.gov/COG/ *Cog* - PSSMs from automatically aligned sequences and sequence diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_segmasker_wrapper.xml --- a/tools/ncbi_blast_plus/ncbi_segmasker_wrapper.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_segmasker_wrapper.xml Mon Sep 18 06:21:27 2017 -0400 @@ -5,18 +5,18 @@ ncbi_macros.xml - + ## The command is a Cheetah template which allows some Python based syntax. ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces segmasker #if $db_opts.db_opts_selector == "db": - -in "${db_opts.database.fields.path}" -infmt blastdb + -in '${db_opts.database.fields.path}' -infmt blastdb #elif $db_opts.db_opts_selector == "histdb": - -in "${os.path.join($db_opts.histdb.files_path, 'blastdb')}" -infmt blastdb + -in '${os.path.join($db_opts.histdb.files_path, "blastdb")}' -infmt blastdb #else: - -in "$subject" -infmt fasta + -in '$subject' -infmt fasta #end if --out "$outfile" +-out '$outfile' -window $window -locut $locut -hicut $hicut @@ -42,9 +42,9 @@ - + --> diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_tblastn_wrapper.xml --- a/tools/ncbi_blast_plus/ncbi_tblastn_wrapper.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_tblastn_wrapper.xml Mon Sep 18 06:21:27 2017 -0400 @@ -6,11 +6,11 @@ - + ## The command is a Cheetah template which allows some Python based syntax. ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces tblastn --query "$query" +-query '$query' @BLAST_DB_SUBJECT@ -task $blast_type -evalue $evalue_cutoff @@ -30,10 +30,10 @@ #end if - + - + @@ -51,7 +51,7 @@ 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.' - + --> @@ -144,7 +144,7 @@ - + @SEARCH_TIME_WARNING@ **What it does** diff -r 7538e2bfcd41 -r 6f386c5dc4fb tools/ncbi_blast_plus/ncbi_tblastx_wrapper.xml --- a/tools/ncbi_blast_plus/ncbi_tblastx_wrapper.xml Wed Apr 19 05:27:19 2017 -0400 +++ b/tools/ncbi_blast_plus/ncbi_tblastx_wrapper.xml Mon Sep 18 06:21:27 2017 -0400 @@ -6,11 +6,11 @@ - + ## The command is a Cheetah template which allows some Python based syntax. ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces tblastx --query "$query" +-query '$query' @BLAST_DB_SUBJECT@ -query_gencode $query_gencode -evalue $evalue_cutoff @@ -29,7 +29,7 @@ #end if - + @@ -69,7 +69,7 @@ - + @SEARCH_TIME_WARNING@ **What it does**