Mercurial > repos > devteam > ncbi_blast_plus
comparison tools/ncbi_blast_plus/ncbi_blastdbcmd_wrapper.xml @ 11:4c4a0da938ff draft
Uploaded v0.0.22, now wraps BLAST+ 2.2.28 allowing extended tabular output to include the hit descriptions as column 25.
Supports $GALAXY_SLOTS.
Includes more tests and heavy use of macros.
author | peterjc |
---|---|
date | Thu, 05 Dec 2013 06:55:59 -0500 |
parents | 70e7dcbf6573 |
children | 623f727cdff1 |
comparison
equal
deleted
inserted
replaced
10:70e7dcbf6573 | 11:4c4a0da938ff |
---|---|
1 <tool id="ncbi_blastdbcmd_wrapper" name="NCBI BLAST+ blastdbcmd entry(s)" version="0.0.6"> | 1 <tool id="ncbi_blastdbcmd_wrapper" name="NCBI BLAST+ blastdbcmd entry(s)" version="0.0.22"> |
2 <description>Extract sequence(s) from BLAST database</description> | 2 <description>Extract sequence(s) from BLAST database</description> |
3 <requirements> | 3 <macros> |
4 <requirement type="binary">blastdbcmd</requirement> | 4 <token name="@BINARY@">blastdbcmd</token> |
5 <requirement type="package" version="2.2.26+">blast+</requirement> | 5 <import>ncbi_macros.xml</import> |
6 </requirements> | 6 </macros> |
7 <version_command>blastdbcmd -version</version_command> | 7 <expand macro="requirements" /> |
8 <command> | 8 <command> |
9 ## The command is a Cheetah template which allows some Python based syntax. | 9 ## The command is a Cheetah template which allows some Python based syntax. |
10 ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces | 10 ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces |
11 blastdbcmd -dbtype $db_opts.db_type -db "${db_opts.database.fields.path}" | 11 blastdbcmd -dbtype $db_opts.db_type -db "${db_opts.database.fields.path}" |
12 | 12 |
45 | sed -E 's/^>(lcl\||gnl\|BL_ORD_ID\|[0-9]* )/>/1' > "$seq" | 45 | sed -E 's/^>(lcl\||gnl\|BL_ORD_ID\|[0-9]* )/>/1' > "$seq" |
46 #else: | 46 #else: |
47 | sed 's/>\(lcl|\|gnl|BL_ORD_ID|[0-9]* \)/>/1' > "$seq" | 47 | sed 's/>\(lcl|\|gnl|BL_ORD_ID|[0-9]* \)/>/1' > "$seq" |
48 #end if | 48 #end if |
49 </command> | 49 </command> |
50 <stdio> | 50 <expand macro="stdio" /> |
51 <!-- Anything other than zero is an error --> | |
52 <exit_code range="1:" /> | |
53 <exit_code range=":-1" /> | |
54 <!-- Suspect blastdbcmd sometimes fails to set error level --> | |
55 <regex match="Error:" /> | |
56 <regex match="Exception:" /> | |
57 </stdio> | |
58 <inputs> | 51 <inputs> |
59 <conditional name="db_opts"> | 52 <expand macro="input_conditional_choose_db_type" /> |
60 <param name="db_type" type="select" label="Type of BLAST database"> | |
61 <option value="nucl" selected="True">Nucleotide</option> | |
62 <option value="prot">Protein</option> | |
63 </param> | |
64 <when value="nucl"> | |
65 <param name="database" type="select" label="Nucleotide BLAST database"> | |
66 <options from_file="blastdb.loc"> | |
67 <column name="value" index="0"/> | |
68 <column name="name" index="1"/> | |
69 <column name="path" index="2"/> | |
70 </options> | |
71 </param> | |
72 </when> | |
73 <when value="prot"> | |
74 <param name="database" type="select" label="Protein BLAST database"> | |
75 <options from_file="blastdb_p.loc"> | |
76 <column name="value" index="0"/> | |
77 <column name="name" index="1"/> | |
78 <column name="path" index="2"/> | |
79 </options> | |
80 </param> | |
81 </when> | |
82 </conditional> | |
83 <conditional name="id_opts"> | 53 <conditional name="id_opts"> |
84 <param name="id_type" type="select" label="Type of identifier list"> | 54 <param name="id_type" type="select" label="Type of identifier list"> |
85 <option value="file">From file</option> | 55 <option value="file">From file</option> |
86 <option value="prompt">User entered</option> | 56 <option value="prompt">User entered</option> |
87 </param> | 57 </param> |
130 **References** | 100 **References** |
131 | 101 |
132 If you use this Galaxy tool in work leading to a scientific publication please | 102 If you use this Galaxy tool in work leading to a scientific publication please |
133 cite the following papers: | 103 cite the following papers: |
134 | 104 |
135 Peter J.A. Cock, Björn A. Grüning, Konrad Paszkiewicz and Leighton Pritchard (2013). | 105 @REFERENCES@ |
136 Galaxy tools and workflows for sequence analysis with applications | |
137 in molecular plant pathology. PeerJ 1:e167 | |
138 http://dx.doi.org/10.7717/peerj.167 | |
139 | |
140 Christiam Camacho et al. (2009). | |
141 BLAST+: architecture and applications. | |
142 BMC Bioinformatics. 15;10:421. | |
143 http://dx.doi.org/10.1186/1471-2105-10-421 | |
144 | |
145 This wrapper is available to install into other Galaxy Instances via the Galaxy | |
146 Tool Shed at http://toolshed.g2.bx.psu.edu/view/devteam/ncbi_blast_plus | |
147 </help> | 106 </help> |
148 </tool> | 107 </tool> |