root/galaxy-central/tools/ncbi_blast_plus/ncbi_blastx_wrapper.xml

リビジョン 2, 8.2 KB (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
1<tool id="ncbi_blastx_wrapper" name="NCBI BLAST+ blastx" version="0.0.1">
2    <description>Search protein database with translated nucleotide query sequence(s)</description>
3    <command>
4## The command is a Cheetah template which allows some Python based syntax.
5## Lines starting hash hash are comments. Galaxy will turn newlines into spaces
6blastx
7-query "$query"
8#if $db_opts.db_opts_selector == "db":
9  -db "$db_opts.database"
10#else:
11  -subject "$db_opts.subject"
12#end if
13-evalue $evalue_cutoff
14$adv_opts.filter_query
15$adv_opts.strand
16$adv_opts.matrix
17-out $output1
18$out_format
19-num_threads 8
20## Need int(str(...)) because $adv_opts.max_hits is an InputValueWrapper object not a string
21## Note -max_target_seqs overrides -num_descriptions and -num_alignments
22#if (str($adv_opts.max_hits) and int(str($adv_opts.max_hits)) > 0):
23-max_target_seqs $adv_opts.max_hits
24#end if
25#if (str($adv_opts.word_size) and int(str($adv_opts.word_size)) > 0):
26-word_size $adv_opts.word_size
27#end if
28$adv_opts.ungapped
29    </command>
30    <inputs>
31        <param name="query" type="data" format="fasta" label="Nucleotide query sequence(s)"/>
32        <conditional name="db_opts">
33            <param name="db_opts_selector" type="select" label="Subject database/sequences">
34              <option value="db" selected="True">BLAST Database</option>
35              <option value="file">FASTA file</option>
36            </param>
37            <when value="db">
38                <param name="database" type="select" label="Protein BLAST database">
39                    <options from_file="blastdb_p.loc">
40                      <column name="name" index="0"/>
41                      <column name="value" index="1"/>
42                    </options>
43                </param>
44                <param name="subject" type="hidden" value="" />
45            </when>
46            <when value="file">
47                <param name="database" type="hidden" value="" />
48                <param name="subject" type="data" format="fasta" label="Protein FASTA file to use as database"/>
49            </when>
50        </conditional>
51        <param name="evalue_cutoff" type="float" size="15" value="0.001" label="set expectation value cutoff" />
52        <param name="out_format" type="select" label="Output format">
53            <option value="-outfmt 6" selected="True">Tabular</option>
54            <option value="-outfmt 5">BLAST XML</option>
55            <option value="-outfmt 0">Pairwise text</option>
56            <option value="-outfmt 0 -html">Pairwise HTML</option>
57            <option value="-outfmt 2">Query-anchored text</option>
58            <option value="-outfmt 2 -html">Query-anchored HTML</option>
59            <option value="-outfmt 4">Flat query-anchored text</option>
60            <option value="-outfmt 4 -html">Flat query-anchored HTML</option>
61            <!--
62            <option value="-outfmt 11">BLAST archive format (ASN.1)</option>
63            -->
64        </param>
65        <conditional name="adv_opts">
66            <param name="adv_opts_selector" type="select" label="Advanced Options">
67              <option value="basic" selected="True">Hide Advanced Options</option>
68              <option value="advanced">Show Advanced Options</option>
69            </param>
70            <when value="basic">
71                <param name="filter_query" type="hidden" value="" />
72                <param name="strand" type="hidden" value="" />
73                <param name="matrix" type="hidden" value="" />
74                <param name="max_hits" type="hidden" value="" />
75                <param name="word_size" type="hidden" value="" />
76                <param name="ungapped" type="hidden" value="" />
77            </when>
78            <when value="advanced">
79                <!-- Could use a select (yes, no, other) where other allows setting 'window locut hicut' -->
80                <param name="filter_query" type="boolean" label="Filter out low complexity regions (with SEG)" truevalue="-seg yes" falsevalue="-seg no" checked="true" />
81                <param name="strand" type="select" label="Query strand(s) to search against database/subject">
82                    <option value="-strand both">Both</option>
83                    <option value="-strand plus">Plus (forward)</option>
84                    <option value="-strand minus">Minus (reverse complement)</option>
85                </param>
86                <param name="matrix" type="select" label="Scoring matrix">
87                    <option value="-matrix BLOSUM90">BLOSUM90</option>
88                    <option value="-matrix BLOSUM80">BLOSUM80</option>
89                    <option value="-matrix BLOSUM62" selected="true">BLOSUM62 (default)</option>
90                    <option value="-matrix BLOSUM50">BLOSUM50</option>
91                    <option value="-matrix BLOSUM45">BLOSUM45</option>
92                    <option value="-matrix PAM250">PAM250</option>
93                    <option value="-matrix PAM70">PAM70</option>
94                    <option value="-matrix PAM30">PAM30</option>
95                </param>
96                <!-- Why doesn't optional override a validator? I want to accept an empty string OR a non-negative integer -->
97                <param name="max_hits" type="integer" value="0" label="Maximum hits to show" help="Use zero for default limits">
98                    <validator type="in_range" min="0" />
99                </param>
100                <!-- I'd like word_size to be optional, with minimum 2 for blastx -->
101                <param name="word_size" type="integer" value="0" label="Word size for wordfinder algorithm" help="Use zero for default, otherwise minimum 2.">
102                    <validator type="in_range" min="0" />
103                </param>
104                <param name="ungapped" type="boolean" label="Perform ungapped alignment only?" truevalue="-ungapped" falsevalue="" checked="false" />
105            </when>
106        </conditional>
107    </inputs>
108    <outputs>
109        <data name="output1" format="tabular" label="blastx on ${db_opts.db_opts_selector}">
110            <change_format>
111                <when input="out_format" value="-outfmt 0" format="txt"/>
112                <when input="out_format" value="-outfmt 0 -html" format="html"/>
113                <when input="out_format" value="-outfmt 2" format="txt"/>
114                <when input="out_format" value="-outfmt 2 -html" format="html"/>
115                <when input="out_format" value="-outfmt 4" format="txt"/>
116                <when input="out_format" value="-outfmt 4 -html" format="html"/>
117                <when input="out_format" value="-outfmt 5" format="blastxml"/>
118            </change_format>
119        </data>
120    </outputs>
121    <requirements>
122        <requirement type="binary">blastn</requirement>
123    </requirements>
124    <tests>
125    </tests>
126    <help>
127   
128.. class:: warningmark
129
130**Note**. Database searches may take substantial amount of time.
131For large input datasets it is advisable to allow overnight processing. 
132
133-----
134
135**What it does**
136
137Search a *protein database* using a *translated nucleotide query*,
138using the NCBI BLAST+ blastx command line tool.
139
140-----
141
142**Output format**
143
144Because Galaxy focuses on processing tabular data, the default output of this tool is tabular. This contains 12 columns:
145
1461. Id of your sequence
1472. GI of the database hit
1483. % identity
1494. Alignment length
1505. # mismatches
1516. # gaps
1527. Start position in your sequence
1538. End position in your sequence
1549. Start position in database hit
15510. End position in database hit
15611. E-value
15712. Bit score
158
159The second option is BLAST XML output, which is designed to be parsed by another program, and is understood by other Galaxy tools.
160
161You can also choose several plain text or HTML output formats which are designed to be read by a person (not by another program).
162The HTML versions use basic webpage formatting and can include links to the hits on the NCBI website.
163The pairwise output (the default on the NCBI BLAST website) shows each match as a pairwise alignment with the query.
164The two query anchored outputs show a multiple sequence alignment between the query and all the matches,
165and differ in how insertions are shown (marked as insertions or with gap characters added to the other sequences).
166
167-------
168
169**References**
170
171Altschul et al. Gapped BLAST and PSI-BLAST: a new generation of protein database search programs. 1997. Nucleic Acids Res. 25:3389-3402.
172
173    </help>
174</tool>
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。