Mercurial > repos > devteam > bwa
annotate bwa-mem.xml @ 4:ac30bfd3e2a8 draft
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
author | devteam |
---|---|
date | Thu, 18 Jun 2015 17:35:40 -0400 |
parents | e29bc5c169bc |
children | fbf460831036 |
rev | line source |
---|---|
0 | 1 <?xml version="1.0"?> |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
2 <tool id="bwa_mem" name="Map with BWA-MEM" version="0.2.2"> |
2 | 3 <description>- map medium and long reads (> 100 bp) against reference genome</description> |
0 | 4 <macros> |
5 <import>bwa_macros.xml</import> | |
6 </macros> | |
7 <requirements> | |
8 <requirement type="package" version="0.7.10.039ea20639">bwa</requirement> | |
9 <requirement type="package" version="1.1">samtools</requirement> | |
10 </requirements> | |
2 | 11 <stdio> |
12 <exit_code range="1:" /> | |
13 </stdio> | |
0 | 14 <command> |
15 #set $reference_fasta_filename = "localref.fa" | |
2 | 16 |
0 | 17 #if str( $reference_source.reference_source_selector ) == "history": |
18 ln -s "${reference_source.ref_file}" "${reference_fasta_filename}" && | |
2 | 19 |
0 | 20 ## The following shell commands decide with of the BWA indexing algorithms (IS or BWTSW) will be run |
21 ## depending ob the size of the input FASTA dataset | |
22 ( | |
23 size=`stat -c %s "${reference_fasta_filename}" 2>/dev/null`; ## Linux | |
2 | 24 if [ $? -eq 0 ]; |
0 | 25 then |
2 | 26 if [ "\$size" -lt 2000000000 ]; |
0 | 27 then |
28 bwa index -a is "${reference_fasta_filename}"; | |
29 echo "Generating BWA index with is algorithm"; | |
30 else | |
31 bwa index -a bwtsw "${reference_fasta_filename}"; | |
32 echo "Generating BWA index with bwtsw algorithm"; | |
33 fi; | |
34 fi; | |
35 | |
2 | 36 eval \$(stat -s "${reference_fasta_filename}" 2>/dev/null); ## OSX |
37 if [ -n "\$st_size" ]; | |
0 | 38 then |
2 | 39 if [ "\$st_size" -lt 2000000000 ]; |
0 | 40 then |
41 bwa index -a is "${reference_fasta_filename}"; | |
42 echo "Generating BWA index with is algorithm"; | |
43 else | |
44 bwa index -a bwtsw "${reference_fasta_filename}"; | |
45 echo "Generating BWA index with bwtsw algorithm"; | |
46 fi; | |
47 fi; | |
48 ) && | |
2 | 49 |
0 | 50 #else: |
51 #set $reference_fasta_filename = str( $reference_source.ref_file.fields.path ) | |
52 #end if | |
2 | 53 |
0 | 54 ## Begin BWA-MEM command line |
2 | 55 |
0 | 56 bwa mem |
57 -t "\${GALAXY_SLOTS:-1}" | |
2 | 58 -v 1 ## Verbosity is set to 1 (errors only) |
59 | |
0 | 60 #if str( $fastq_input.fastq_input_selector ) == "paired_iv": ## For interleaved fastq files set -p option |
61 -p | |
62 #if str( $fastq_input.iset_stats ): ## check that insert statistics is used | |
63 -I "${fastq_input.iset_stats}" | |
64 #end if | |
65 #end if | |
2 | 66 |
0 | 67 #if str( $analysis_type.analysis_type_selector ) == "pacbio": |
2 | 68 -x pacbio |
0 | 69 #elif str( $analysis_type.analysis_type_selector ) == "full": |
2 | 70 #if str( $analysis_type.algorithmic_options.algorithmic_options_selector ) == "set": ## Algorithmic options |
0 | 71 -k "${analysis_type.algorithmic_options.k}" |
72 -w "${analysis_type.algorithmic_options.w}" | |
73 -d "${analysis_type.algorithmic_options.d}" | |
74 -r "${analysis_type.algorithmic_options.r}" | |
75 -y "${analysis_type.algorithmic_options.y}" | |
76 -c "${analysis_type.algorithmic_options.c}" | |
77 -D "${analysis_type.algorithmic_options.D}" | |
78 -W "${analysis_type.algorithmic_options.W}" | |
79 -m "${analysis_type.algorithmic_options.m}" | |
80 ${analysis_type.algorithmic_options.S} | |
81 ${analysis_type.algorithmic_options.P} | |
82 ${analysis_type.algorithmic_options.e} | |
83 #end if | |
2 | 84 |
85 #if str( $analysis_type.scoring_options.scoring_options_selector ) == "set": ## Scoring options | |
0 | 86 -A "${analysis_type.scoring_options.A}" |
87 -B "${analysis_type.scoring_options.B}" | |
88 -O "${analysis_type.scoring_options.O}" | |
89 -E "${analysis_type.scoring_options.E}" | |
90 -L "${analysis_type.scoring_options.L}" | |
91 -U "${analysis_type.scoring_options.U}" | |
92 #end if | |
2 | 93 |
94 #if str( $analysis_type.io_options.io_options_selector ) == "set": ## IO options | |
0 | 95 -T "${analysis_type.io_options.T}" |
96 -h "${analysis_type.io_options.h}" | |
97 ${analysis_type.io_options.a} | |
98 ${analysis_type.io_options.C} | |
99 ${analysis_type.io_options.V} | |
100 ${analysis_type.io_options.Y} | |
101 ${analysis_type.io_options.M} | |
102 #end if | |
2 | 103 |
0 | 104 #end if |
2 | 105 |
106 #if str( $rg.rg_selector ) == "set": | |
107 @set_rg_string@ | |
108 -R '$rg_string' | |
109 #end if | |
110 | |
0 | 111 #if str( $fastq_input.fastq_input_selector ) == "paired": |
112 #if str( $fastq_input.iset_stats ): ## check that insert statistics is used | |
113 -I "${fastq_input.iset_stats}" | |
114 #end if | |
115 | |
116 "${reference_fasta_filename}" | |
2 | 117 "${fastq_input.fastq_input1}" "${fastq_input.fastq_input2}" |
118 #elif str( $fastq_input.fastq_input_selector ) == "paired_collection": | |
119 #if str( $fastq_input.iset_stats ): ## check that insert statistics is used | |
120 -I "${fastq_input.iset_stats}" | |
121 #end if | |
122 | |
0 | 123 "${reference_fasta_filename}" |
2 | 124 "${fastq_input.fastq_input1.forward}" "${fastq_input.fastq_input1.reverse}" |
125 #else: | |
126 "${reference_fasta_filename}" | |
0 | 127 "${fastq_input.fastq_input1}" |
128 #end if | |
2 | 129 |
0 | 130 | samtools view -Sb - > temporary_bam_file.bam && |
2 | 131 |
0 | 132 samtools sort -f temporary_bam_file.bam ${bam_output} |
133 </command> | |
2 | 134 |
0 | 135 <inputs> |
136 | |
137 <conditional name="reference_source"> | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
138 <param name="reference_source_selector" 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. See `Indexes` section of help below"> |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
139 <option value="cached">Use a built-in genome index</option> |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
140 <option value="history">Use a genome from history and build index</option> |
0 | 141 </param> |
142 <when value="cached"> | |
143 <param name="ref_file" type="select" label="Using reference genome" help="Select genome from the list"> | |
144 <options from_data_table="bwa_mem_indexes"> | |
145 <filter type="sort_by" column="2" /> | |
146 <validator type="no_options" message="No indexes are available" /> | |
147 </options> | |
148 <validator type="no_options" message="A built-in reference genome is not available for the build associated with the selected input file"/> | |
149 </param> | |
150 </when> | |
2 | 151 <when value="history"> |
0 | 152 <param name="ref_file" type="data" format="fasta" label="Use the following dataset as the reference sequence" help="You can upload a FASTA sequence to the history and use it as reference" /> |
153 </when> | |
154 </conditional> | |
155 <conditional name="fastq_input"> | |
156 <param name="fastq_input_selector" type="select" label="Single or Paired-end reads" help="Select between paired and single end data"> | |
157 <option value="paired">Paired</option> | |
158 <option value="single">Single</option> | |
159 <option value="paired_collection">Paired Collection</option> | |
160 <option value="paired_iv">Paired Interleaved</option> | |
161 </param> | |
162 <when value="paired"> | |
163 <param name="fastq_input1" type="data" format="fastqsanger" label="Select first set of reads" help="Specify dataset with forward reads"/> | |
164 <param name="fastq_input2" type="data" format="fastqsanger" label="Select second set of reads" help="Specify dataset with reverse reads"/> | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
165 <param name="iset_stats" type="text" optional="True" size="10" 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 | 166 <sanitizer invalid_char=""> |
167 <valid initial="string.digits"><add value=","/> </valid> | |
168 </sanitizer> | |
169 </param> | |
2 | 170 </when> |
0 | 171 <when value="single"> |
172 <param name="fastq_input1" type="data" format="fastqsanger" label="Select fastq dataset" help="Specify dataset with single reads"/> | |
173 </when> | |
174 <when value="paired_collection"> | |
175 <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"/> | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
176 <param name="iset_stats" type="text" optional="True" size="10" 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 | 177 <sanitizer invalid_char=""> |
178 <valid initial="string.digits"><add value=","/> </valid> | |
179 </sanitizer> | |
180 </param> | |
181 </when> | |
182 <when value="paired_iv"> | |
2 | 183 <param name="fastq_input1" type="data" format="fastqsanger" label="Select fastq dataset" help="Specify dataset with interleaved reads"/> |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
184 <param name="iset_stats" type="text" optional="True" size="10" 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 | 185 <sanitizer invalid_char=""> |
186 <valid initial="string.digits"><add value=","/> </valid> | |
187 </sanitizer> | |
2 | 188 </param> |
0 | 189 </when> |
190 </conditional> | |
2 | 191 |
192 <expand macro="readgroup_params" /> | |
193 | |
0 | 194 <conditional name="analysis_type"> |
195 <param name="analysis_type_selector" type="select" label="Select analysis mode"> | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
196 <option value="illumina">1.Simple Illumina mode</option> |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
197 <option value="pacbio">2.PacBio mode (-x pacbio)</option> |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
198 <option value="full">3.Full list of options</option> |
0 | 199 </param> |
200 <when value="illumina"> | |
201 <!-- do nothing --> | |
202 </when> | |
203 <when value="pacbio"> | |
204 <!-- do nothing. all magic happens within <command> tag --> | |
205 </when> | |
206 <when value="full"> | |
207 <conditional name="algorithmic_options"> | |
208 <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."> | |
209 <option value="set">Set</option> | |
210 <option value="do_not_set" selected="True">Do not set</option> | |
211 </param> | |
212 <when value="set"> | |
2 | 213 <param name="k" type="integer" value="19" label="Minimum seed length" help="-k; default=19"/> |
214 <param name="w" type="integer" value="100" label="Band width for banded alignment" help="-w; default=100"/> | |
215 <param name="d" type="integer" value="100" label="Off-diagonal X-dropoff" help="-d; default=100"/> | |
216 <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" /> | |
217 <param name="y" type="integer" value="20" label="Seed occurrence for the 3rd round seeding" help="-y; default=20" /> | |
218 <param name="c" type="integer" value="500" label="Skip seeds with more than that many occurrences" help="-c; default=500"/> | |
219 <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"/> | |
220 <param name="W" type="integer" value="0" label="Discard a chain if seeded bases shorter than THIS VALUE" help="-W; default=0"/> | |
221 <param name="m" type="integer" value="50" label="Perform at most this many rounds of mate rescues for each read" help="-m; default=50"/> | |
222 <param name="S" type="boolean" truevalue="-S" falsevalue="" label="Skip mate rescue" help="-S"/> | |
223 <param name="P" type="boolean" truevalue="-P" falsevalue="" label="Skip pairing; mate rescue performed unless -S also in use" help="-P"/> | |
224 <param name="e" type="boolean" truevalue="-e" falsevalue="" label="Discard full-length exact matches" help="-e"/> | |
0 | 225 </when> |
226 <when value="do_not_set"> | |
227 <!-- do nothing --> | |
228 </when> | |
229 </conditional> | |
2 | 230 |
0 | 231 <conditional name="scoring_options"> |
232 <param name="scoring_options_selector" type="select" label="Set scoring options?" help="Sets -A, -B, -O, -E, -L, and -U options."> | |
233 <option value="set">Set</option> | |
234 <option value="do_not_set" selected="True">Do not set</option> | |
235 </param> | |
236 <when value="set"> | |
2 | 237 <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"/> |
238 <param name="B" type="integer" value="4" label="Penalty for a mismatch" help="-B; default=4"/> | |
239 <param name="O" type="text" value="6,6" label="Gap open penalties for deletions and insertions" help="-O; default=6,6"> | |
0 | 240 <sanitizer invalid_char=""> |
241 <valid initial="string.digits"><add value=","/> </valid> | |
242 </sanitizer> | |
243 </param> | |
2 | 244 <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 | 245 <sanitizer invalid_char=""> |
246 <valid initial="string.digits"><add value=","/> </valid> | |
247 </sanitizer> | |
248 </param> | |
2 | 249 <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 | 250 <sanitizer invalid_char=""> |
251 <valid initial="string.digits"><add value=","/> </valid> | |
252 </sanitizer> | |
253 </param> | |
2 | 254 <param name="U" type="integer" value="17" label="Penalty for an unpaired read pair" help="-U; default=17"/> |
0 | 255 </when> |
256 <when value="do_not_set"> | |
257 <!-- do nothing --> | |
258 </when> | |
259 </conditional> | |
2 | 260 |
0 | 261 <conditional name="io_options"> |
262 <param name="io_options_selector" type="select" label="Set input/output options" help="Sets -T, -h, -a, -C, -V, -Y, and -M options."> | |
263 <option value="set">Set</option> | |
264 <option value="do_not_set" selected="True">Do not set</option> | |
265 </param> | |
266 <when value="set"> | |
2 | 267 <param name="T" type="integer" value="30" label="Minimum score to output" help="-T; default=30"/> |
268 <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" /> | |
269 <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"/> | |
270 <param name="C" type="boolean" truevalue="-C" falsevalue="" label="Append FASTA/FASTQ comment to BAM output" help="-C"/> | |
271 <param name="V" type="boolean" truevalue="-V" falsevalue="" label="Output the reference FASTA header in the XR tag" help="-C"/> | |
272 <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" /> | |
273 <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 | 274 </when> |
275 <when value="do_not_set"> | |
276 <!-- do nothing --> | |
277 </when> | |
278 </conditional> | |
279 </when> | |
280 </conditional> | |
281 </inputs> | |
2 | 282 |
0 | 283 <outputs> |
284 <data format="bam" name="bam_output" label="${tool.name} on ${on_string} (mapped reads in BAM format)"/> | |
285 </outputs> | |
2 | 286 |
0 | 287 <tests> |
288 <test> | |
289 <param name="reference_source_selector" value="history" /> | |
290 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> | |
291 <param name="fastq_input_selector" value="paired"/> | |
292 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fastq1.fq"/> | |
293 <param name="fastq_input2" ftype="fastqsanger" value="bwa-mem-fastq2.fq"/> | |
294 <param name="analysis_type_selector" value="illumina"/> | |
295 <output name="bam_output" ftype="bam" file="bwa-mem-test1.bam" lines_diff="2" /> | |
296 </test> | |
2 | 297 <test> |
298 <param name="reference_source_selector" value="history" /> | |
299 <param name="ref_file" ftype="fasta" value="bwa-mem-mt-genome.fa"/> | |
300 <param name="fastq_input_selector" value="paired"/> | |
301 <param name="fastq_input1" ftype="fastqsanger" value="bwa-mem-fastq1.fq"/> | |
302 <param name="fastq_input2" ftype="fastqsanger" value="bwa-mem-fastq2.fq"/> | |
303 <param name="rg_selector" value="set"/> | |
304 <param name="ID" value="rg1"/> | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
305 <param name="PL" value="CAPILLARY"/> |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
306 <param name="LB" value="AARDVARK-1" /> |
2 | 307 <param name="analysis_type_selector" value="illumina"/> |
308 <output name="bam_output" ftype="bam" file="bwa-mem-test2.bam" lines_diff="2" /> | |
309 </test> | |
0 | 310 </tests> |
311 <help> | |
312 **What is does** | |
313 | |
314 From http://arxiv.org/abs/1303.3997: | |
315 | |
316 BWA-MEM is a new alignment algorithm for aligning sequence reads or long query sequences against a large reference genome such as human. | |
317 It automatically chooses between local and end-to-end alignments, supports paired-end reads and performs chimeric alignment. | |
318 The algorithm is robust to sequencing errors and applicable to a wide range of sequence lengths from 70bp to a few megabases. | |
319 For mapping 100bp sequences, BWA-MEM shows better performance than several state-of-art read aligners to date. | |
320 | |
321 It is best suited for mapping long (>70 nt) reads against large reference genomes. | |
322 | |
323 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). | |
324 | |
325 ----- | |
326 | |
4
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
327 **Indices: Selecting reference genomes for BWA** |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
328 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
329 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
|
330 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
331 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
|
332 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
|
333 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
334 If your genome of interest is not listed here you have two choices: |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
335 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
336 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
|
337 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
|
338 |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
339 ----- |
ac30bfd3e2a8
planemo upload commit a50a3947aebc8a1d11bac39599f4efd8ed9a3bd5
devteam
parents:
2
diff
changeset
|
340 |
0 | 341 **Galaxy-specific option** |
342 | |
343 Galaxy allows four levels of control over bwa-mem options provided by **Select analysis mode** menu option. These are: | |
344 | |
345 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] | |
346 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> | |
347 3. *Full list of options*: Allows access to all options through Galaxy interface. | |
2 | 348 |
0 | 349 ------ |
350 | |
351 **BWA MEM options** | |
352 | |
353 Each Galaxy parameter widget corresponds to command line flags listed below: | |
354 | |
355 Algorithm options:: | |
356 | |
357 -k INT minimum seed length [19] | |
358 -w INT band width for banded alignment [100] | |
359 -d INT off-diagonal X-dropoff [100] | |
360 -r FLOAT look for internal seeds inside a seed longer than {-k} * FLOAT [1.5] | |
361 -y INT find MEMs longer than {-k} * {-r} with size less than INT [0] | |
362 -c INT skip seeds with more than INT occurrences [500] | |
363 -D FLOAT drop chains shorter than FLOAT fraction of the longest overlapping chain [0.50] | |
364 -W INT discard a chain if seeded bases shorter than INT [0] | |
365 -m INT perform at most INT rounds of mate rescues for each read [50] | |
366 -S skip mate rescue | |
367 -P skip pairing; mate rescue performed unless -S also in use | |
368 -e discard full-length exact matches | |
369 | |
370 Scoring options:: | |
371 | |
372 -A INT score for a sequence match, which scales options -TdBOELU unless overridden [1] | |
373 -B INT penalty for a mismatch [4] | |
374 -O INT[,INT] gap open penalties for deletions and insertions [6,6] | |
375 -E INT[,INT] gap extension penalty; a gap of size k cost '{-O} + {-E}*k' [1,1] | |
376 -L INT[,INT] penalty for 5'- and 3'-end clipping [5,5] | |
377 -U INT penalty for an unpaired read pair [17] | |
378 | |
379 Input/output options:: | |
380 | |
381 -p first query file consists of interleaved paired-end sequences | |
382 -R STR read group header line such as '@RG\tID:foo\tSM:bar' [null] | |
383 | |
384 -v INT verbose level: 1=error, 2=warning, 3=message, 4+=debugging [3] | |
385 -T INT minimum score to output [30] | |
386 -h INT if there are <INT hits with score >80% of the max score, output all in XA [5] | |
387 -a output all alignments for SE or unpaired PE | |
388 -C append FASTA/FASTQ comment to SAM output | |
389 -V output the reference FASTA header in the XR tag | |
390 -Y use soft clipping for supplementary alignments | |
391 -M mark shorter split hits as secondary | |
392 | |
393 -I FLOAT[,FLOAT[,INT[,INT]]] | |
394 specify the mean, standard deviation (10% of the mean if absent), max | |
395 (4 sigma from the mean if absent) and min of the insert size distribution. | |
396 FR orientation only. [inferred] | |
397 | |
398 @dataset_collections@ | |
399 | |
400 @RG@ | |
401 | |
402 @info@ | |
403 </help> | |
404 <citations> | |
405 <citation type="doi">10.1093/bioinformatics/btp324</citation> | |
406 <citation type="doi">10.1093/bioinformatics/btp698</citation> | |
407 <citation type="bibtex">@misc{1303.3997, | |
408 Author = {Heng Li}, | |
409 Title = {Aligning sequence reads, clone sequences and assembly contigs with BWA-MEM}, | |
410 Year = {2013}, | |
411 Eprint = {arXiv:1303.3997}, | |
412 url = {http://arxiv.org/abs/1303.3997}, | |
413 }</citation> | |
414 </citations> | |
415 </tool> |