annotate diamond.xml @ 0:98037ef3d2a9 draft

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