comparison tools/ncbi_blast_plus/ncbi_tblastx_wrapper.xml @ 2:45ba7c750bc8 draft

This update should have no functional effect. Renamed files (since xml.py will be inaccurate once BLAST databases are added in future update).
author peterjc
date Thu, 20 Sep 2012 10:12:43 -0400
parents
children
comparison
equal deleted inserted replaced
1:10dce68b584b 2:45ba7c750bc8
1 <tool id="ncbi_tblastx_wrapper" name="NCBI BLAST+ tblastx" version="0.0.13">
2 <description>Search translated nucleotide database with translated nucleotide query sequence(s)</description>
3 <!-- If job splitting is enabled, break up the query file into parts -->
4 <parallelism method="multi" split_inputs="query" split_mode="to_size" split_size="1000" shared_inputs="subject" merge_outputs="output1"></parallelism>
5 <version_command>tblastx -version</version_command>
6 <command>
7 ## The command is a Cheetah template which allows some Python based syntax.
8 ## Lines starting hash hash are comments. Galaxy will turn newlines into spaces
9 tblastx
10 -query "$query"
11 #if $db_opts.db_opts_selector == "db":
12 -db "${db_opts.database.fields.path}"
13 #else:
14 -subject "$db_opts.subject"
15 #end if
16 -query_gencode $query_gencode
17 -evalue $evalue_cutoff
18 -out $output1
19 ##Set the extended list here so if/when we add things, saved workflows are not affected
20 #if str($out_format)=="ext":
21 -outfmt "6 std sallseqid score nident positive gaps ppos qframe sframe qseq sseq qlen slen"
22 #else:
23 -outfmt $out_format
24 #end if
25 -num_threads 8
26 #if $adv_opts.adv_opts_selector=="advanced":
27 -db_gencode $adv_opts.db_gencode
28 $adv_opts.filter_query
29 $adv_opts.strand
30 -matrix $adv_opts.matrix
31 ## Need int(str(...)) because $adv_opts.max_hits is an InputValueWrapper object not a string
32 ## Note -max_target_seqs overrides -num_descriptions and -num_alignments
33 #if (str($adv_opts.max_hits) and int(str($adv_opts.max_hits)) > 0):
34 -max_target_seqs $adv_opts.max_hits
35 #end if
36 #if (str($adv_opts.word_size) and int(str($adv_opts.word_size)) > 0):
37 -word_size $adv_opts.word_size
38 #end if
39 $adv_opts.parse_deflines
40 ## End of advanced options:
41 #end if
42 </command>
43 <stdio>
44 <exit_code range="1:" />
45 <exit_code range="://0" />
46 </stdio>
47 <inputs>
48 <param name="query" type="data" format="fasta" label="Nucleotide query sequence(s)"/>
49 <conditional name="db_opts">
50 <param name="db_opts_selector" type="select" label="Subject database/sequences">
51 <option value="db" selected="True">BLAST Database</option>
52 <option value="file">FASTA file (pairwise e-values)</option>
53 </param>
54 <when value="db">
55 <param name="database" type="select" label="Nucleotide BLAST database">
56 <options from_file="blastdb.loc">
57 <column name="value" index="0"/>
58 <column name="name" index="1"/>
59 <column name="path" index="2"/>
60 </options>
61 </param>
62 <param name="subject" type="hidden" value="" />
63 </when>
64 <when value="file">
65 <param name="database" type="hidden" value="" />
66 <param name="subject" type="data" format="fasta" label="Nucleotide FASTA file to use as database"/>
67 </when>
68 </conditional>
69 <param name="query_gencode" type="select" label="Query genetic code">
70 <!-- See http://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi for details -->
71 <option value="1" select="True">1. Standard</option>
72 <option value="2">2. Vertebrate Mitochondrial</option>
73 <option value="3">3. Yeast Mitochondrial</option>
74 <option value="4">4. Mold, Protozoan, and Coelenterate Mitochondrial Code and the Mycoplasma/Spiroplasma Code</option>
75 <option value="5">5. Invertebrate Mitochondrial</option>
76 <option value="6">6. Ciliate, Dasycladacean and Hexamita Nuclear Code</option>
77 <option value="9">9. Echinoderm Mitochondrial</option>
78 <option value="10">10. Euplotid Nuclear</option>
79 <option value="11">11. Bacteria and Archaea</option>
80 <option value="12">12. Alternative Yeast Nuclear</option>
81 <option value="13">13. Ascidian Mitochondrial</option>
82 <option value="14">14. Flatworm Mitochondrial</option>
83 <option value="15">15. Blepharisma Macronuclear</option>
84 <option value="16">16. Chlorophycean Mitochondrial Code</option>
85 <option value="21">21. Trematode Mitochondrial Code</option>
86 <option value="22">22. Scenedesmus obliquus mitochondrial Code</option>
87 <option value="23">23. Thraustochytrium Mitochondrial Code</option>
88 <option value="24">24. Pterobranchia mitochondrial code</option>
89 </param>
90 <param name="evalue_cutoff" type="float" size="15" value="0.001" label="Set expectation value cutoff" />
91 <param name="out_format" type="select" label="Output format">
92 <option value="6" selected="True">Tabular (standard 12 columns)</option>
93 <option value="ext">Tabular (extended 24 columns)</option>
94 <option value="5">BLAST XML</option>
95 <option value="0">Pairwise text</option>
96 <option value="0 -html">Pairwise HTML</option>
97 <option value="2">Query-anchored text</option>
98 <option value="2 -html">Query-anchored HTML</option>
99 <option value="4">Flat query-anchored text</option>
100 <option value="4 -html">Flat query-anchored HTML</option>
101 <!--
102 <option value="-outfmt 11">BLAST archive format (ASN.1)</option>
103 -->
104 </param>
105 <conditional name="adv_opts">
106 <param name="adv_opts_selector" type="select" label="Advanced Options">
107 <option value="basic" selected="True">Hide Advanced Options</option>
108 <option value="advanced">Show Advanced Options</option>
109 </param>
110 <when value="basic" />
111 <when value="advanced">
112 <param name="db_gencode" type="select" label="Database/subject genetic code">
113 <!-- See http://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi for details -->
114 <option value="1" select="True">1. Standard</option>
115 <option value="2">2. Vertebrate Mitochondrial</option>
116 <option value="3">3. Yeast Mitochondrial</option>
117 <option value="4">4. Mold, Protozoan, and Coelenterate Mitochondrial Code and the Mycoplasma/Spiroplasma Code</option>
118 <option value="5">5. Invertebrate Mitochondrial</option>
119 <option value="6">6. Ciliate, Dasycladacean and Hexamita Nuclear Code</option>
120 <option value="9">9. Echinoderm Mitochondrial</option>
121 <option value="10">10. Euplotid Nuclear</option>
122 <option value="11">11. Bacteria and Archaea</option>
123 <option value="12">12. Alternative Yeast Nuclear</option>
124 <option value="13">13. Ascidian Mitochondrial</option>
125 <option value="14">14. Flatworm Mitochondrial</option>
126 <option value="15">15. Blepharisma Macronuclear</option>
127 <option value="16">16. Chlorophycean Mitochondrial Code</option>
128 <option value="21">21. Trematode Mitochondrial Code</option>
129 <option value="22">22. Scenedesmus obliquus mitochondrial Code</option>
130 <option value="23">23. Thraustochytrium Mitochondrial Code</option>
131 <option value="24">24. Pterobranchia mitochondrial code</option>
132 </param>
133 <!-- Could use a select (yes, no, other) where other allows setting 'window locut hicut' -->
134 <param name="filter_query" type="boolean" label="Filter out low complexity regions (with SEG)" truevalue="-seg yes" falsevalue="-seg no" checked="true" />
135 <param name="strand" type="select" label="Query strand(s) to search against database/subject">
136 <option value="-strand both">Both</option>
137 <option value="-strand plus">Plus (forward)</option>
138 <option value="-strand minus">Minus (reverse complement)</option>
139 </param>
140 <param name="matrix" type="select" label="Scoring matrix">
141 <option value="BLOSUM90">BLOSUM90</option>
142 <option value="BLOSUM80">BLOSUM80</option>
143 <option value="BLOSUM62" selected="true">BLOSUM62 (default)</option>
144 <option value="BLOSUM50">BLOSUM50</option>
145 <option value="BLOSUM45">BLOSUM45</option>
146 <option value="PAM250">PAM250</option>
147 <option value="PAM70">PAM70</option>
148 <option value="PAM30">PAM30</option>
149 </param>
150 <!-- Why doesn't optional override a validator? I want to accept an empty string OR a non-negative integer -->
151 <param name="max_hits" type="integer" value="0" label="Maximum hits to show" help="Use zero for default limits">
152 <validator type="in_range" min="0" />
153 </param>
154 <!-- I'd like word_size to be optional, with minimum 2 for tblastx -->
155 <param name="word_size" type="integer" value="0" label="Word size for wordfinder algorithm" help="Use zero for default, otherwise minimum 2.">
156 <validator type="in_range" min="0" />
157 </param>
158 <param name="parse_deflines" type="boolean" label="Should the query and subject defline(s) be parsed?" truevalue="-parse_deflines" falsevalue="" checked="false" help="This affects the formatting of the query/subject ID strings"/>
159 </when>
160 </conditional>
161 </inputs>
162 <outputs>
163 <data name="output1" format="tabular" label="tblastx on ${db_opts.db_opts_selector}">
164 <change_format>
165 <when input="out_format" value="0" format="txt"/>
166 <when input="out_format" value="0 -html" format="html"/>
167 <when input="out_format" value="2" format="txt"/>
168 <when input="out_format" value="2 -html" format="html"/>
169 <when input="out_format" value="4" format="txt"/>
170 <when input="out_format" value="4 -html" format="html"/>
171 <when input="out_format" value="5" format="blastxml"/>
172 </change_format>
173 </data>
174 </outputs>
175 <requirements>
176 <requirement type="binary">tblastx</requirement>
177 </requirements>
178 <help>
179
180 .. class:: warningmark
181
182 **Note**. Database searches may take a substantial amount of time.
183 For large input datasets it is advisable to allow overnight processing.
184
185 -----
186
187 **What it does**
188
189 Search a *translated nucleotide database* using a *protein query*,
190 using the NCBI BLAST+ tblastx command line tool.
191
192 -----
193
194 **Output format**
195
196 Because Galaxy focuses on processing tabular data, the default output of this
197 tool is tabular. The standard BLAST+ tabular output contains 12 columns:
198
199 ====== ========= ============================================
200 Column NCBI name Description
201 ------ --------- --------------------------------------------
202 1 qseqid Query Seq-id (ID of your sequence)
203 2 sseqid Subject Seq-id (ID of the database hit)
204 3 pident Percentage of identical matches
205 4 length Alignment length
206 5 mismatch Number of mismatches
207 6 gapopen Number of gap openings
208 7 qstart Start of alignment in query
209 8 qend End of alignment in query
210 9 sstart Start of alignment in subject (database hit)
211 10 send End of alignment in subject (database hit)
212 11 evalue Expectation value (E-value)
213 12 bitscore Bit score
214 ====== ========= ============================================
215
216 The BLAST+ tools can optionally output additional columns of information,
217 but this takes longer to calculate. Most (but not all) of these columns are
218 included by selecting the extended tabular output. The extra columns are
219 included *after* the standard 12 columns. This is so that you can write
220 workflow filtering steps that accept either the 12 or 24 column tabular
221 BLAST output.
222
223 ====== ============= ===========================================
224 Column NCBI name Description
225 ------ ------------- -------------------------------------------
226 13 sallseqid All subject Seq-id(s), separated by a ';'
227 14 score Raw score
228 15 nident Number of identical matches
229 16 positive Number of positive-scoring matches
230 17 gaps Total number of gaps
231 18 ppos Percentage of positive-scoring matches
232 19 qframe Query frame
233 20 sframe Subject frame
234 21 qseq Aligned part of query sequence
235 22 sseq Aligned part of subject sequence
236 23 qlen Query sequence length
237 24 slen Subject sequence length
238 ====== ============= ===========================================
239
240 The third option is BLAST XML output, which is designed to be parsed by
241 another program, and is understood by some Galaxy tools.
242
243 You can also choose several plain text or HTML output formats which are designed to be read by a person (not by another program).
244 The HTML versions use basic webpage formatting and can include links to the hits on the NCBI website.
245 The pairwise output (the default on the NCBI BLAST website) shows each match as a pairwise alignment with the query.
246 The two query anchored outputs show a multiple sequence alignment between the query and all the matches,
247 and differ in how insertions are shown (marked as insertions or with gap characters added to the other sequences).
248
249 -------
250
251 **References**
252
253 Altschul et al. Gapped BLAST and PSI-BLAST: a new generation of protein database search programs. 1997. Nucleic Acids Res. 25:3389-3402.
254
255 </help>
256 </tool>