comparison ncbi_tblastx_wrapper.xml @ 0:d375502056f1 draft

Uploaded
author devteam
date Fri, 17 Aug 2012 09:11:43 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d375502056f1
1 <tool id="ncbi_tblastx_wrapper" name="NCBI BLAST+ tblastx" version="0.0.11">
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 four -->
4 <parallelism method="multi" split_inputs="query" split_mode="number_of_parts" split_size="4" shared_inputs="subject" merge_outputs="output1"></parallelism>
5 <version_command>tblastx -version</version_command>
6 <command interpreter="python">hide_stderr.py
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 -evalue $evalue_cutoff
17 -out $output1
18 ##Set the extended list here so if/when we add things, saved workflows are not affected
19 #if str($out_format)=="ext":
20 -outfmt "6 std sallseqid score nident positive gaps ppos qframe sframe qseq sseq qlen slen"
21 #else:
22 -outfmt $out_format
23 #end if
24 -num_threads 8
25 #if $adv_opts.adv_opts_selector=="advanced":
26 $adv_opts.filter_query
27 $adv_opts.strand
28 -matrix $adv_opts.matrix
29 ## Need int(str(...)) because $adv_opts.max_hits is an InputValueWrapper object not a string
30 ## Note -max_target_seqs overrides -num_descriptions and -num_alignments
31 #if (str($adv_opts.max_hits) and int(str($adv_opts.max_hits)) > 0):
32 -max_target_seqs $adv_opts.max_hits
33 #end if
34 #if (str($adv_opts.word_size) and int(str($adv_opts.word_size)) > 0):
35 -word_size $adv_opts.word_size
36 #end if
37 $adv_opts.parse_deflines
38 ## End of advanced options:
39 #end if
40 </command>
41 <inputs>
42 <param name="query" type="data" format="fasta" label="Nucleotide query sequence(s)"/>
43 <conditional name="db_opts">
44 <param name="db_opts_selector" type="select" label="Subject database/sequences">
45 <option value="db" selected="True">BLAST Database</option>
46 <option value="file">FASTA file</option>
47 </param>
48 <when value="db">
49 <param name="database" type="select" label="Nucleotide BLAST database">
50 <options from_file="blastdb.loc">
51 <column name="value" index="0"/>
52 <column name="name" index="1"/>
53 <column name="path" index="2"/>
54 </options>
55 </param>
56 <param name="subject" type="hidden" value="" />
57 </when>
58 <when value="file">
59 <param name="database" type="hidden" value="" />
60 <param name="subject" type="data" format="fasta" label="Nucleotide FASTA file to use as database"/>
61 </when>
62 </conditional>
63 <param name="evalue_cutoff" type="float" size="15" value="0.001" label="Set expectation value cutoff" />
64 <param name="out_format" type="select" label="Output format">
65 <option value="6" selected="True">Tabular (standard 12 columns)</option>
66 <option value="ext">Tabular (extended 24 columns)</option>
67 <option value="5">BLAST XML</option>
68 <option value="0">Pairwise text</option>
69 <option value="0 -html">Pairwise HTML</option>
70 <option value="2">Query-anchored text</option>
71 <option value="2 -html">Query-anchored HTML</option>
72 <option value="4">Flat query-anchored text</option>
73 <option value="4 -html">Flat query-anchored HTML</option>
74 <!--
75 <option value="-outfmt 11">BLAST archive format (ASN.1)</option>
76 -->
77 </param>
78 <conditional name="adv_opts">
79 <param name="adv_opts_selector" type="select" label="Advanced Options">
80 <option value="basic" selected="True">Hide Advanced Options</option>
81 <option value="advanced">Show Advanced Options</option>
82 </param>
83 <when value="basic" />
84 <when value="advanced">
85 <!-- Could use a select (yes, no, other) where other allows setting 'window locut hicut' -->
86 <param name="filter_query" type="boolean" label="Filter out low complexity regions (with SEG)" truevalue="-seg yes" falsevalue="-seg no" checked="true" />
87 <param name="strand" type="select" label="Query strand(s) to search against database/subject">
88 <option value="-strand both">Both</option>
89 <option value="-strand plus">Plus (forward)</option>
90 <option value="-strand minus">Minus (reverse complement)</option>
91 </param>
92 <param name="matrix" type="select" label="Scoring matrix">
93 <option value="BLOSUM90">BLOSUM90</option>
94 <option value="BLOSUM80">BLOSUM80</option>
95 <option value="BLOSUM62" selected="true">BLOSUM62 (default)</option>
96 <option value="BLOSUM50">BLOSUM50</option>
97 <option value="BLOSUM45">BLOSUM45</option>
98 <option value="PAM250">PAM250</option>
99 <option value="PAM70">PAM70</option>
100 <option value="PAM30">PAM30</option>
101 </param>
102 <!-- Why doesn't optional override a validator? I want to accept an empty string OR a non-negative integer -->
103 <param name="max_hits" type="integer" value="0" label="Maximum hits to show" help="Use zero for default limits">
104 <validator type="in_range" min="0" />
105 </param>
106 <!-- I'd like word_size to be optional, with minimum 2 for tblastx -->
107 <param name="word_size" type="integer" value="0" label="Word size for wordfinder algorithm" help="Use zero for default, otherwise minimum 2.">
108 <validator type="in_range" min="0" />
109 </param>
110 <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"/>
111 </when>
112 </conditional>
113 </inputs>
114 <outputs>
115 <data name="output1" format="tabular" label="tblastx on ${db_opts.db_opts_selector}">
116 <change_format>
117 <when input="out_format" value="0" format="txt"/>
118 <when input="out_format" value="0 -html" format="html"/>
119 <when input="out_format" value="2" format="txt"/>
120 <when input="out_format" value="2 -html" format="html"/>
121 <when input="out_format" value="4" format="txt"/>
122 <when input="out_format" value="4 -html" format="html"/>
123 <when input="out_format" value="5" format="blastxml"/>
124 </change_format>
125 </data>
126 </outputs>
127 <requirements>
128 <requirement type="package" version="2.2.26+">blast+</requirement>
129 </requirements>
130 <help>
131
132 .. class:: warningmark
133
134 **Note**. Database searches may take a substantial amount of time.
135 For large input datasets it is advisable to allow overnight processing.
136
137 -----
138
139 **What it does**
140
141 Search a *translated nucleotide database* using a *protein query*,
142 using the NCBI BLAST+ tblastx command line tool.
143
144 -----
145
146 **Output format**
147
148 Because Galaxy focuses on processing tabular data, the default output of this
149 tool is tabular. The standard BLAST+ tabular output contains 12 columns:
150
151 ====== ========= ============================================
152 Column NCBI name Description
153 ------ --------- --------------------------------------------
154 1 qseqid Query Seq-id (ID of your sequence)
155 2 sseqid Subject Seq-id (ID of the database hit)
156 3 pident Percentage of identical matches
157 4 length Alignment length
158 5 mismatch Number of mismatches
159 6 gapopen Number of gap openings
160 7 qstart Start of alignment in query
161 8 qend End of alignment in query
162 9 sstart Start of alignment in subject (database hit)
163 10 send End of alignment in subject (database hit)
164 11 evalue Expectation value (E-value)
165 12 bitscore Bit score
166 ====== ========= ============================================
167
168 The BLAST+ tools can optionally output additional columns of information,
169 but this takes longer to calculate. Most (but not all) of these columns are
170 included by selecting the extended tabular output. The extra columns are
171 included *after* the standard 12 columns. This is so that you can write
172 workflow filtering steps that accept either the 12 or 24 column tabular
173 BLAST output.
174
175 ====== ============= ===========================================
176 Column NCBI name Description
177 ------ ------------- -------------------------------------------
178 13 sallseqid All subject Seq-id(s), separated by a ';'
179 14 score Raw score
180 15 nident Number of identical matches
181 16 positive Number of positive-scoring matches
182 17 gaps Total number of gaps
183 18 ppos Percentage of positive-scoring matches
184 19 qframe Query frame
185 20 sframe Subject frame
186 21 qseq Aligned part of query sequence
187 22 sseq Aligned part of subject sequence
188 23 qlen Query sequence length
189 24 slen Subject sequence length
190 ====== ============= ===========================================
191
192 The third option is BLAST XML output, which is designed to be parsed by
193 another program, and is understood by some Galaxy tools.
194
195 You can also choose several plain text or HTML output formats which are designed to be read by a person (not by another program).
196 The HTML versions use basic webpage formatting and can include links to the hits on the NCBI website.
197 The pairwise output (the default on the NCBI BLAST website) shows each match as a pairwise alignment with the query.
198 The two query anchored outputs show a multiple sequence alignment between the query and all the matches,
199 and differ in how insertions are shown (marked as insertions or with gap characters added to the other sequences).
200
201 -------
202
203 **References**
204
205 Altschul et al. Gapped BLAST and PSI-BLAST: a new generation of protein database search programs. 1997. Nucleic Acids Res. 25:3389-3402.
206
207 </help>
208 </tool>