Mercurial > repos > devteam > bwa
annotate bwa-mem.xml @ 12:bd3a1e0de84c draft
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
author | devteam |
---|---|
date | Fri, 30 Dec 2016 08:11:12 -0500 |
parents | 546ada4a9f43 |
children | 53646aaaafef |
rev | line source |
---|---|
0 | 1 <?xml version="1.0"?> |
11
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
10
diff
changeset
|
2 <tool id="bwa_mem" name="Map with BWA-MEM" version="@VERSION@.1"> |
2 | 3 <description>- map medium and long reads (> 100 bp) against reference genome</description> |
0 | 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> |
7 </macros> | |
7
d8c9597bfb09
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit ddb8bdb9d62399f086b06b3469450d0aad2113bd
devteam
parents:
6
diff
changeset
|
8 <expand macro="requirements" /> |
6
09a7281d24c5
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents:
5
diff
changeset
|
9 <expand macro="stdio" /> |
0 | 10 <command> |
10
6069ffa8b240
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 653588a3c59eb9965097f87c99e6fca1806365cd
devteam
parents:
9
diff
changeset
|
11 <![CDATA[ |
11
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
10
diff
changeset
|
12 @set_reference_fasta_filename@ |
2 | 13 |
0 | 14 ## Begin BWA-MEM command line |
2 | 15 |
0 | 16 bwa mem |
17 -t "\${GALAXY_SLOTS:-1}" | |
2 | 18 -v 1 ## Verbosity is set to 1 (errors only) |
19 | |
0 | 20 #if str( $fastq_input.fastq_input_selector ) == "paired_iv": ## For interleaved fastq files set -p option |
21 -p | |
22 #if str( $fastq_input.iset_stats ): ## check that insert statistics is used | |
23 -I "${fastq_input.iset_stats}" | |
24 #end if | |
25 #end if | |
2 | 26 |
0 | 27 #if str( $analysis_type.analysis_type_selector ) == "pacbio": |
2 | 28 -x pacbio |
12
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
29 #elif str( $analysis_type.analysis_type_selector ) == "ont2d": |
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
30 -x ont2d |
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
31 #elif str( $analysis_type.analysis_type_selector ) == "intractg": |
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
32 -x intractg |
0 | 33 #elif str( $analysis_type.analysis_type_selector ) == "full": |
2 | 34 #if str( $analysis_type.algorithmic_options.algorithmic_options_selector ) == "set": ## Algorithmic options |
0 | 35 -k "${analysis_type.algorithmic_options.k}" |
36 -w "${analysis_type.algorithmic_options.w}" | |
37 -d "${analysis_type.algorithmic_options.d}" | |
38 -r "${analysis_type.algorithmic_options.r}" | |
39 -y "${analysis_type.algorithmic_options.y}" | |
40 -c "${analysis_type.algorithmic_options.c}" | |
41 -D "${analysis_type.algorithmic_options.D}" | |
42 -W "${analysis_type.algorithmic_options.W}" | |
43 -m "${analysis_type.algorithmic_options.m}" | |
44 ${analysis_type.algorithmic_options.S} | |
45 ${analysis_type.algorithmic_options.P} | |
46 ${analysis_type.algorithmic_options.e} | |
47 #end if | |
2 | 48 |
49 #if str( $analysis_type.scoring_options.scoring_options_selector ) == "set": ## Scoring options | |
0 | 50 -A "${analysis_type.scoring_options.A}" |
51 -B "${analysis_type.scoring_options.B}" | |
52 -O "${analysis_type.scoring_options.O}" | |
53 -E "${analysis_type.scoring_options.E}" | |
54 -L "${analysis_type.scoring_options.L}" | |
55 -U "${analysis_type.scoring_options.U}" | |
56 #end if | |
2 | 57 |
58 #if str( $analysis_type.io_options.io_options_selector ) == "set": ## IO options | |
0 | 59 -T "${analysis_type.io_options.T}" |
60 -h "${analysis_type.io_options.h}" | |
61 ${analysis_type.io_options.a} | |
62 ${analysis_type.io_options.C} | |
63 ${analysis_type.io_options.V} | |
64 ${analysis_type.io_options.Y} | |
65 ${analysis_type.io_options.M} | |
66 #end if | |
2 | 67 |
0 | 68 #end if |
2 | 69 |
5
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
70 ## Handle read group options... |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
71 @define_read_group_helpers@ |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
72 #if str( $fastq_input.fastq_input_selector ) == "paired": |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
73 #set $rg_auto_name = $read_group_name_default($fastq_input.fastq_input1, $fastq_input.fastq_input2) |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
74 #else: |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
75 #set $rg_auto_name = $read_group_name_default($fastq_input.fastq_input1) |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
76 #end if |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
77 @set_use_rg_var@ |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
78 @set_read_group_vars@ |
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
79 #if $use_rg |
2 | 80 @set_rg_string@ |
81 -R '$rg_string' | |
82 #end if | |
83 | |
0 | 84 #if str( $fastq_input.fastq_input_selector ) == "paired": |
85 #if str( $fastq_input.iset_stats ): ## check that insert statistics is used | |
86 -I "${fastq_input.iset_stats}" | |
87 #end if | |
88 | |
89 "${reference_fasta_filename}" | |
2 | 90 "${fastq_input.fastq_input1}" "${fastq_input.fastq_input2}" |
91 #elif str( $fastq_input.fastq_input_selector ) == "paired_collection": | |
92 #if str( $fastq_input.iset_stats ): ## check that insert statistics is used | |
93 -I "${fastq_input.iset_stats}" | |
94 #end if | |
95 | |
0 | 96 "${reference_fasta_filename}" |
2 | 97 "${fastq_input.fastq_input1.forward}" "${fastq_input.fastq_input1.reverse}" |
98 #else: | |
99 "${reference_fasta_filename}" | |
0 | 100 "${fastq_input.fastq_input1}" |
101 #end if | |
2 | 102 |
12
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
103 | 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
|
104 ]]> |
0 | 105 </command> |
2 | 106 |
0 | 107 <inputs> |
11
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
10
diff
changeset
|
108 <expand macro="reference_source_conditional" /> |
0 | 109 <conditional name="fastq_input"> |
110 <param name="fastq_input_selector" type="select" label="Single or Paired-end reads" help="Select between paired and single end data"> | |
111 <option value="paired">Paired</option> | |
112 <option value="single">Single</option> | |
113 <option value="paired_collection">Paired Collection</option> | |
114 <option value="paired_iv">Paired Interleaved</option> | |
115 </param> | |
116 <when value="paired"> | |
117 <param name="fastq_input1" type="data" format="fastqsanger" label="Select first set of reads" help="Specify dataset with forward reads"/> | |
118 <param name="fastq_input2" type="data" format="fastqsanger" label="Select second set of reads" help="Specify dataset with reverse reads"/> | |
7
d8c9597bfb09
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit ddb8bdb9d62399f086b06b3469450d0aad2113bd
devteam
parents:
6
diff
changeset
|
119 <param name="iset_stats" type="text" optional="True" label="Enter mean, standard deviation, max, and min for insert lengths." help="-I; This parameter is only used for paired reads. Only mean is required while sd, max, and min will be inferred. Examples: both "250" and "250,25" will work while "250,,10" will not. See below for details."> |
0 | 120 <sanitizer invalid_char=""> |
121 <valid initial="string.digits"><add value=","/> </valid> | |
122 </sanitizer> | |
123 </param> | |
2 | 124 </when> |
0 | 125 <when value="single"> |
126 <param name="fastq_input1" type="data" format="fastqsanger" label="Select fastq dataset" help="Specify dataset with single reads"/> | |
127 </when> | |
128 <when value="paired_collection"> | |
129 <param name="fastq_input1" format="fastqsanger" type="data_collection" collection_type="paired" label="Select a paired collection" help="See help section for an explanation of dataset collections"/> | |
7
d8c9597bfb09
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit ddb8bdb9d62399f086b06b3469450d0aad2113bd
devteam
parents:
6
diff
changeset
|
130 <param name="iset_stats" type="text" optional="True" label="Enter mean, standard deviation, max, and min for insert lengths." help="-I; This parameter is only used for paired reads. Only mean is required while sd, max, and min will be inferred. Examples: both "250" and "250,25" will work while "250,,10" will not. See below for details."> |
0 | 131 <sanitizer invalid_char=""> |
132 <valid initial="string.digits"><add value=","/> </valid> | |
133 </sanitizer> | |
134 </param> | |
135 </when> | |
136 <when value="paired_iv"> | |
2 | 137 <param name="fastq_input1" type="data" format="fastqsanger" label="Select fastq dataset" help="Specify dataset with interleaved reads"/> |
7
d8c9597bfb09
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit ddb8bdb9d62399f086b06b3469450d0aad2113bd
devteam
parents:
6
diff
changeset
|
138 <param name="iset_stats" type="text" optional="True" label="Enter mean, standard deviation, max, and min for insert lengths." help="-I; This parameter is only used for paired reads. Only mean is required while sd, max, and min will be inferred. Examples: both "250" and "250,25" will work while "250,,10" will not. See below for details."> |
0 | 139 <sanitizer invalid_char=""> |
140 <valid initial="string.digits"><add value=","/> </valid> | |
141 </sanitizer> | |
2 | 142 </param> |
0 | 143 </when> |
144 </conditional> | |
2 | 145 |
5
fbf460831036
planemo upload commit d0e3412c58bd3bdc1a483a1e2f7f9c2aa5c87a1f-dirty
devteam
parents:
4
diff
changeset
|
146 <expand macro="read_group_conditional" /> |
2 | 147 |
0 | 148 <conditional name="analysis_type"> |
149 <param name="analysis_type_selector" type="select" label="Select analysis mode"> | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
150 <option value="illumina">1.Simple Illumina mode</option> |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
151 <option value="pacbio">2.PacBio mode (-x pacbio)</option> |
12
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
152 <option value="ont2d">3.Nanopore 2D-reads mode (-x ont2d)</option> |
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
153 <option value="intractg">4.Intra-species contigs mode (-x intractg)</option> |
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
154 <option value="full">5.Full list of options</option> |
0 | 155 </param> |
156 <when value="illumina"> | |
157 <!-- do nothing --> | |
158 </when> | |
159 <when value="pacbio"> | |
160 <!-- do nothing. all magic happens within <command> tag --> | |
161 </when> | |
12
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
162 <when value="ont2d"> |
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
163 <!-- do nothing. all magic happens within <command> tag --> |
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
164 </when> |
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
165 <when value="intractg"> |
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
166 <!-- do nothing. all magic happens within <command> tag --> |
bd3a1e0de84c
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 13b3ab10ff1a2e4be39b44f885df6bbe7c23099a
devteam
parents:
11
diff
changeset
|
167 </when> |
0 | 168 <when value="full"> |
169 <conditional name="algorithmic_options"> | |
170 <param name="algorithmic_options_selector" type="select" label="Set algorithmic options?" help="Sets -k, -w, -d, -r, -y, -c, -D, -W, -m, -S, -P, and -e options."> | |
171 <option value="set">Set</option> | |
172 <option value="do_not_set" selected="True">Do not set</option> | |
173 </param> | |
174 <when value="set"> | |
2 | 175 <param name="k" type="integer" value="19" label="Minimum seed length" help="-k; default=19"/> |
176 <param name="w" type="integer" value="100" label="Band width for banded alignment" help="-w; default=100"/> | |
177 <param name="d" type="integer" value="100" label="Off-diagonal X-dropoff" help="-d; default=100"/> | |
178 <param name="r" type="float" value="1.5" label="Look for internal seeds inside a seed longer than -k * THIS VALUE" help="-r; default=1.5; This is a key heuristic parameter for tuning the performance. Larger value yields fewer seeds, which leads to faster alignment speed but lower accuracy" /> | |
179 <param name="y" type="integer" value="20" label="Seed occurrence for the 3rd round seeding" help="-y; default=20" /> | |
180 <param name="c" type="integer" value="500" label="Skip seeds with more than that many occurrences" help="-c; default=500"/> | |
181 <param name="D" type="float" value="0.5" label="Drop chains shorter than this fraction of the longest overlapping chain" help="-D; default=0.5"/> | |
182 <param name="W" type="integer" value="0" label="Discard a chain if seeded bases shorter than THIS VALUE" help="-W; default=0"/> | |
183 <param name="m" type="integer" value="50" label="Perform at most this many rounds of mate rescues for each read" help="-m; default=50"/> | |
184 <param name="S" type="boolean" truevalue="-S" falsevalue="" label="Skip mate rescue" help="-S"/> | |
185 <param name="P" type="boolean" truevalue="-P" falsevalue="" label="Skip pairing; mate rescue performed unless -S also in use" help="-P"/> | |
186 <param name="e" type="boolean" truevalue="-e" falsevalue="" label="Discard full-length exact matches" help="-e"/> | |
0 | 187 </when> |
188 <when value="do_not_set"> | |
189 <!-- do nothing --> | |
190 </when> | |
191 </conditional> | |
2 | 192 |
0 | 193 <conditional name="scoring_options"> |
194 <param name="scoring_options_selector" type="select" label="Set scoring options?" help="Sets -A, -B, -O, -E, -L, and -U options."> | |
195 <option value="set">Set</option> | |
196 <option value="do_not_set" selected="True">Do not set</option> | |
197 </param> | |
198 <when value="set"> | |
2 | 199 <param name="A" type="integer" value="1" label="Score for a sequence match" help="-A; scales options -T, -d, -B, -O, -E, -L, and -U unless overridden; default=1"/> |
200 <param name="B" type="integer" value="4" label="Penalty for a mismatch" help="-B; default=4"/> | |
201 <param name="O" type="text" value="6,6" label="Gap open penalties for deletions and insertions" help="-O; default=6,6"> | |
0 | 202 <sanitizer invalid_char=""> |
203 <valid initial="string.digits"><add value=","/> </valid> | |
204 </sanitizer> | |
205 </param> | |
2 | 206 <param name="E" type="text" value="1,1" label="Gap extension penalties; a gap of size k cost '-O + -E*k'. If two numbers are specified, the first is the penalty of extending a deletion and the second for extending an insertion" help="-E; default=1,1"> |
0 | 207 <sanitizer invalid_char=""> |
208 <valid initial="string.digits"><add value=","/> </valid> | |
209 </sanitizer> | |
210 </param> | |
2 | 211 <param name="L" type="text" value="5,5" label="Penalties for 5'-end and 3'-end clipping" help="-L; default=5,5; When performing Smith-Waterman extension, BWA-MEM keeps track of the best score reaching the end of query. If this score is larger than the best Smith-Waterman score minus the clipping penalty, clipping will not be applied. Note that in this case, the SAM AS tag reports the best Smith-Waterman score; clipping penalty is not deduced"> |
0 | 212 <sanitizer invalid_char=""> |
213 <valid initial="string.digits"><add value=","/> </valid> | |
214 </sanitizer> | |
215 </param> | |
2 | 216 <param name="U" type="integer" value="17" label="Penalty for an unpaired read pair" help="-U; default=17"/> |
0 | 217 </when> |
218 <when value="do_not_set"> | |
219 <!-- do nothing --> | |
220 </when> | |
221 </conditional> | |
2 | 222 |
0 | 223 <conditional name="io_options"> |
224 <param name="io_options_selector" type="select" label="Set input/output options" help="Sets -T, -h, -a, -C, -V, -Y, and -M options."> | |
225 <option value="set">Set</option> | |
226 <option value="do_not_set" selected="True">Do not set</option> | |
227 </param> | |
228 <when value="set"> | |
2 | 229 <param name="T" type="integer" value="30" label="Minimum score to output" help="-T; default=30"/> |
230 <param name="h" type="integer" value="5" label="If there are less than THIS VALUE hits with score >80% of the max score, output them all in the XA tag" help="-h; default=5" /> | |
231 <param name="a" type="boolean" truevalue="-a" falsevalue="" label="Output all alignments for single-ends or unpaired paired-ends" help="-a; These alignments will be flagged as secondary alignments"/> | |
232 <param name="C" type="boolean" truevalue="-C" falsevalue="" label="Append FASTA/FASTQ comment to BAM output" help="-C"/> | |
233 <param name="V" type="boolean" truevalue="-V" falsevalue="" label="Output the reference FASTA header in the XR tag" help="-C"/> | |
234 <param name="Y" type="boolean" truevalue="-Y" falsevalue="" label="Use soft clipping for supplementary alignments" help="-Y; By default, BWA-MEM uses soft clipping for the primary alignment and hard clipping for supplementary alignments" /> | |
235 <param name="M" type="boolean" truevalue="-M" falsevalue="" label="Mark shorter split hits of a chimeric alignment in the FLAG field as 'secondary alignment' instead of 'supplementary alignment'" help="-M; For Picard<1.96 compatibility" /> | |
0 | 236 </when> |
237 <when value="do_not_set"> | |
238 <!-- do nothing --> | |
239 </when> | |
240 </conditional> | |
241 </when> | |
242 </conditional> | |
243 </inputs> | |
2 | 244 |
0 | 245 <outputs> |
6
09a7281d24c5
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents:
5
diff
changeset
|
246 <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
|
247 <expand macro="dbKeyActionsBwaMem" /> |
09a7281d24c5
planemo upload commit 00a7926c285bc4a339bd7deebf40b28f39c7d947-dirty
devteam
parents:
5
diff
changeset
|
248 </data> |
0 | 249 </outputs> |
2 | 250 |
0 | 251 <tests> |
252 <test> | |
253 <param name="reference_source_selector" value="history" /> | |
254 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> | |
255 <param name="fastq_input_selector" value="paired"/> | |
256 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fastq1.fq"/> | |
257 <param name="fastq_input2" ftype="fastqsanger" value="bwa-mem-fastq2.fq"/> | |
258 <param name="analysis_type_selector" value="illumina"/> | |
259 <output name="bam_output" ftype="bam" file="bwa-mem-test1.bam" lines_diff="2" /> | |
260 </test> | |
2 | 261 <test> |
262 <param name="reference_source_selector" value="history" /> | |
263 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> | |
11
546ada4a9f43
planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/bwa commit 610045611b00099e0a24183c8cf33aebfa9635cf
devteam
parents:
10
diff
changeset
|
264 <param name="index_a" value="is"/> |
2 | 265 <param name="fastq_input_selector" value="paired"/> |
266 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fastq1.fq"/> | |
267 <param name="fastq_input2" ftype="fastqsanger" value="bwa-mem-fastq2.fq"/> | |
268 <param name="rg_selector" value="set"/> | |
269 <param name="ID" value="rg1"/> | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
270 <param name="PL" value="CAPILLARY"/> |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
271 <param name="LB" value="AARDVARK-1" /> |
2 | 272 <param name="analysis_type_selector" value="illumina"/> |
273 <output name="bam_output" ftype="bam" file="bwa-mem-test2.bam" lines_diff="2" /> | |
274 </test> | |
0 | 275 </tests> |
276 <help> | |
277 **What is does** | |
278 | |
279 From http://arxiv.org/abs/1303.3997: | |
280 | |
281 BWA-MEM is a new alignment algorithm for aligning sequence reads or long query sequences against a large reference genome such as human. | |
282 It automatically chooses between local and end-to-end alignments, supports paired-end reads and performs chimeric alignment. | |
283 The algorithm is robust to sequencing errors and applicable to a wide range of sequence lengths from 70bp to a few megabases. | |
284 For mapping 100bp sequences, BWA-MEM shows better performance than several state-of-art read aligners to date. | |
285 | |
286 It is best suited for mapping long (>70 nt) reads against large reference genomes. | |
287 | |
288 This Galaxy tool wraps bwa-mem module of bwa read mapping tool. Galaxy implementation takes fastq files as input and produces output in BAM (not SAM) format, which can be further processed using various BAM utilities exiting in Galaxy (BAMTools, SAMTools, Picard). | |
289 | |
290 ----- | |
291 | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
292 **Indices: Selecting reference genomes for BWA** |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
293 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
294 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:
2
diff
changeset
|
295 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
296 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:
2
diff
changeset
|
297 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 mem`. |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
298 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
299 If your genome of interest is not listed here you have two choices: |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
300 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
301 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:
2
diff
changeset
|
302 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:
2
diff
changeset
|
303 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
304 ----- |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
305 |
0 | 306 **Galaxy-specific option** |
307 | |
308 Galaxy allows four levels of control over bwa-mem options provided by **Select analysis mode** menu option. These are: | |
309 | |
310 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] | |
311 2. *PacBio mode*: The mode adjusted specifically for mapping of long PacBio subreads. Equivalent to the following command: bwa mem -k17 -W40 -r10 -A1 -B1 -O1 -E1 -L0 <reference index> <PacBio dataset in fastq format> | |
312 3. *Full list of options*: Allows access to all options through Galaxy interface. | |
2 | 313 |
0 | 314 ------ |
315 | |
316 **BWA MEM options** | |
317 | |
318 Each Galaxy parameter widget corresponds to command line flags listed below: | |
319 | |
320 Algorithm options:: | |
321 | |
322 -k INT minimum seed length [19] | |
323 -w INT band width for banded alignment [100] | |
324 -d INT off-diagonal X-dropoff [100] | |
325 -r FLOAT look for internal seeds inside a seed longer than {-k} * FLOAT [1.5] | |
326 -y INT find MEMs longer than {-k} * {-r} with size less than INT [0] | |
327 -c INT skip seeds with more than INT occurrences [500] | |
328 -D FLOAT drop chains shorter than FLOAT fraction of the longest overlapping chain [0.50] | |
329 -W INT discard a chain if seeded bases shorter than INT [0] | |
330 -m INT perform at most INT rounds of mate rescues for each read [50] | |
331 -S skip mate rescue | |
332 -P skip pairing; mate rescue performed unless -S also in use | |
333 -e discard full-length exact matches | |
334 | |
335 Scoring options:: | |
336 | |
337 -A INT score for a sequence match, which scales options -TdBOELU unless overridden [1] | |
338 -B INT penalty for a mismatch [4] | |
339 -O INT[,INT] gap open penalties for deletions and insertions [6,6] | |
340 -E INT[,INT] gap extension penalty; a gap of size k cost '{-O} + {-E}*k' [1,1] | |
341 -L INT[,INT] penalty for 5'- and 3'-end clipping [5,5] | |
342 -U INT penalty for an unpaired read pair [17] | |
343 | |
344 Input/output options:: | |
345 | |
346 -p first query file consists of interleaved paired-end sequences | |
347 -R STR read group header line such as '@RG\tID:foo\tSM:bar' [null] | |
348 | |
349 -v INT verbose level: 1=error, 2=warning, 3=message, 4+=debugging [3] | |
350 -T INT minimum score to output [30] | |
351 -h INT if there are <INT hits with score >80% of the max score, output all in XA [5] | |
352 -a output all alignments for SE or unpaired PE | |
353 -C append FASTA/FASTQ comment to SAM output | |
354 -V output the reference FASTA header in the XR tag | |
355 -Y use soft clipping for supplementary alignments | |
356 -M mark shorter split hits as secondary | |
357 | |
358 -I FLOAT[,FLOAT[,INT[,INT]]] | |
359 specify the mean, standard deviation (10% of the mean if absent), max | |
360 (4 sigma from the mean if absent) and min of the insert size distribution. | |
361 FR orientation only. [inferred] | |
362 | |
363 @dataset_collections@ | |
364 | |
365 @RG@ | |
366 | |
367 @info@ | |
368 </help> | |
369 <citations> | |
370 <citation type="doi">10.1093/bioinformatics/btp324</citation> | |
371 <citation type="doi">10.1093/bioinformatics/btp698</citation> | |
372 <citation type="bibtex">@misc{1303.3997, | |
373 Author = {Heng Li}, | |
374 Title = {Aligning sequence reads, clone sequences and assembly contigs with BWA-MEM}, | |
375 Year = {2013}, | |
376 Eprint = {arXiv:1303.3997}, | |
377 url = {http://arxiv.org/abs/1303.3997}, | |
378 }</citation> | |
379 </citations> | |
380 </tool> |