0
|
1 <tool id="bg_diamond" name="Diamond" version="0.1.6.0">
|
|
2 <description>alignment tool for short sequences against a protein database</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="0.6.13">diamond</requirement>
|
|
5 </requirements>
|
|
6 <command>
|
|
7 <![CDATA[
|
|
8
|
|
9 #if $ref_db_source.db_source == "history":
|
|
10 ln -s $ref_db_source.reference_database ./database.dmnd
|
|
11 #else:
|
|
12 ln -s ${ref_db_source.index.fields.db_path} ./database.dmnd
|
|
13 #end if
|
|
14
|
|
15 &&
|
|
16
|
|
17 diamond
|
|
18 $method.method_select
|
|
19 --threads "\${GALAXY_SLOTS:-12}"
|
|
20 --db ./database
|
|
21 --query $query
|
|
22 --out $blast_output
|
|
23 ##--sam $sam_output
|
|
24 --compress 0
|
|
25 --tmpdir ./
|
|
26
|
|
27 #if str($hit_filter.hit_filter_select) == 'max':
|
|
28 --max-target-seqs $hit_filter.max
|
|
29 #else:
|
|
30 --top $hit_filter.percentage
|
|
31 #end if
|
|
32
|
|
33 #if str($filter_score.filter_score_select) == 'evalue':
|
|
34 --evalue $filter_score.evalue
|
|
35 #else:
|
|
36 --evalue $filter_score.bitscore
|
|
37 #end if
|
|
38
|
|
39 --id $identity
|
|
40 $sensitive
|
|
41 --gapopen $method.gapopen
|
|
42 --gapextend $method.gapextend
|
|
43 --matrix $matrix
|
|
44 $seg
|
|
45 $salltitles
|
|
46
|
|
47 ]]>
|
|
48 </command>
|
|
49 <inputs>
|
|
50
|
|
51 <param name="query" type="data" format="fasta" label="Input query file in FASTA format" />
|
|
52
|
|
53 <conditional name="ref_db_source">
|
|
54 <param name="db_source" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options">
|
|
55 <option value="indexed">Use a built-in index</option>
|
|
56 <option value="history">Use one from the history</option>
|
|
57 </param>
|
|
58 <when value="indexed">
|
|
59 <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact your Galaxy admin">
|
1
|
60 <options from_data_table="diamond_database">
|
0
|
61 <column name="value" index="0"/>
|
|
62 <column name="name" index="2"/>
|
|
63 <column name="db_path" index="3"/>
|
|
64 <filter type="sort_by" column="2"/>
|
|
65 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
66 </options>
|
|
67 </param>
|
|
68 </when> <!-- build-in -->
|
|
69 <when value="history">
|
4
|
70 <param name="reference_database" type="data" format="diamond_database" label="Select the reference database" />
|
0
|
71 </when> <!-- history -->
|
|
72 </conditional>
|
|
73
|
2
|
74 <conditional name="method">
|
|
75 <param name="method_select" type="select" label="What do you want to align" help="(--blastp/--blastx)">
|
|
76 <option value="blastp">Align amino acid query sequences (blastp)</option>
|
|
77 <option value="blastx">Align DNA query sequences (blastx)</option>
|
|
78 </param>
|
|
79 <when value="blastp">
|
|
80 <param name="gapopen" type="integer" value="11" label="Gap open panalty" help="(--gapopen)" />
|
|
81 <param name="gapextend" type="integer" value="1" label="Gap extend panalty" help="(--gapextend)" />
|
|
82 </when>
|
|
83 <when value="blastx">
|
|
84 <param name="gapopen" type="integer" value="-1" label="Gap open panalty" help="(--gapopen)" />
|
|
85 <param name="gapextend" type="integer" value="-1" label="Gap extend panalty" help="(--gapextend)" />
|
|
86 </when>
|
|
87 </conditional>
|
|
88
|
0
|
89 <param name="matrix" type="select" label="Select scoring matrix" help="(--matrix)">
|
|
90 <option value="BLOSUM45">BLOSUM45</option>
|
|
91 <option value="BLOSUM50">BLOSUM50</option>
|
|
92 <option value="BLOSUM62" selected="True">BLOSUM62</option>
|
|
93 <option value="BLOSUM80">BLOSUM80</option>
|
|
94 <option value="BLOSUM90">BLOSUM90</option>
|
|
95 <option value="PAM250">PAM250</option>
|
|
96 <option value="PAM70">PAM70</option>
|
|
97 <option value="PAM30">PAM30</option>
|
|
98 </param>
|
|
99
|
|
100 <conditional name="filter_score">
|
|
101 <param name="filter_score_select" type="select" label="Filter by score" help="(--evalue/--min-score)">
|
|
102 <option value="evalue">Maximum e-value to report alignments</option>
|
|
103 <option value="bit">Minimum bit score to report alignments</option>
|
|
104 </param>
|
|
105 <when value="evalue">
|
|
106 <param name="evalue" type="float" value="0.001" label="Filter by evalue" help="(--evalue)" />
|
|
107 </when>
|
|
108 <when value="bit">
|
|
109 <param name="bitscore" type="integer" value="0" label="Filter by bit score" help="(--min-score)" />
|
|
110 </when>
|
|
111 </conditional>
|
|
112
|
|
113 <conditional name="hit_filter">
|
|
114 <param name="hit_filter_select" type="select" label="Restrict number of hits by" help="(--max-target-seqs/--top)">
|
|
115 <option value="max">Maximum number of target sequences</option>
|
|
116 <option value="percentage">Percentage of top alignment score</option>
|
|
117 </param>
|
|
118 <when value="max">
|
|
119 <param name="max" type="integer" value="25" label="How many hits?" help="(--max-target-seqs)" />
|
|
120 </when>
|
|
121 <when value="percentage">
|
|
122 <param name="percentage" type="integer" value="0" label="How many percentage" help="(--top)" />
|
|
123 </when>
|
|
124 </conditional>
|
|
125
|
|
126 <param name="identity" type="integer" value="0" label="minimum identity to report an alignment" help="in percentage (--id)" />
|
|
127 <param name="salltitles" type="boolean" truevalue="--salltitles" falsevalue="" checked="false"
|
|
128 label="Print subject titles into the blast tabular format" help="(--salltitles)"/>
|
|
129 <param name="seg" type="boolean" truevalue="--seg yes" falsevalue="--seg no" checked="true"
|
|
130 label="Enable SEG masking of queries" help="(--seg)"/>
|
|
131 <param name="sensitive" type="boolean" truevalue="--sensitive" falsevalue="" checked="false"
|
|
132 label="Enable sensitive mode" help="(--sensitive)"/>
|
|
133 </inputs>
|
|
134 <outputs>
|
|
135 <!--data format="sam" name="sam_output"/-->
|
|
136 <data format="tabular" name="blast_output"/>
|
|
137 </outputs>
|
|
138 <tests>
|
|
139 <test>
|
|
140 <param name="method" value="blastp"/>
|
|
141 <param name="query" value="protein.fasta" ftype="fasta"/>
|
4
|
142 <param name="reference_database" value="diamond_makedb_result1.dmnd" ftype="diamond_database"/>
|
0
|
143 <param name="db_source" value="history"/>
|
|
144 <output name="blast_output" file="diamond_result1.tabular" ftpye="tabular"/>
|
|
145 </test>
|
|
146 </tests>
|
|
147 <help>
|
|
148 <![CDATA[
|
|
149
|
|
150 .. class:: infomark
|
|
151
|
|
152 **What it does**
|
|
153
|
|
154 DIAMOND_ is a new alignment tool for aligning short DNA sequencing reads to a protein reference database such as NCBI-NR.
|
|
155 On Illumina reads of length 100-150bp, in fast mode, DIAMOND is about 20,000 times faster than BLASTX, while reporting
|
|
156 about 80-90% of all matches that BLASTX finds, with an e-value of at most 1e-5. In sensitive mode, DIAMOND ist about 2,500
|
|
157 times faster than BLASTX, finding more than 94% of all matches.
|
|
158
|
|
159 .. _DIAMOND: http://ab.inf.uni-tuebingen.de/software/diamond/
|
|
160
|
|
161
|
|
162 Supported values for gap open and gap extend parameters depending on the selected scoring matrix.
|
|
163
|
|
164 ======== ============================================
|
|
165 Matrix Supported values for (gap open)/(gap extend)
|
|
166 ======== ============================================
|
|
167 BLOSUM45 (10-13)/3; (12-16)/2; (16-19)/1
|
|
168 BLOSUM50 (9-13)/3; (12-16)/2; (15-19)/1
|
|
169 BLOSUM62 (6-11)/2; (9-13)/1
|
|
170 BLOSUM80 (6-9)/2; 13/2; 25/2; (9-11)/1
|
|
171 BLOSUM90 (6-9)/2; (9-11)/1
|
|
172 PAM250 (11-15)/3; (13-17)/2; (17-21)/1
|
|
173 PAM70 (6-8)/2; (9-11)/1
|
|
174 PAM30 (5-7)/2; (8-10)/1
|
|
175 ======== ============================================
|
|
176
|
|
177
|
|
178 ]]>
|
|
179 </help>
|
|
180 <citations>
|
|
181 <citation type="doi">10.1038/nmeth.3176</citation>
|
|
182 </citations>
|
|
183 </tool>
|