Mercurial > repos > devteam > bwa
annotate bwa.xml @ 16:be4e38d127ae draft
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit e1191c87a0fccfafa0f23c3bd09f416a6700b387
author | devteam |
---|---|
date | Tue, 21 Nov 2017 09:11:39 -0500 |
parents | 051eba708f43 |
children | 48f306c57611 |
rev | line source |
---|---|
0 | 1 <?xml version="1.0"?> |
14
051eba708f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 33c17fa6a2d8c15972d93031b2ca4182cdf31439
devteam
parents:
13
diff
changeset
|
2 <tool id="bwa" name="Map with BWA" version="@VERSION@.2"> |
0 | 3 <description>- map short reads (< 100 bp) against reference genome</description> |
4 <macros> | |
5
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
5 <import>read_group_macros.xml</import> |
0 | 6 <import>bwa_macros.xml</import> |
2 | 7 <token name="@command_options@"> |
8 #if str( $analysis_type.analysis_type_selector ) == "full": | |
0 | 9 -n ${analysis_type.n} |
10 -o ${analysis_type.o} | |
11 -e ${analysis_type.e} | |
12 -i ${analysis_type.i} | |
13 -d ${analysis_type.d} | |
14 -l ${analysis_type.l} | |
15 -k ${analysis_type.k} | |
16 -m ${analysis_type.m} | |
17 -M ${analysis_type.M} | |
18 -O ${analysis_type.O} | |
19 -E ${analysis_type.E} | |
20 -R ${analysis_type.R} | |
21 -q ${analysis_type.q} | |
2 | 22 |
0 | 23 #if str( $analysis_type.B ): |
24 -B ${analysis_type.B} | |
25 #end if | |
2 | 26 |
0 | 27 #if str( $analysis_type.L ): |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
28 -L ${analysis_type.L} |
0 | 29 #end if |
2 | 30 #end if |
0 | 31 </token> |
32 <token name="@read_group_options@"> | |
5
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
33 #if $use_rg: |
2 | 34 @set_rg_string@ |
35 -r '$rg_string' | |
0 | 36 #end if |
37 </token> | |
2 | 38 |
0 | 39 <xml name="advanced_pe_options"> |
40 <param name="adv_pe_options_selector" type="select" label="Set advanced paired end options?" help="Provides additional controls"> | |
41 <option value="set">Set</option> | |
42 <option value="do_not_set" selected="True">Do not set</option> | |
43 </param> | |
44 <when value="set"> | |
45 <param name="a" type="integer" value="500" label="Maximum insert size for a read pair to be considered being mapped properly." help="sampe -a; This option is only used when there are not enough good alignment to infer the distribution of insert sizes; default=500"/> | |
46 <param name="o" type="integer" value="100000" label="Maximum occurrences of a read for pairing. A read with more occurrences will be treated as a single-end read." help="sampe -o; Reducing this parameter helps faster pairing; default=100000"/> | |
47 <param name="n" type="integer" value="3" label="Maximum number of alignments to output in the XA tag for reads paired properly." help="sampe -n; If a read has more than this many hits, the XA tag will not be written; default=3"/> | |
48 <param name="N" type="integer" value="10" label="Maximum number of alignments to output in the XA tag for disconcordant read pairs (excluding singletons)." help="sampe -N; If a read has more than this many hits, the XA tag will not be written; default=10"/> | |
49 <param name="c" type="float" value="0.00005" label="Prior of chimeric rate (lower bound)" help="sampe -c"/> | |
50 </when> | |
51 <when value="do_not_set"> | |
52 <!-- do nothing --> | |
53 </when> | |
54 </xml> | |
55 <xml name="advanced_se_options"> | |
56 <param name="adv_se_options_selector" type="select" label="Set advanced single end options?" help="Provides additional controls"> | |
57 <option value="set">Set</option> | |
58 <option value="do_not_set" selected="True">Do not set</option> | |
59 </param> | |
60 <when value="set"> | |
61 <param name="n" type="integer" value="3" label="Maximum number of alignments to output in the XA tag." help="-n; If a read has more than this many hits, the XA tag will not be written; default=3"/> | |
62 </when> | |
63 <when value="do_not_set"> | |
64 <!-- do nothing --> | |
65 </when> | |
66 </xml> | |
67 </macros> | |
7
d8c9597bfb09
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit ddb8bdb9d62399f086b06b3469450d0aad2113bd
devteam
parents:
6
diff
changeset
|
68 <expand macro="requirements" /> |
6
09a7281d24c5
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents:
5
diff
changeset
|
69 <expand macro="stdio" /> |
2 | 70 <command> |
10
6069ffa8b240
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 653588a3c59eb9965097f87c99e6fca1806365cd
devteam
parents:
9
diff
changeset
|
71 <![CDATA[ |
11
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
10
diff
changeset
|
72 @set_reference_fasta_filename@ |
2 | 73 |
5
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
74 ## setup vars for rg handling... |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
75 @define_read_group_helpers@ |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
76 #if str( $input_type.input_type_selector ) == "paired": |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
77 #set $rg_auto_name = $read_group_name_default($input_type.fastq_input1, $input_type.fastq_input2) |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
78 #elif str( $input_type.input_type_selector ) in ["single_bam", "paired_bam"]: |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
79 #set $rg_auto_name = $read_group_name_default($input_type.bam_input) |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
80 #else |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
81 #set $rg_auto_name = $read_group_name_default($input_type.fastq_input1) |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
82 #end if |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
83 @set_use_rg_var@ |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
84 @set_read_group_vars@ |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
85 |
2 | 86 ## Begin bwa command line |
87 | |
88 ####### Fastq paired | |
89 | |
90 #if str( $input_type.input_type_selector ) == "paired" or str( $input_type.input_type_selector ) == "paired_collection": | |
91 bwa aln | |
92 -t "\${GALAXY_SLOTS:-1}" | |
93 | |
94 @command_options@ | |
95 | |
96 "${reference_fasta_filename}" | |
97 | |
98 #if str( $input_type.input_type_selector ) == "paired_collection": | |
99 "${input_type.fastq_input1.forward}" | |
100 #else | |
101 "${input_type.fastq_input1}" | |
102 #end if | |
103 | |
10
6069ffa8b240
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 653588a3c59eb9965097f87c99e6fca1806365cd
devteam
parents:
9
diff
changeset
|
104 > first.sai && |
2 | 105 |
106 bwa aln | |
107 -t "\${GALAXY_SLOTS:-1}" | |
108 | |
109 @command_options@ | |
110 | |
111 "${reference_fasta_filename}" | |
112 | |
113 #if str( $input_type.input_type_selector ) == "paired_collection": | |
114 "${input_type.fastq_input1.reverse}" | |
115 #else | |
116 "${input_type.fastq_input2}" | |
117 #end if | |
118 | |
10
6069ffa8b240
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 653588a3c59eb9965097f87c99e6fca1806365cd
devteam
parents:
9
diff
changeset
|
119 > second.sai && |
2 | 120 |
121 bwa sampe | |
122 | |
123 #if str( $input_type.adv_pe_options.adv_pe_options_selector) == "True": | |
124 -a ${$input_type.adv_pe_options.a} | |
125 -o ${$input_type.adv_pe_options.o} | |
126 -n ${$input_type.adv_pe_options.n} | |
127 -N ${$input_type.adv_pe_options.N} | |
128 #end if | |
129 | |
130 @read_group_options@ | |
131 | |
132 #if str( $input_type.input_type_selector ) == "paired_collection": | |
133 "${reference_fasta_filename}" first.sai second.sai "${input_type.fastq_input1.forward}" "${input_type.fastq_input1.reverse}" | |
134 #else: | |
135 "${reference_fasta_filename}" first.sai second.sai "${input_type.fastq_input1}" "${input_type.fastq_input2}" | |
136 #end if | |
137 | |
138 ####### Fastq single | |
139 | |
140 #elif str( $input_type.input_type_selector ) == "single": | |
141 bwa aln | |
142 -t "\${GALAXY_SLOTS:-1}" | |
143 | |
144 @command_options@ | |
145 | |
146 "${reference_fasta_filename}" | |
147 "${input_type.fastq_input1}" | |
10
6069ffa8b240
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 653588a3c59eb9965097f87c99e6fca1806365cd
devteam
parents:
9
diff
changeset
|
148 > first.sai && |
2 | 149 |
150 bwa samse | |
151 | |
152 #if str( $input_type.adv_se_options.adv_se_options_selector) == "True": | |
153 -n ${$input_type.adv_se_options.n} | |
154 #end if | |
155 | |
156 @read_group_options@ | |
157 | |
158 "${reference_fasta_filename}" first.sai "${input_type.fastq_input1}" | |
159 | |
160 ####### BAM paired | |
161 | |
162 #elif str( $input_type.input_type_selector ) == "paired_bam": | |
163 bwa aln | |
164 -t "\${GALAXY_SLOTS:-1}" | |
165 -b | |
166 -1 | |
167 | |
168 @command_options@ | |
169 | |
170 "${reference_fasta_filename}" | |
171 "${input_type.bam_input}" | |
10
6069ffa8b240
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 653588a3c59eb9965097f87c99e6fca1806365cd
devteam
parents:
9
diff
changeset
|
172 > first.sai && |
2 | 173 |
174 bwa aln | |
175 -t "\${GALAXY_SLOTS:-1}" | |
176 -b | |
177 -2 | |
178 @command_options@ | |
179 "${reference_fasta_filename}" | |
180 "${input_type.bam_input}" | |
10
6069ffa8b240
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 653588a3c59eb9965097f87c99e6fca1806365cd
devteam
parents:
9
diff
changeset
|
181 > second.sai && |
2 | 182 |
183 bwa sampe | |
184 | |
185 #if str( $input_type.adv_bam_pe_options.adv_pe_options_selector) == "True": | |
186 -a ${$input_type.adv_bam_pe_options.a} | |
187 -o ${$input_type.adv_bam_pe_options.o} | |
188 -n ${$input_type.adv_bam_pe_options.n} | |
189 -N ${$input_type.adv_bam_pe_options.N} | |
190 #end if | |
191 | |
192 @read_group_options@ | |
193 | |
194 "${reference_fasta_filename}" first.sai second.sai "${input_type.bam_input}" "${input_type.bam_input}" | |
195 | |
196 ####### Fastq single ------------ to do next | |
197 | |
198 #elif str( $input_type.input_type_selector ) == "single_bam": | |
199 bwa aln | |
200 -t "\${GALAXY_SLOTS:-1}" | |
201 -b | |
202 -0 | |
203 | |
204 @command_options@ | |
205 | |
206 "${reference_fasta_filename}" | |
207 "${input_type.bam_input}" | |
10
6069ffa8b240
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 653588a3c59eb9965097f87c99e6fca1806365cd
devteam
parents:
9
diff
changeset
|
208 > first.sai && |
2 | 209 |
210 bwa samse | |
211 | |
212 #if str( $input_type.adv_bam_se_options.adv_se_options_selector) == "True": | |
213 -n ${$input_type.adv_bam_se_options.n} | |
214 #end if | |
215 | |
216 @read_group_options@ | |
217 | |
218 "${reference_fasta_filename}" first.sai "${input_type.bam_input}" | |
219 #end if | |
220 | |
12
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
221 | samtools sort -O bam -o '$bam_output' |
10
6069ffa8b240
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 653588a3c59eb9965097f87c99e6fca1806365cd
devteam
parents:
9
diff
changeset
|
222 ]]> |
2 | 223 </command> |
224 | |
0 | 225 <inputs> |
11
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
10
diff
changeset
|
226 <expand macro="reference_source_conditional" /> |
0 | 227 <conditional name="input_type"> |
228 <param name="input_type_selector" type="select" label="Select input type" help="Select between fastq and bam datasets and between paired and single end data"> | |
229 <option value="paired">Paired fastq</option> | |
230 <option value="paired_collection">Paired fastq collection</option> | |
231 <option value="single">Single fastq</option> | |
232 <option value="paired_bam">Paired BAM</option> | |
233 <option value="single_bam">Single BAM</option> | |
234 </param> | |
235 <when value="paired"> | |
14
051eba708f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 33c17fa6a2d8c15972d93031b2ca4182cdf31439
devteam
parents:
13
diff
changeset
|
236 <param name="fastq_input1" type="data" format="fastqsanger,fastqsanger.gz,fasta" label="Select first set of reads" help="Specify dataset with forward reads"/> |
051eba708f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 33c17fa6a2d8c15972d93031b2ca4182cdf31439
devteam
parents:
13
diff
changeset
|
237 <param name="fastq_input2" type="data" format="fastqsanger,fastqsanger.gz,fasta" label="Select second set of reads" help="Specify dataset with reverse reads"/> |
0 | 238 <conditional name="adv_pe_options"> |
2 | 239 |
0 | 240 <expand macro="advanced_pe_options" /> |
2 | 241 |
0 | 242 </conditional> |
243 </when> | |
2 | 244 |
0 | 245 <when value="paired_collection"> |
13
53646aaaafef
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 3442b18860bc4398d917e3a35943351a9cf031ea
devteam
parents:
12
diff
changeset
|
246 <param name="fastq_input1" format="fastqsanger,fastqsanger.gz" type="data_collection" collection_type="paired" label="Select a paired collection" help="See help section for an explanation of dataset collections"/> |
0 | 247 <conditional name="adv_pe_options"> |
2 | 248 |
0 | 249 <expand macro="advanced_pe_options" /> |
2 | 250 |
0 | 251 </conditional> |
252 </when> | |
2 | 253 |
0 | 254 <when value="single"> |
14
051eba708f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 33c17fa6a2d8c15972d93031b2ca4182cdf31439
devteam
parents:
13
diff
changeset
|
255 <param name="fastq_input1" type="data" format="fastqsanger,fastqsanger.gz,fasta" label="Select fastq dataset" help="Specify dataset with single reads"/> |
0 | 256 <conditional name="adv_se_options"> |
2 | 257 |
0 | 258 <expand macro="advanced_se_options" /> |
2 | 259 |
0 | 260 </conditional> |
261 </when> | |
2 | 262 |
0 | 263 <!-- the difference between single and paired bams is in the <command> tag portion and realated to -0, -1, and -2 options --> |
2 | 264 |
0 | 265 <when value="paired_bam"> |
266 <param name="bam_input" type="data" format="bam" label="Select BAM dataset" help="Specify BAM dataset with paired reads"/> | |
267 <conditional name="adv_bam_pe_options"> | |
2 | 268 |
0 | 269 <expand macro="advanced_pe_options" /> |
2 | 270 |
0 | 271 </conditional> |
272 </when> | |
2 | 273 |
0 | 274 <when value="single_bam"> |
275 <param name="bam_input" type="data" format="bam" label="Select BAM dataset" help="Specify BAM dataset with single reads"/> | |
276 <conditional name="adv_bam_se_options"> | |
2 | 277 |
0 | 278 <expand macro="advanced_se_options" /> |
2 | 279 |
0 | 280 </conditional> |
281 </when> | |
2 | 282 |
0 | 283 </conditional> |
2 | 284 |
5
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
285 <expand macro="read_group_conditional" /> |
2 | 286 |
0 | 287 <conditional name="analysis_type"> |
288 <param name="analysis_type_selector" type="select" label="Select analysis mode"> | |
289 <option value="illumina">1.Simple Illumina mode</option> | |
290 <option value="full">2.Full list of options</option> | |
291 </param> | |
292 <when value="illumina"> | |
293 <!-- do nothing --> | |
294 </when> | |
2 | 295 <when value="full"> |
0 | 296 <param name="n" type="text" value="0.04" label="maximum edit distance if the value is integer, or the fraction of missing alignments given 2% uniform base error rate if float. In the latter case, the maximum edit distance is automatically chosen for different read lengths." help="aln -n; default=0.04"/> |
297 <param name="o" type="integer" value="1" label="maximum number or gap openings" help="aln -o; default=1"/> | |
298 <param name="e" type="integer" value="-1" label="maximum number of gap extensions" help="aln -e; -1 disables long gaps and invokes k-difference mode; default=-1"/> | |
299 <param name="i" type="integer" value="5" label="do not put an indel within this many bp towards the ends" help="aln -i; default=5"/> | |
300 <param name="d" type="integer" value="10" label="maximum occurrences for extending a long deletion" help="aln -d; default=10"/> | |
301 <param name="l" type="integer" value="32" label="seed length" help="aln -l; default=32"/> | |
302 <param name="k" type="integer" value="2" label="maximum differences in the seed" help="aln -k; default=2"/> | |
303 <param name="m" type="integer" value="2000000" label="maximum entries in the queue" help="aln -m; default=2000000"/> | |
304 <param name="M" type="integer" value="3" label="mismatch penalty" help="aln -M; default=3"/> | |
305 <param name="O" type="integer" value="11" label="gap open penalty" help="aln -O; default=11"/> | |
306 <param name="E" type="integer" value="4" label="gap extension penalty" help="aln -E; default=4"/> | |
307 <param name="R" type="integer" value="30" label="stop searching when there are more than this value of equally best hits" help="aln -R; default=30"/> | |
308 <param name="q" type="integer" value="0" label="quality threshold for read trimming down to 35bp" help="aln -q; default=0"/> | |
309 <param name="B" type="integer" optional="True" label="length of barcode" help="aln -B; optional parameter"/> | |
2 | 310 <param name="L" type="float" optional="True" label="log-scaled gap penalty for long deletions" help="aln -L; optional parameter"/> |
0 | 311 </when> |
312 </conditional> | |
313 </inputs> | |
2 | 314 |
0 | 315 <outputs> |
6
09a7281d24c5
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents:
5
diff
changeset
|
316 <data format="bam" name="bam_output" label="${tool.name} on ${on_string} (mapped reads in BAM format)"> |
09a7281d24c5
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents:
5
diff
changeset
|
317 <expand macro="dbKeyActionsBwa" /> |
09a7281d24c5
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents:
5
diff
changeset
|
318 </data> |
0 | 319 </outputs> |
2 | 320 |
0 | 321 <tests> |
322 <test> | |
323 <param name="reference_source_selector" value="history" /> | |
324 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> | |
14
051eba708f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 33c17fa6a2d8c15972d93031b2ca4182cdf31439
devteam
parents:
13
diff
changeset
|
325 <param name="input_type_selector" value="single"/> |
051eba708f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 33c17fa6a2d8c15972d93031b2ca4182cdf31439
devteam
parents:
13
diff
changeset
|
326 <param name="fastq_input1" ftype="fasta" value="bwa-mem-fasta1.fa"/> |
051eba708f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 33c17fa6a2d8c15972d93031b2ca4182cdf31439
devteam
parents:
13
diff
changeset
|
327 <param name="analysis_type_selector" value="illumina"/> |
051eba708f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 33c17fa6a2d8c15972d93031b2ca4182cdf31439
devteam
parents:
13
diff
changeset
|
328 <output name="bam_output" ftype="bam" file="bwa-aln-test1-fasta.bam" lines_diff="2" /> |
051eba708f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 33c17fa6a2d8c15972d93031b2ca4182cdf31439
devteam
parents:
13
diff
changeset
|
329 </test> |
051eba708f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 33c17fa6a2d8c15972d93031b2ca4182cdf31439
devteam
parents:
13
diff
changeset
|
330 <test> |
051eba708f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 33c17fa6a2d8c15972d93031b2ca4182cdf31439
devteam
parents:
13
diff
changeset
|
331 <param name="reference_source_selector" value="history" /> |
051eba708f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 33c17fa6a2d8c15972d93031b2ca4182cdf31439
devteam
parents:
13
diff
changeset
|
332 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> |
0 | 333 <param name="input_type_selector" value="paired"/> |
334 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fastq1.fq"/> | |
335 <param name="fastq_input2" ftype="fastqsanger" value="bwa-mem-fastq2.fq"/> | |
336 <param name="analysis_type_selector" value="illumina"/> | |
337 <output name="bam_output" ftype="bam" file="bwa-aln-test1.bam" lines_diff="2" /> | |
338 </test> | |
339 <test> | |
340 <param name="reference_source_selector" value="history" /> | |
341 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> | |
13
53646aaaafef
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 3442b18860bc4398d917e3a35943351a9cf031ea
devteam
parents:
12
diff
changeset
|
342 <param name="input_type_selector" value="paired"/> |
53646aaaafef
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 3442b18860bc4398d917e3a35943351a9cf031ea
devteam
parents:
12
diff
changeset
|
343 <param name="fastq_input1" ftype="fastqsanger.gz" value="bwa-mem-fastq1.fq.gz"/> |
53646aaaafef
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 3442b18860bc4398d917e3a35943351a9cf031ea
devteam
parents:
12
diff
changeset
|
344 <param name="fastq_input2" ftype="fastqsanger" value="bwa-mem-fastq2.fq"/> |
53646aaaafef
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 3442b18860bc4398d917e3a35943351a9cf031ea
devteam
parents:
12
diff
changeset
|
345 <param name="analysis_type_selector" value="illumina"/> |
53646aaaafef
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 3442b18860bc4398d917e3a35943351a9cf031ea
devteam
parents:
12
diff
changeset
|
346 <output name="bam_output" ftype="bam" file="bwa-aln-test1.bam" lines_diff="2" /> |
53646aaaafef
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 3442b18860bc4398d917e3a35943351a9cf031ea
devteam
parents:
12
diff
changeset
|
347 </test> |
53646aaaafef
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 3442b18860bc4398d917e3a35943351a9cf031ea
devteam
parents:
12
diff
changeset
|
348 <test> |
53646aaaafef
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 3442b18860bc4398d917e3a35943351a9cf031ea
devteam
parents:
12
diff
changeset
|
349 <param name="reference_source_selector" value="history" /> |
53646aaaafef
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 3442b18860bc4398d917e3a35943351a9cf031ea
devteam
parents:
12
diff
changeset
|
350 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> |
0 | 351 <param name="input_type_selector" value="paired_bam"/> |
352 <param name="bam_input" ftype="bam" value="bwa-aln-bam-input.bam"/> | |
353 <param name="analysis_type_selector" value="illumina"/> | |
354 <output name="bam_output" ftype="bam" file="bwa-aln-test2.bam" lines_diff="2" /> | |
355 </test> | |
2 | 356 <test> |
357 <param name="reference_source_selector" value="history" /> | |
358 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> | |
359 <param name="input_type_selector" value="paired"/> | |
360 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fastq1.fq"/> | |
361 <param name="fastq_input2" ftype="fastqsanger" value="bwa-mem-fastq2.fq"/> | |
362 <param name="rg_selector" value="set"/> | |
363 <param name="ID" value="rg1"/> | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
364 <param name="PL" value="CAPILLARY"/> |
2 | 365 <param name="analysis_type_selector" value="illumina"/> |
366 <output name="bam_output" ftype="bam" file="bwa-aln-test3.bam" lines_diff="2" /> | |
367 </test> | |
0 | 368 </tests> |
369 <help> | |
370 **What is does** | |
371 | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
372 BWA is a software package for mapping low-divergent sequences against a large reference genome, such as the human genome. The bwa-aln algorithm is designed for Illumina sequence reads up to 100bp. For longer reads use BWA-MEM algorithm distributed as a separate Galaxy tool. |
0 | 373 |
374 This Galaxy tool wraps bwa-aln, bwa-samse and -sampe modules of bwa read mapping tool: | |
375 | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
376 - **bwa aln** - actual mapper placing reads onto the reference sequence |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
377 - **bwa samse** - post-processor converting suffix array coordinates into genome coordinates in SAM format for single reads |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
378 - **bam sampe** - post-processor for paired reads |
2 | 379 |
0 | 380 Galaxy implementation takes fastq or BAM (unaligned BAM) datasets as input and produces output in BAM (not SAM; in reality SAM produced by the bwa is converted to BAM on the fly by samtools view command) format, which can be further processed using various BAM utilities exiting in Galaxy (BAMTools, SAMTools, Picard). |
381 | |
382 ----- | |
383 | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
384 **Indices: Selecting reference genomes for BWA** |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
385 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
386 Galaxy wrapper for BWA allows you select between precomputed and user-defined indices for reference genomes using **Will you select a reference genome from your history or use a built-in index?** flag. This flag has two options: |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
387 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
388 1. **Use a built-in genome index** - when selected (this is default), Galaxy provides the user with **Select reference genome index** dropdown. Genomes listed in this dropdown have been pre-indexed with bwa index utility and are ready to be mapped against. |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
389 2. **Use a genome from the history and build index** - when selected, Galaxy provides the user with **Select reference genome sequence** dropdown. This dropdown is populated by all FASTA formatted files listed in your current history. If your genome of interest is uploaded into history it will be shown there. Selecting a genome from this dropdown will cause Galaxy to first transparently index it using `bwa index` command, and then run mapping with `bwa aln`. |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
390 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
391 If your genome of interest is not listed here you have two choices: |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
392 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
393 1. Contact galaxy team using **Help->Support** link at the top of the interface and let us know that an index needs to be added |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
394 2. Upload your genome of interest as a FASTA file to Galaxy history and selected **Use a genome from the history and build index** option. |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
395 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
396 ----- |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
3
diff
changeset
|
397 |
0 | 398 **Galaxy-specific option** |
399 | |
400 Galaxy allows three levels of control over bwa-mem options provided by **Select analysis mode** menu option. These are: | |
401 | |
402 1. *Simple Illumina mode*: The simplest possible bwa mem application in which it alignes single or paired-end data to reference using default parameters. It is equivalent to the following command: bwa mem <reference index> <fastq dataset1> [fastq dataset2] | |
403 2. *Full list of options*: Allows access to all options through Galaxy interface. | |
2 | 404 |
0 | 405 ------ |
406 | |
407 **bwa-aln options** | |
408 | |
409 Each Galaxy parameter widget corresponds to command line flags listed below:: | |
410 | |
411 -n NUM max #diff (int) or missing prob under 0.02 err rate (float) [0.04] | |
412 -o INT maximum number or fraction of gap opens [1] | |
413 -e INT maximum number of gap extensions, -1 for disabling long gaps [-1] | |
414 -i INT do not put an indel within INT bp towards the ends [5] | |
415 -d INT maximum occurrences for extending a long deletion [10] | |
416 -l INT seed length [32] | |
417 -k INT maximum differences in the seed [2] | |
418 -m INT maximum entries in the queue [2000000] | |
419 -M INT mismatch penalty [3] | |
420 -O INT gap open penalty [11] | |
421 -E INT gap extension penalty [4] | |
422 -R INT stop searching when there are >INT equally best hits [30] | |
423 -q INT quality threshold for read trimming down to 35bp [0] | |
424 -B INT length of barcode | |
425 -L log-scaled gap penalty for long deletions | |
426 -N non-iterative mode: search for all n-difference hits (slooow) | |
427 -I the input is in the Illumina 1.3+ FASTQ-like format | |
428 -b the input read file is in the BAM format | |
429 -0 use single-end reads only (effective with -b) | |
430 -1 use the 1st read in a pair (effective with -b) | |
431 -2 use the 2nd read in a pair (effective with -b) | |
432 | |
433 **bwa-samse options**:: | |
434 | |
435 -a INT maximum insert size [500] | |
436 -o INT maximum occurrences for one end [100000] | |
437 -n INT maximum hits to output for paired reads [3] | |
438 -N INT maximum hits to output for discordant pairs [10] | |
439 -c FLOAT prior of chimeric rate (lower bound) [1.0e-05] | |
440 -r STR read group header line [null] | |
441 | |
442 **bwa-sampe options**:: | |
443 | |
444 -n INT maximum hits to output for paired reads [3] | |
445 -r STR read group header line [null] | |
446 | |
447 @dataset_collections@ | |
448 | |
449 @RG@ | |
450 | |
451 @info@ | |
452 </help> | |
453 <citations> | |
454 <citation type="doi">10.1093/bioinformatics/btp324</citation> | |
455 <citation type="doi">10.1093/bioinformatics/btp698</citation> | |
456 </citations> | |
457 </tool> |