Repository 'blast_plus_remote_blastp'
hg clone https://toolshed.g2.bx.psu.edu/repos/galaxyp/blast_plus_remote_blastp

Changeset 5:22a767177ac9 (2017-01-20)
Previous changeset 4:a51980bc0ffe (2015-05-04) Next changeset 6:e9975de58321 (2017-07-27)
Commit message:
planemo upload for repository https://github.com/peterjc/galaxy_blast/tree/master/tools/ncbi_blast_plus commit 8cb8939dadaad8e804e35128cfb7b2560eb4d9b4
modified:
README.md
tool-data/blastdb_p.loc.sample
added:
blast_plus_remote_blastp.xml
test-data/four_human_proteins.fasta
test-data/rhodopsin_proteins.fasta
tool_data_table_conf.xml.sample
removed:
test-data/.gitkeep
tools/blast_plus_remote_blastp.xml
tools/repository_dependencies.xml
tools/tool_dependencies.xml
b
diff -r a51980bc0ffe -r 22a767177ac9 README.md
--- a/README.md Mon May 04 09:58:57 2015 -0500
+++ b/README.md Fri Jan 20 16:00:56 2017 -0500
[
@@ -1,7 +1,7 @@
 GalaxyP - NCBI BLAST+ remote blastp
 ===================================
 
-* Home: <https://bitbucket.org/galaxyp/blast_plus_remote_blastp>
+* Home: <https://github.com/galaxyproteomics/tools-galaxyp/>
 * Galaxy Tool Shed: <http://toolshed.g2.bx.psu.edu/view/galaxyp/blast_plus_remote_blastp>
 * Tool ID: `blast_plus_remote_blastp`
 
@@ -15,9 +15,9 @@
 GalaxyP Community
 -----------------
 
-Current governing community policies for [GalaxyP](https://bitbucket.org/galaxyp/) and other information can be found at:
+Current governing community policies for [GalaxyP](https://github.com/galaxyproteomics/) and other information can be found at:
 
-<https://bitbucket.org/galaxyp/galaxyp>
+<https://github.com/galaxyproteomics>
 
 
 License
@@ -35,7 +35,7 @@
 Contributing
 ------------
 
-Contributions to this repository are reviewed through pull requests. If you would like your work acknowledged, please also add yourself to the Authors section. If your pull request is accepted, you will also be acknowledged in <https://bitbucket.org/galaxyp/galaxyp/CONTRIBUTORS.md> unless you opt-out.
+Contributions to this repository are reviewed through pull requests. If you would like your work acknowledged, please also add yourself to the Authors section. If your pull request is accepted, you will also be acknowledged in <https://github.com/galaxyproteomics/tools-galaxyp/>
 
 
 Authors
b
diff -r a51980bc0ffe -r 22a767177ac9 blast_plus_remote_blastp.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/blast_plus_remote_blastp.xml Fri Jan 20 16:00:56 2017 -0500
[
b'@@ -0,0 +1,618 @@\n+<tool id="blast_plus_remote_blastp" name="NCBI BLAST+ remote blastp" version="2.6.0">\n+    <description>Search protein database with protein query sequence(s)</description>\n+    <!-- If job splitting is enabled, break up the query file into parts -->\n+    <!--\n+    <parallelism method="multi" split_inputs="query" split_mode="to_size" split_size="500" merge_outputs="output1" />\n+    -->\n+    <requirements>\n+        <requirement type="binary">blastp</requirement>\n+        <requirement type="package" version="2.6.0">blast</requirement>\n+    </requirements>\n+    <stdio>\n+        <exit_code range="1" level="fatal" description="Bad input dataset or BLAST options" />\n+        <exit_code range="2" level="fatal" description="Error in BLAST database" />\n+        <exit_code range="3" level="fatal" description="Error in BLAST engine" />\n+        <exit_code range="4" level="fatal" description="Out of Memory" />\n+        <exit_code range="5:" level="fatal" description="Unknown Error" />\n+    </stdio>\n+    <version_command>blastp -version</version_command>\n+    <command>\n+## The command is a Cheetah template which allows some Python based syntax.\n+## Lines starting hash hash are comments. Galaxy will turn newlines into spaces\n+blastp\n+-query "$query"\n+#if $db_opts.db_opts_selector == "db":\n+  -db "${db_opts.database.fields.path}"\n+#elif $db_opts.db_opts_selector == "histdb":\n+  -db "${os.path.join($db_opts.histdb.extra_files_path,\'blastdb\')}"\n+#elif $db_opts.db_opts_selector == "remote":\n+  -db $db_opts.database\n+  -remote\n+  #set $txids = []\n+  #set $ntxids = []\n+  #for $i, $org in enumerate($db_opts.taxid_repeat):\n+    #if $org.exclude:\n+      #set $ntxids = $ntxids + ["txid" + $org.taxid.__str__]\n+    #else\n+      #set $txids = $txids + ["txid" + $org.taxid.__str__]\n+    #end if\n+  #end for\n+  #if (len($txids) + len($ntxids)) > 0:\n+    #set $entrez_query = \'\'\n+    #if len($txids) > 0:\n+      #set $entrez_query = $entrez_query + \'(\' + \' OR \'.join($txids) + \')\'\n+    #end if\n+    #if len($ntxids) > 0:\n+      #set $entrez_query = $entrez_query + \' NOT (\' + \' OR \'.join($ntxids) + \')\'\n+    #end if\n+    -entrez_query \'$entrez_query\'\n+  #end if\n+#else:\n+  -subject "$db_opts.subject"\n+#end if\n+-task $blast_type\n+-evalue $evalue_cutoff\n+-out blast_output\n+##Set the extended list here so if/when we add things, saved workflows are not affected\n+#if str($fmt_opt.out_format)=="text":\n+  -outfmt "$fmt_opt.outfmt" $fmt_opt.html $fmt_opt.show_gis\n+  #if $fmt_opt.num_descriptions.__str__.strip() != \'\':\n+    -num_descriptions $fmt_opt.num_descriptions\n+  #end if\n+  #if $fmt_opt.num_alignments.__str__.strip() != \'\':\n+    -num_alignments $fmt_opt.num_alignments\n+  #end if\n+#elif str($fmt_opt.out_format)=="cols":\n+  #set cols = (str($fmt_opt.std_cols)+","+str($fmt_opt.ext_cols)+","+str($fmt_opt.ids_cols)+","+str($fmt_opt.misc_cols)+","+str($fmt_opt.tax_cols)).replace("None", "").replace(",,", ",").replace(",", " ").strip()\n+    -outfmt "6 $cols"\n+  #if $fmt_opt.max_target_seqs.__str__.strip() != \'\':\n+    -max_target_seqs $fmt_opt.max_target_seqs\n+  #end if\n+#else:\n+  -outfmt "$fmt_opt.outfmt"\n+  #if $fmt_opt.max_target_seqs.__str__.strip() != \'\':\n+    -max_target_seqs $fmt_opt.max_target_seqs\n+  #end if\n+#end if\n+#if $db_opts.db_opts_selector != "remote":\n+  -num_threads 8\n+#end if\n+#if $adv_opts.adv_opts_selector=="advanced":\n+  $adv_opts.filter_query\n+  -matrix $adv_opts.scoring.matrix\n+  $adv_opts.scoring.gap_costs\n+\n+  #if $adv_opts.word_size.__str__.strip() != \'\':\n+    -word_size $adv_opts.word_size\n+  #end if\n+\n+  #if $adv_opts.window_size.__str__.strip() != \'\':\n+    -window_size $adv_opts.window_size\n+  #end if\n+\n+  #if $adv_opts.threshold.__str__.strip() != \'\':\n+    -threshold $adv_opts.threshold\n+  #end if\n+\n+  #if $adv_opts.comp_based_stats.__str__.strip() != \'\':\n+    -comp_based_stats $adv_opts.comp_based_stats\n+  #end if\n+\n+  ##Ungapped disabled for now - see comments below\n+  ##$adv_opts.ungapped\n+  $adv_opts.use_sw_tback\n+  $a'..b'rningmark\n+\n+**Note**. Database searches may take a substantial amount of time.\n+For large input datasets it is advisable to allow overnight processing.\n+\n+-----\n+\n+**What it does**\n+\n+Search a *protein database* using a *protein query*,\n+using the NCBI BLAST+ blastp command line tool.\n+\n+The search can be performed using a local database, against a sequence supplied in a fasta file,\n+or the blast can be performed remotely at NCBI.\n+\n+The remote operation allows searches to be targeted at specific organisms.\n+\n+-----\n+\n+**Output format**\n+\n+Because Galaxy focuses on processing tabular data, the default output of this\n+tool is tabular. The standard BLAST+ tabular output contains 12 columns:\n+\n+====== ========= ============================================\n+Column NCBI name Description\n+------ --------- --------------------------------------------\n+     1 qseqid    Query Seq-id (ID of your sequence)\n+     2 sseqid    Subject Seq-id (ID of the database hit)\n+     3 pident    Percentage of identical matches\n+     4 length    Alignment length\n+     5 mismatch  Number of mismatches\n+     6 gapopen   Number of gap openings\n+     7 qstart    Start of alignment in query\n+     8 qend      End of alignment in query\n+     9 sstart    Start of alignment in subject (database hit)\n+    10 send      End of alignment in subject (database hit)\n+    11 evalue    Expectation value (E-value)\n+    12 bitscore  Bit score\n+====== ========= ============================================\n+\n+The BLAST+ tools can optionally output additional columns of information,\n+but this takes longer to calculate. Most (but not all) of these columns are\n+included by selecting the extended tabular output. The extra columns are\n+included *after* the standard 12 columns. This is so that you can write\n+workflow filtering steps that accept either the 12 or 24 column tabular\n+BLAST output.\n+\n+====== ============= ===========================================\n+Column NCBI name     Description\n+------ ------------- -------------------------------------------\n+    13 sallseqid     All subject Seq-id(s), separated by a \';\'\n+    14 score         Raw score\n+    15 nident        Number of identical matches\n+    16 positive      Number of positive-scoring matches\n+    17 gaps          Total number of gaps\n+    18 ppos          Percentage of positive-scoring matches\n+    19 qframe        Query frame\n+    20 sframe        Subject frame\n+    21 qseq          Aligned part of query sequence\n+    22 sseq          Aligned part of subject sequence\n+    23 qlen          Query sequence length\n+    24 slen          Subject sequence length\n+    25 salltitles    All subject title(s), separated by a \'&lt;&gt;\'\n+====== ============= ===========================================\n+\n+The third option is BLAST XML output, which is designed to be parsed by\n+another program, and is understood by some Galaxy tools.\n+\n+You can also choose several plain text or HTML output formats which are designed to be read by a person (not by another program).\n+The HTML versions use basic webpage formatting and can include links to the hits on the NCBI website.\n+The pairwise output (the default on the NCBI BLAST website) shows each match as a pairwise alignment with the query.\n+The two query anchored outputs show a multiple sequence alignment between the query and all the matches,\n+and differ in how insertions are shown (marked as insertions or with gap characters added to the other sequences).\n+\n+-------\n+\n+**References**\n+\n+Altschul et al. Gapped BLAST and PSI-BLAST: a new generation of protein database search programs. 1997. Nucleic Acids Res. 25:3389-3402.\n+\n+Schaffer et al. Improving the accuracy of PSI-BLAST protein database searches with composition-based statistics and other refinements. 2001. Nucleic Acids Res. 29:2994-3005.\n+\n+    </help>\n+    <citations>\n+        <citation type="doi">10.1186/1471-2105-10-421</citation>\n+        <citation type="doi">10.1186/s13742-015-0080-7</citation>\n+    </citations>\n+</tool>\n'
b
diff -r a51980bc0ffe -r 22a767177ac9 test-data/four_human_proteins.fasta
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/four_human_proteins.fasta Fri Jan 20 16:00:56 2017 -0500
b
@@ -0,0 +1,48 @@
+>sp|Q9BS26|ERP44_HUMAN Endoplasmic reticulum resident protein 44 OS=Homo sapiens GN=ERP44 PE=1 SV=1
+MHPAVFLSLPDLRCSLLLLVTWVFTPVTTEITSLDTENIDEILNNADVALVNFYADWCRFSQMLHPIFEEASDVIKEEFP
+NENQVVFARVDCDQHSDIAQRYRISKYPTLKLFRNGMMMKREYRGQRSVKALADYIRQQKSDPIQEIRDLAEITTLDRSK
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MIIIFFCYGQLVFTVKEAAAQQQES
+ATTQKAEKEVTRMVIIMVIAFLICWVPYASVAFYIFTHQGSNFGPIFMTIPAFFAKSAAIYNPVIYIMMNKQFRNCMLTT
+ICCGKNPLGDDEASATVSKTETSQVAPA
b
diff -r a51980bc0ffe -r 22a767177ac9 test-data/rhodopsin_proteins.fasta
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/rhodopsin_proteins.fasta Fri Jan 20 16:00:56 2017 -0500
[
@@ -0,0 +1,43 @@
+>gi|57163783|ref|NP_001009242.1| rhodopsin [Felis catus]
+MNGTEGPNFYVPFSNKTGVVRSPFEYPQYYLAEPWQFSMLAAYMFLLIVLGFPINFLTLYVTVQHKKLRT
+PLNYILLNLAVADLFMVFGGFTTTLYTSLHGYFVFGPTGCNLEGFFATLGGEIALWSLVVLAIERYVVVC
+KPMSNFRFGENHAIMGVAFTWVMALACAAPPLVGWSRYIPEGMQCSCGIDYYTLKPEVNNESFVIYMFVV
+HFTIPMIVIFFCYGQLVFTVKEAAAQQQESATTQKAEKEVTRMVIIMVIAFLICWVPYASVAFYIFTHQG
+SNFGPIFMTLPAFFAKSSSIYNPVIYIMMNKQFRNCMLTTLCCGKNPLGDDEASTTGSKTETSQVAPA
+
+>gi|3024260|sp|P56514.1|OPSD_BUFBU RecName: Full=Rhodopsin
+MNGTEGPNFYIPMSNKTGVVRSPFEYPQYYLAEPWQYSILCAYMFLLILLGFPINFMTLYVTIQHKKLRT
+PLNYILLNLAFANHFMVLCGFTVTMYSSMNGYFILGATGCYVEGFFATLGGEIALWSLVVLAIERYVVVC
+KPMSNFRFSENHAVMGVAFTWIMALSCAVPPLLGWSRYIPEGMQCSCGVDYYTLKPEVNNESFVIYMFVV
+HFTIPLIIIFFCYGRLVCTVKEAAAQQQESATTQKAEKEVTRMVIIMVVFFLICWVPYASVAFFIFSNQG
+SEFGPIFMTVPAFFAKSSSIYNPVIYIMLNKQFRNCMITTLCCGKNPFGEDDASSAATSKTEASSVSSSQ
+VSPA
+
+>gi|283855846|gb|ADB45242.1| rhodopsin [Cynopterus brachyotis]
+VPFSNKTGVVRSPFEHPQYYLAEPWQFSMLAAYMFLLIVLGFPINFLTLYVTVQHKKLRTPLNYILLNLA
+VADLFMVFGGFTTTLYTSLHGYFVFGPTGCNLEGFFATLGGEIALWSLVVLAIERYVVVCKPMSNFRFGE
+NHAIMGLALTWVMALACAAPPLVGWSRYIPEGMQCSCGIDYYTLKPEVNNESFVIYMFVVHFTIPMIVIF
+FCYGQLVFTVKEAAAQQQESATTQKAEKEVTRMVIIMVIAFLICWLPYAGVAFYIFTHQGSNFGPIFMTL
+PAFFAKSSSIYNPVIYIMMNKQFRNCMLTTLCCGKNPLGDDEASTTAS
+
+>gi|283855823|gb|ADB45229.1| rhodopsin [Myotis pilosus]
+VPFSNKTGVVRSPFEYPQYYLAEPWQFSMLAAYMFLLIVLGFPINFLTLYVTVQHKKLRTPLNYILLNLA
+VANLFMVFGGFTTTLYTSMHGYFVFGATGCNLEGFFATLGGEIALWSLVVLAIERYVVVCKPMSNFRFGE
+NHAIMGLAFTWVMALACAAPPLAGWSRYIPEGMQCSCGIDYYTLKPEVNNESFVIYMFVVHFTIPMIVIF
+FCYGQLVFTVKEAAAQQQESATTQKAEKEVTRMVIIMVVAFLICWLPYASVAFYIFTHQGSNFGPVFMTI
+PAFFAKSSSIYNPVIYIMMNKQFRNCMLTTLCCGKNPLGDDEASTTAS
+
+>gi|223523|prf||0811197A rhodopsin [Bos taurus]
+MNGTEGPNFYVPFSNKTGVVRSPFEAPQYYLAEPWQFSMLAAYMFLLIMLGFPINFLTLYVTVQHKKLRT
+PLNYILLNLAVADLFMVFGGFTTTLYTSLHGYFVFGPTGCNLEGFFATLGGEIALWSLVVLAIERYVVVC
+KPMSNFRFGENHAIMGVAFTWVMALACAAPPLVGWSRYIPEGMQCSCGIDYTPHEETNNESFVIYMFVVH
+FIIPLIVIFFCYGQLVFTVKEAAAQQQESATTQKAEKEVTRMVIIMVIAFLICWLPYAGVAFYIFTHQGS
+DFGPIFMTIPAFFAKTSAVYNPVIYIMMNKQFRNCMVTTLCCGKNPLGDDEASTTVSKTETSQVAPA
+
+>gi|12583665|dbj|BAB21486.1| fresh water form rod opsin [Conger myriaster]
+MNGTEGPNFYIPMSNATGVVRSPFEYPQYYLAEPWAFSALSAYMFFLIIAGFPINFLTLYVTIEHKKLRT
+PLNYILLNLAVADLFMVFGGFTTTMYTSMHGYFVFGPTGCNIEGFFATLGGEIALWCLVVLAIERWMVVC
+KPVTNFRFGESHAIMGVMVTWTMALACALPPLFGWSRYIPEGLQCSCGIDYYTRAPGINNESFVIYMFTC
+HFSIPLAVISFCYGRLVCTVKEAAAQQQESETTQRAEREVTRMVVIMVISFLVCWVPYASVAWYIFTHQG
+STFGPIFMTIPSFFAKSSALYNPMIYICMNKQFRHCMITTLCCGKNPFEEEDGASATSSKTEASSVSSSS
+VSPA
b
diff -r a51980bc0ffe -r 22a767177ac9 tool-data/blastdb_p.loc.sample
--- a/tool-data/blastdb_p.loc.sample Mon May 04 09:58:57 2015 -0500
+++ b/tool-data/blastdb_p.loc.sample Fri Jan 20 16:00:56 2017 -0500
b
@@ -1,32 +1,45 @@
 #NOTE: This file comes from the tool galaxyp/blast_plus_remote_blastp
+# This is a sample file distributed with Galaxy that is used to define a
+# list of protein BLAST databases, using three columns tab separated:
 #
-#This is a sample file distributed with Galaxy that is used to define a
-#list of protein BLAST databases, using three columns tab separated
-#(longer whitespace are TAB characters):
+# <unique_id>{tab}<database_caption>{tab}<base_name_path>
+#
+# The captions typically contain spaces and might end with the build date.
+# It is important that the actual database name does not have a space in
+# it, and that there are only two tabs on each line.
 #
-#<unique_id> <database_caption> <base_name_path>
+# You can download the NCBI provided protein databases like NR from here:
+# ftp://ftp.ncbi.nlm.nih.gov/blast/db/
 #
-#The captions typically contain spaces and might end with the build date.
-#It is important that the actual database name does not have a space in
-#it, and that there are only two tabs on each line.
-#
-#So, for example, if your database is NR and the path to your base name
-#is /data/blastdb/nr, then the blastdb_p.loc entry would look like this:
+# For simplicity, many Galaxy servers are configured to offer just a live
+# version of each NCBI BLAST database (updated with the NCBI provided
+# Perl scripts or similar). In this case, we recommend using the case
+# sensistive base-name of the NCBI BLAST databases as the unique id.
+# Consistent naming is important for sharing workflows between Galaxy
+# servers.
 #
-#nr{tab}NCBI NR (non redundant){tab}/data/blastdb/nr
+# For example, consider the NCBI "non-redundant" protein BLAST database
+# where you have downloaded and decompressed the files under /data/blastdb/
+# meaning at the command line BLAST+ would be run with something like
+# which would look at the files /data/blastdb/nr.p*:
 #
-#and your /data/blastdb directory would contain all of the files associated
-#with the database, /data/blastdb/nr.*.
+# $ blastp -db /data/blastdb/nr -query ...
 #
-#Your blastdb_p.loc file should include an entry per line for each "base name"
-#you have stored. For example:
+# In this case use nr (lower case to match the NCBI file naming) as the
+# unique id in the first column of blastdb_p.loc, giving an entry like
+# this:
+#
+# nr{tab}NCBI non-redundant (nr){tab}/data/blastdb/nr
 #
-#nr_05Jun2010 NCBI NR (non redundant) 05 Jun 2010 /data/blastdb/05Jun2010/nr
-#nr_15Aug2010 NCBI NR (non redundant) 15 Aug 2010 /data/blastdb/15Aug2010/nr
-#...etc...
+# Alternatively, rather than a "live" mirror of the NCBI databases which
+# are updated automatically, for full reproducibility the Galaxy Team
+# recommend saving date-stamped copies of the databases. In this case
+# your blastdb_p.loc file should include an entry per line for each
+# version you have stored. For example:
 #
-#You can download the NCBI provided protein databases like NR from here:
-#ftp://ftp.ncbi.nlm.nih.gov/blast/db/
+# nr_05Jun2010{tab}NCBI NR (non redundant) 05 Jun 2010{tab}/data/blastdb/05Jun2010/nr
+# nr_15Aug2010{tab}NCBI NR (non redundant) 15 Aug 2010{tab}/data/blastdb/15Aug2010/nr
+# ...etc...
 #
-#See also blastdb.loc which is for any nucleotide BLAST database, and
-#blastdb_d.loc which is for any protein domains databases (like CDD).
+# See also blastdb.loc which is for any nucleotide BLAST database, and
+# blastdb_d.loc which is for any protein domains databases (like CDD).
b
diff -r a51980bc0ffe -r 22a767177ac9 tool_data_table_conf.xml.sample
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_data_table_conf.xml.sample Fri Jan 20 16:00:56 2017 -0500
b
@@ -0,0 +1,6 @@
+<tables>
+    <table name="blastdb_p" comment_char="#" allow_duplicate_entries="False">
+        <columns>value, name, path</columns>
+        <file path="tool-data/blastdb_p.loc" />
+    </table>
+</tables>
b
diff -r a51980bc0ffe -r 22a767177ac9 tools/blast_plus_remote_blastp.xml
--- a/tools/blast_plus_remote_blastp.xml Mon May 04 09:58:57 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
[
b'@@ -1,534 +0,0 @@\n-<tool id="blast_plus_remote_blastp" name="NCBI BLAST+ remote blastp" version="1.0.1">\n-    <description>Search protein database with protein query sequence(s)</description>\n-    <parallelism method="multi" split_inputs="query" split_mode="number_of_parts" split_size="4" shared_inputs="subject" merge_outputs="output1"></parallelism>\n-    <version_command>blastp -version</version_command>\n-    <requirements>\n-        <requirement type="binary">blastp</requirement>\n-        <requirement type="package" version="2.2.29">blast+</requirement>\n-    </requirements>\n-    <command>\n-## The command is a Cheetah template which allows some Python based syntax.\n-## Lines starting hash hash are comments. Galaxy will turn newlines into spaces\n-blastp\n--query "$query"\n-#if $db_opts.db_opts_selector == "db":\n-  -db "${db_opts.database.fields.path}"\n-#elif $db_opts.db_opts_selector == "remote":\n-  -db $db_opts.database\n-  -remote\n-  #set $txids = []\n-  #set $ntxids = []\n-  #for $i, $org in enumerate($db_opts.taxid_repeat):\n-    #if $org.exclude:\n-      #set $ntxids = $ntxids + ["txid" + $org.taxid.__str__]\n-    #else\n-      #set $txids = $txids + ["txid" + $org.taxid.__str__]\n-    #end if\n-  #end for\n-  #if (len($txids) + len($ntxids)) > 0:\n-    #set $entrez_query = \'\'\n-    #if len($txids) > 0:\n-      #set $entrez_query = $entrez_query + \'(\' + \' OR \'.join($txids) + \')\'\n-    #end if\n-    #if len($ntxids) > 0:\n-      #set $entrez_query = $entrez_query + \' NOT (\' + \' OR \'.join($ntxids) + \')\'\n-    #end if\n-    -entrez_query \'$entrez_query\'\n-  #end if\n-#else:\n-  -subject "$db_opts.subject"\n-#end if\n--task $blast_type\n--evalue $evalue_cutoff\n--out blast_output\n-##Set the extended list here so if/when we add things, saved workflows are not affected\n-#if str($fmt_opt.out_format)=="text":\n-  -outfmt "$fmt_opt.outfmt" $fmt_opt.html $fmt_opt.show_gis\n-  #if $fmt_opt.num_descriptions.__str__.strip() != \'\':\n-    -num_descriptions $fmt_opt.num_descriptions\n-  #end if\n-  #if $fmt_opt.num_alignments.__str__.strip() != \'\':\n-    -num_alignments $fmt_opt.num_alignments\n-  #end if\n-#else:\n-  -outfmt "$fmt_opt.outfmt"\n-  #if $fmt_opt.max_target_seqs.__str__.strip() != \'\':\n-    -max_target_seqs $fmt_opt.max_target_seqs\n-  #end if\n-#end if\n-#if $db_opts.db_opts_selector != "remote":\n-  -num_threads 8\n-#end if\n-#if $adv_opts.adv_opts_selector=="advanced":\n-  $adv_opts.filter_query\n-  -matrix $adv_opts.scoring.matrix\n-  $adv_opts.scoring.gap_costs\n-\n-  #if $adv_opts.word_size.__str__.strip() != \'\':\n-    -word_size $adv_opts.word_size\n-  #end if\n-\n-  #if $adv_opts.window_size.__str__.strip() != \'\':\n-    -window_size $adv_opts.window_size\n-  #end if\n-\n-  #if $adv_opts.threshold.__str__.strip() != \'\':\n-    -threshold $adv_opts.threshold\n-  #end if\n-\n-  #if $adv_opts.comp_based_stats.__str__.strip() != \'\':\n-    -comp_based_stats $adv_opts.comp_based_stats\n-  #end if\n-\n-  ##Ungapped disabled for now - see comments below\n-  ##$adv_opts.ungapped\n-  $adv_opts.use_sw_tback\n-  $adv_opts.parse_deflines\n-  ## End of advanced options:\n-#end if\n-    </command>\n-    <inputs>\n-        <param name="query" type="data" format="fasta" label="Protein query sequence(s)"/>\n-        <conditional name="db_opts">\n-            <param name="db_opts_selector" type="select" label="Subject database/sequences">\n-              <option value="db" selected="True">Local BLAST Database</option>\n-              <option value="file">Local FASTA file</option>\n-              <option value="remote">NCBI Remote Database</option>\n-            </param>\n-            <when value="db">\n-                <param name="database" type="select" label="Protein BLAST database">\n-                    <options from_file="blastdb_p.loc">\n-                      <column name="value" index="0"/>\n-                      <column name="name" index="1"/>\n-                      <column name="path" index="2"/>\n-                    </options>\n-                </param>\n-                <param name="subject" type="hidden" v'..b'8100.OPSD_HUMAN\\t\\d+.\\d+\\t\\d+\\t\\d+\\t0\\t\\d+\\t\\d+\\t\\d+\\t\\d+\\t\\S+\\t\\s*\\d+" />\n-                <has_text text="BAB21486.1"/>\n-              </assert_contents>\n-            </output>\n-        </test>\n-    </tests>\n-    <help>\n-\n-.. class:: warningmark\n-\n-**Note**. Database searches may take a substantial amount of time.\n-For large input datasets it is advisable to allow overnight processing.\n-\n------\n-\n-**What it does**\n-\n-Search a *protein database* using a *protein query*,\n-using the NCBI BLAST+ blastp command line tool.\n-\n-The search can be performed using a local database, against a sequence supplied in a fasta file,\n-or the blast can be performed remotely at NCBI.\n-\n-The remote operation allows searches to be targeted at specific organisms.\n-\n------\n-\n-**Output format**\n-\n-Because Galaxy focuses on processing tabular data, the default output of this\n-tool is tabular. The standard BLAST+ tabular output contains 12 columns:\n-\n-====== ========= ============================================\n-Column NCBI name Description\n------- --------- --------------------------------------------\n-     1 qseqid    Query Seq-id (ID of your sequence)\n-     2 sseqid    Subject Seq-id (ID of the database hit)\n-     3 pident    Percentage of identical matches\n-     4 length    Alignment length\n-     5 mismatch  Number of mismatches\n-     6 gapopen   Number of gap openings\n-     7 qstart    Start of alignment in query\n-     8 qend      End of alignment in query\n-     9 sstart    Start of alignment in subject (database hit)\n-    10 send      End of alignment in subject (database hit)\n-    11 evalue    Expectation value (E-value)\n-    12 bitscore  Bit score\n-====== ========= ============================================\n-\n-The BLAST+ tools can optionally output additional columns of information,\n-but this takes longer to calculate. Most (but not all) of these columns are\n-included by selecting the extended tabular output. The extra columns are\n-included *after* the standard 12 columns. This is so that you can write\n-workflow filtering steps that accept either the 12 or 24 column tabular\n-BLAST output.\n-\n-====== ============= ===========================================\n-Column NCBI name     Description\n------- ------------- -------------------------------------------\n-    13 sallseqid     All subject Seq-id(s), separated by a \';\'\n-    14 score         Raw score\n-    15 nident        Number of identical matches\n-    16 positive      Number of positive-scoring matches\n-    17 gaps          Total number of gaps\n-    18 ppos          Percentage of positive-scoring matches\n-    19 qframe        Query frame\n-    20 sframe        Subject frame\n-    21 qseq          Aligned part of query sequence\n-    22 sseq          Aligned part of subject sequence\n-    23 qlen          Query sequence length\n-    24 slen          Subject sequence length\n-====== ============= ===========================================\n-\n-The third option is BLAST XML output, which is designed to be parsed by\n-another program, and is understood by some Galaxy tools.\n-\n-You can also choose several plain text or HTML output formats which are designed to be read by a person (not by another program).\n-The HTML versions use basic webpage formatting and can include links to the hits on the NCBI website.\n-The pairwise output (the default on the NCBI BLAST website) shows each match as a pairwise alignment with the query.\n-The two query anchored outputs show a multiple sequence alignment between the query and all the matches,\n-and differ in how insertions are shown (marked as insertions or with gap characters added to the other sequences).\n-\n--------\n-\n-**References**\n-\n-Altschul et al. Gapped BLAST and PSI-BLAST: a new generation of protein database search programs. 1997. Nucleic Acids Res. 25:3389-3402.\n-\n-Schaffer et al. Improving the accuracy of PSI-BLAST protein database searches with composition-based statistics and other refinements. 2001. Nucleic Acids Res. 29:2994-3005.\n-\n-    </help>\n-</tool>\n'
b
diff -r a51980bc0ffe -r 22a767177ac9 tools/repository_dependencies.xml
--- a/tools/repository_dependencies.xml Mon May 04 09:58:57 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
b
@@ -1,5 +0,0 @@
-<?xml version="1.0"?>
-<repositories>
-  <repository changeset_revision="f66f8ca7b7b9" name="proteomics_datatypes" owner="iracooke" toolshed="https://toolshed.g2.bx.psu.edu" />
-  <repository changeset_revision="de11e1a921c4" name="blast_datatypes" owner="devteam" toolshed="https://toolshed.g2.bx.psu.edu" />
-</repositories>
b
diff -r a51980bc0ffe -r 22a767177ac9 tools/tool_dependencies.xml
--- a/tools/tool_dependencies.xml Mon May 04 09:58:57 2015 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
b
@@ -1,6 +0,0 @@
-<?xml version="1.0"?>
-<tool_dependency>
-    <package name="blast+" version="2.2.29">
-        <repository changeset_revision="a2ec897aac2c" name="package_blast_plus_2_2_29" owner="iuc" toolshed="http://toolshed.g2.bx.psu.edu" />
-    </package>
-</tool_dependency>