comparison enhanced_bowtie_wrapper.xml @ 34:7d7473434ce9 draft

Uploaded
author kaymccoy
date Wed, 10 Aug 2016 12:29:45 -0400
parents
children
comparison
equal deleted inserted replaced
33:5ef807f03047 34:7d7473434ce9
1 <tool id="bowtie_wrapper" name="Map with Bowtie for Illumina" version="1.1.3">
2 <requirements>
3 <requirement type="package" version="0.12.7">bowtie</requirement>
4 </requirements>
5 <description></description>
6 <version_command>bowtie --version</version_command>
7 <command interpreter="python">
8 bowtie_wrapper.py
9 ## Set number of threads
10 --threads="\${GALAXY_SLOTS:-4}"
11 ## Outputs
12
13
14
15
16 #if "${singlePaired.sParams.outtype}" == "S"
17 --output="${outputS}"
18 #else
19 --output="${outputM}"
20 #end if
21
22
23
24 #if str( $singlePaired.sPaired ) == "single"
25 #if $output_unmapped_reads_l
26 --output_unmapped_reads="${output_unmapped_reads_l}"
27 #end if
28 #if $output_suppressed_reads_l
29 --output_suppressed_reads="${output_suppressed_reads_l}"
30 #end if
31 --galaxy_input_format="${singlePaired.sInput1.ext}"
32 #else
33 #if $output_unmapped_reads_l and $output_unmapped_reads_r
34 --output_unmapped_reads_l="${output_unmapped_reads_l}"
35 --output_unmapped_reads_r="${output_unmapped_reads_r}"
36 #end if
37 #if $output_suppressed_reads_l and $output_suppressed_reads_l
38 --output_suppressed_reads_l="${output_suppressed_reads_l}"
39 --output_suppressed_reads_r="${output_suppressed_reads_r}"
40 #end if
41 --galaxy_input_format="${singlePaired.pInput1.ext}"
42 #end if
43 ## Inputs
44 --dataType="solexa" ##this indicates that nucleotide base space is used in the wrapper
45 --suppressHeader="${suppressHeader}"
46 --genomeSource="${refGenomeSource.genomeSource}"
47 #if $refGenomeSource.genomeSource == "history":
48 ##index already exists
49 #if $refGenomeSource.ownFile.extension.startswith( 'bowtie_' ):
50 ##user previously built
51 --ref="${refGenomeSource.ownFile.extra_files_path}/${refGenomeSource.ownFile.metadata.base_name}"
52 --do_not_build_index
53 #else:
54 ##build index on the fly
55 --ref="${refGenomeSource.ownFile}"
56 --indexSettings="${refGenomeSource.indexParams.indexSettings}"
57 #if $refGenomeSource.indexParams.indexSettings == "indexFull":
58 --iautoB="${refGenomeSource.indexParams.autoBehavior.autoB}"
59 #if $refGenomeSource.indexParams.autoBehavior.autoB == "set":
60 --ipacked="${refGenomeSource.indexParams.autoBehavior.packed}"
61 --ibmax="${refGenomeSource.indexParams.autoBehavior.bmax}"
62 --ibmaxdivn="${refGenomeSource.indexParams.autoBehavior.bmaxdivn}"
63 --idcv="${refGenomeSource.indexParams.autoBehavior.dcv}"
64 #end if
65 --inodc="${refGenomeSource.indexParams.nodc}"
66 --inoref="${refGenomeSource.indexParams.noref}"
67 --ioffrate="${refGenomeSource.indexParams.offrate}"
68 --iftab="${refGenomeSource.indexParams.ftab}"
69 --intoa="${refGenomeSource.indexParams.ntoa}"
70 --iendian="${refGenomeSource.indexParams.endian}"
71 --iseed="${refGenomeSource.indexParams.seed}"
72 #end if
73 #end if
74 #else
75 ##use pre-built index
76 --ref="${refGenomeSource.index.fields.path}"
77 #end if
78 --paired="${singlePaired.sPaired}"
79 #if $singlePaired.sPaired == "single":
80
81
82
83
84 #if $singlePaired.sParams.sSettingsType == "full":
85 --filetype="${singlePaired.sParams.filetype}"
86 #else
87 --filetype="q"
88 #end if
89
90 #if $singlePaired.sParams.sSettingsType == "full":
91 --outtype="${singlePaired.sParams.outtype}"
92 #else
93 --outtype="S"
94 #end if
95
96
97
98
99
100 --input1="${singlePaired.sInput1}"
101 --params="${singlePaired.sParams.sSettingsType}"
102 #if $singlePaired.sParams.sSettingsType == "full":
103 --skip="${singlePaired.sParams.sSkip}"
104 --alignLimit="${singlePaired.sParams.sAlignLimit}"
105 --trimH="${singlePaired.sParams.sTrimH}"
106 --trimL="${singlePaired.sParams.sTrimL}"
107 #if $singlePaired.sParams.alignModeOption.alignMode == 'nMode'
108 --mismatchSeed="${singlePaired.sParams.alignModeOption.sMismatchSeed}"
109 --mismatchQual="${singlePaired.sParams.alignModeOption.sMismatchQual}"
110 --seedLen="${singlePaired.sParams.alignModeOption.sSeedLen}"
111 --rounding="${singlePaired.sParams.alignModeOption.sRounding}"
112 #else
113 --maxMismatches="${singlePaired.sParams.alignModeOption.maxMismatches}"
114 #end if
115 --forwardAlign="${singlePaired.sParams.sForwardAlign}"
116 --reverseAlign="${singlePaired.sParams.sReverseAlign}"
117 --tryHard="${singlePaired.sParams.sBestOption.sTryHardOption.sTryHard}"
118 --allValAligns="${singlePaired.sParams.sAllValAlignsOption.sAllValAligns}"
119 #if $singlePaired.sParams.sAllValAlignsOption.sAllValAligns == "noAllValAligns"
120 --valAlign="${singlePaired.sParams.sAllValAlignsOption.sValAlign}"
121 #end if
122 --suppressAlign="${singlePaired.sParams.sSuppressAlign}"
123 --best="${singlePaired.sParams.sBestOption.sBest}"
124 #if $singlePaired.sParams.sBestOption.sBest == "doBest":
125 --strata="${singlePaired.sParams.sBestOption.sdStrata}"
126 #if $singlePaired.sParams.sBestOption.sTryHardOption.sTryHard == "noTryHard"
127 --maxBacktracks="${singlePaired.sParams.sBestOption.sTryHardOption.sdMaxBacktracks}"
128 #end if
129 #else:
130 #if $singlePaired.sParams.sBestOption.sTryHardOption.sTryHard == "noTryHard"
131 --maxBacktracks="${singlePaired.sParams.sBestOption.sTryHardOption.snMaxBacktracks}"
132 #end if
133 #end if
134 --offrate="${singlePaired.sParams.sOffrate}"
135 --seed="${singlePaired.sParams.sSeed}"
136 #end if
137 #else:
138 --input1="${singlePaired.pInput1}"
139 --input2="${singlePaired.pInput2}"
140 --maxInsert="${singlePaired.pMaxInsert}"
141 --mateOrient="${singlePaired.pMateOrient}"
142 --params="${singlePaired.pParams.pSettingsType}"
143 #if $singlePaired.pParams.pSettingsType == "full":
144 --skip="${singlePaired.pParams.pSkip}"
145 --alignLimit="${singlePaired.pParams.pAlignLimit}"
146 --trimH="${singlePaired.pParams.pTrimH}"
147 --trimL="${singlePaired.pParams.pTrimL}"
148 #if $singlePaired.pParams.alignModeOption.alignMode == 'nMode'
149 --mismatchSeed="${singlePaired.pParams.alignModeOption.pMismatchSeed}"
150 --mismatchQual="${singlePaired.pParams.alignModeOption.pMismatchQual}"
151 --seedLen="${singlePaired.pParams.alignModeOption.pSeedLen}"
152 --rounding="${singlePaired.pParams.alignModeOption.pRounding}"
153 #else
154 --maxMismatches="${singlePaired.pParams.alignModeOption.maxMismatches}"
155 #end if
156 --minInsert="${singlePaired.pParams.pMinInsert}"
157 --forwardAlign="${singlePaired.pParams.pForwardAlign}"
158 --reverseAlign="${singlePaired.pParams.pReverseAlign}"
159 --tryHard="${singlePaired.pParams.pBestOption.pTryHardOption.pTryHard}"
160 --allValAligns="${singlePaired.pParams.pAllValAlignsOption.pAllValAligns}"
161 #if $singlePaired.pParams.pAllValAlignsOption.pAllValAligns == "noAllValAligns"
162 --valAlign="${singlePaired.pParams.pAllValAlignsOption.pValAlign}"
163 #end if
164 --suppressAlign="${singlePaired.pParams.pSuppressAlign}"
165 --best="${singlePaired.pParams.pBestOption.pBest}"
166 #if $singlePaired.pParams.pBestOption.pBest == "doBest":
167 --strata="${singlePaired.pParams.pBestOption.pdStrata}"
168 #if $singlePaired.pParams.pBestOption.pTryHardOption.pTryHard == "noTryHard"
169 --maxAlignAttempt="${singlePaired.pParams.pBestOption.pTryHardOption.pMaxAlignAttempt}"
170 --maxBacktracks="${singlePaired.pParams.pBestOption.pTryHardOption.pdMaxBacktracks}"
171 #end if
172 #else:
173 #if $singlePaired.pParams.pBestOption.pTryHardOption.pTryHard == "noTryHard"
174 --maxAlignAttempt="${singlePaired.pParams.pBestOption.pTryHardOption.pMaxAlignAttempt}"
175 --maxBacktracks="${singlePaired.pParams.pBestOption.pTryHardOption.pnMaxBacktracks}"
176 #end if
177 #end if
178 --offrate="${singlePaired.pParams.pOffrate}"
179 --seed="${singlePaired.pParams.pSeed}"
180 #end if
181 #end if
182 </command>
183 <inputs>
184 <conditional name="refGenomeSource">
185 <param name="genomeSource" 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">
186 <option value="indexed">Use a built-in index</option>
187 <option value="history">Use one from the history</option>
188 </param>
189 <when value="indexed">
190 <param name="index" type="select" label="Select a reference genome" help="if your genome of interest is not listed - contact Galaxy team">
191 <options from_data_table="bowtie_indexes">
192 <filter type="sort_by" column="2" />
193 <validator type="no_options" message="No indexes are available" />
194 </options>
195 </param>
196 </when>
197 <when value="history">
198 <param name="ownFile" type="data" format="bowtie_base_index,fasta" metadata_name="dbkey" label="Select the reference genome" />
199 <conditional name="indexParams">
200 <param name="indexSettings" type="select" label="Choose whether to use Default options for building indices or to Set your own" help="These settings are ignored when using a prebuilt index">
201 <option value="indexPreSet">Default</option>
202 <option value="indexFull">Set your own</option>
203 </param>
204 <when value="indexPreSet" />
205 <when value="indexFull">
206 <conditional name="autoBehavior">
207 <param name="autoB" type="select" label="Choose to use automatic or specified behavior for some parameters (-a)" help="Allows you to set --packed, --bmax, --bmaxdivn, and --dcv">
208 <option value="auto">Automatic behavior</option>
209 <option value="set">Set values (sets --noauto and allows others to be set)</option>
210 </param>
211 <when value="auto" />
212 <when value="set">
213 <param name="packed" type="select" label="Whether or not to use a packed representation for DNA strings (--packed)" help="Packed representation saves memory but makes indexing 2-3 times slower">
214 <option value="unpacked">Use regular representation</option>
215 <option value="packed">Use packed representation</option>
216 </param>
217 <param name="bmax" type="integer" value="-1" label="Maximum number of suffixes allowed in a block (--bmax)" help="-1 for not specified. Must be at least 1" />
218 <param name="bmaxdivn" type="integer" value="4" label="Maximum number of suffixes allowed in a block as a fraction of the length of the reference (--bmaxdivn)" />
219 <param name="dcv" type="integer" value="1024" min="3" label="The period for the difference-cover sample (--dcv)" help="A larger period yields less memory overhead, but may make suffix sorting slower, especially if repeats are present" />
220 </when>
221 </conditional>
222 <param name="nodc" type="select" label="Whether or not to disable the use of the difference-cover sample (--nodc)" help="Suffix sorting becomes quadratic-time in the worst case (with a very repetitive reference)">
223 <option value="dc">Use difference-cover sample</option>
224 <option value="nodc">Disable difference-cover sample</option>
225 </param>
226 <param name="noref" type="select" label="Whether or not to build the part of the reference index used only in paired-end alignment (-r)">
227 <option value="ref">Build all index files</option>
228 <option value="noref">Do not build paired-end alignment index files</option>
229 </param>
230 <param name="offrate" type="integer" value="5" min="0" label="The indexer will mark every 2^n Burrows-Wheeler rows with their corresponding location on the genome (-o)" help="Marking more rows makes reference-position lookups faster, but requires more memory to hold the annotations at runtime" />
231 <param name="ftab" type="integer" value="10" min="1" label="The size of the ftab lookup table used to calculate an initial Burrows-Wheeler range with respect to the first n characters of the query (-t)" help="ftab size is 4^(n+1) bytes" />
232 <param name="ntoa" type="select" label="Whether or not to convert Ns in the reference sequence to As (--ntoa)">
233 <option value="no">Do not convert Ns</option>
234 <option value="yes">Convert Ns to As</option>
235 </param>
236 <param name="endian" type="select" label="Endianness to use when serializing integers to the index file (--big/--little)" help="Little is most appropriate for Intel- and AMD-based architecture">
237 <option value="little">Little</option>
238 <option value="big">Big</option>
239 </param>
240 <param name="seed" type="integer" value="-1" label="Seed for the pseudorandom number generator (--seed)" help="Use -1 to use default" />
241 </when> <!-- indexFull -->
242 </conditional> <!-- indexParams -->
243 </when> <!-- history -->
244 </conditional> <!-- refGenomeSource -->
245 <conditional name="singlePaired">
246 <param name="sPaired" type="select" label="Is this library mate-paired?">
247 <option value="single">Single-end</option>
248 <option value="paired">Paired-end</option>
249 </param>
250 <when value="single">
251 <param name="sInput1" type="data" format="fastqsanger,fastqillumina,fastqsolexa,fasta" label="FASTA or FASTQ file"/>
252 <conditional name="sParams">
253 <param name="sSettingsType" type="select" label="Bowtie settings to use" help="For most mapping needs use Commonly used settings. If you want full control use Full parameter list">
254 <option value="preSet">Commonly used</option>
255 <option value="full">Full parameter list</option>
256 </param>
257 <when value="preSet" />
258 <when value="full">
259
260
261
262
263
264
265
266 <param name="filetype" type="select" label="Is your input file FASTA or FASTQ?">
267 <option value="f">FASTA</option>
268 <option value="q">FASTQ</option>
269 </param>
270 <param name="outtype" type="select" label="Should the output be in map or SAM format?">
271 <option value="">map</option>
272 <option value="S">SAM</option>
273 </param>
274
275
276
277
278
279 <param name="sSkip" type="integer" value="0" label="Skip the first n reads (-s)" />
280 <param name="sAlignLimit" type="integer" value="-1" label="Only align the first n reads (-u)" help="-1 for off" />
281 <param name="sTrimH" type="integer" value="0" label="Trim n bases from high-quality (left) end of each read before alignment (-5)" />
282 <param name="sTrimL" type="integer" value="0" label="Trim n bases from low-quality (right) end of each read before alignment (-3)" />
283 <conditional name="alignModeOption">
284 <param name="alignMode" type="select" label="Alignment mode">
285 <option value="nMode">Maq-like: quality-aware, limit mismatches in seed (-n)</option>
286 <option value="vMode">ignore qualities, limit end-to-end mismatches (-v)</option>
287 </param>
288 <when value="nMode">
289 <param name="sMismatchSeed" type="integer" value="2" min="0" max="3" label="Maximum number of mismatches permitted in the seed (-n)" help="May be 0, 1, 2, or 3" />
290 <param name="sMismatchQual" type="integer" value="70" min="1" label="Maximum permitted total of quality values at all mismatched read positions (-e)" />
291 <param name="sSeedLen" type="integer" value="28" min="5" label="Seed length (-l)" help="Minimum value is 5" />
292 <param name="sRounding" type="select" label="Whether or not to round to the nearest 10 and saturating at 30 (--nomaqround)" help="Maq accepts quality values in the Phred quality scale, but internally rounds values to the nearest 10, with a maximum of 30. By default, bowtie also rounds this way">
293 <option value="round">Round to nearest 10</option>
294 <option value="noRound">Do not round to nearest 10</option>
295 </param>
296 </when>
297 <when value="vMode">
298 <param name="maxMismatches" type="integer" value="" min="0" max="3" label="Maximum number of mismatches (-v)" help="May be 0, 1, 2, or 3" />
299 </when>
300 </conditional>
301 <param name="sForwardAlign" type="select" label="Choose whether or not to attempt to align against the forward reference strand (--nofw)">
302 <option value="forward">Align against the forward reference strand</option>
303 <option value="noForward">Do not align against the forward reference strand</option>
304 </param>
305 <param name="sReverseAlign" type="select" label="Choose whether or not to attempt to align against the reverse-complement reference strand (--norc)">
306 <option value="reverse">Align against the reverse-complement reference strand</option>
307 <option value="noReverse">Do not align against the reverse-complement reference strand</option>
308 </param>
309 <conditional name="sBestOption">
310 <param name="sBest" type="select" label="Whether or not to make Bowtie guarantee that reported singleton alignments are 'best' in terms of stratum and in terms of the quality values at the mismatched positions (--best)" help="Removes all strand bias. Only affects which alignments are reported by Bowtie. Runs slower with best option">
311 <option value="noBest">Do not use best</option>
312 <option value="doBest">Use best</option>
313 </param>
314 <when value="noBest">
315 <conditional name="sTryHardOption">
316 <param name="sTryHard" type="select" label="Whether or not to try as hard as possible to find valid alignments when they exist (-y)" help="Tryhard mode is much slower than regular mode">
317 <option value="noTryHard">Do not try hard</option>
318 <option value="doTryHard">Try hard</option>
319 </param>
320 <when value="noTryHard">
321 <param name="snMaxBacktracks" type="integer" value="125" min="0" label="Maximum number of backtracks permitted when aligning a read (--maxbts)" />
322 </when>
323 <when value="doTryHard" />
324 </conditional>
325 </when>
326 <when value="doBest">
327 <param name="sdStrata" type="select" label="Whether or not to report only those alignments that fall in the best stratum if many valid alignments exist and are reportable (--strata)">
328 <option value="noStrata">Do not use strata option</option>
329 <option value="doStrata">Use strata option</option>
330 </param>
331 <conditional name="sTryHardOption">
332 <param name="sTryHard" type="select" label="Whether or not to try as hard as possible to find valid alignments when they exist (-y)" help="Tryhard mode is much slower than regular mode">
333 <option value="noTryHard">Do not try hard</option>
334 <option value="doTryHard">Try hard</option>
335 </param>
336 <when value="noTryHard">
337 <param name="sdMaxBacktracks" type="integer" value="800" min="0" label="Maximum number of backtracks permitted when aligning a read (--maxbts)" />
338 </when>
339 <when value="doTryHard" />
340 </conditional>
341 </when>
342 </conditional> <!-- bestOption -->
343 <conditional name="sAllValAlignsOption">
344 <param name="sAllValAligns" type="select" label="Whether or not to report all valid alignments per read (-a)">
345 <option value="noAllValAligns">Do not report all valid alignments</option>
346 <option value="doAllValAligns">Report all valid alignments</option>
347 </param>
348 <when value="noAllValAligns">
349 <param name="sValAlign" type="integer" value="1" min="1" label="Report up to n valid alignments per read (-k)" />
350 </when>
351 <when value="doAllValAligns" />
352 </conditional>
353 <param name="sSuppressAlign" type="integer" value="-1" label="Suppress all alignments for a read if more than n reportable alignments exist (-m)" help="-1 for no limit" />
354 <param name="sMaxFile" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write all reads with a number of valid alignments exceeding the limit set with the -m option to a file (--max)" />
355 <param name="sUnmappedFile" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write all reads that could not be aligned to a file (--un)" />
356 <param name="sOffrate" type="integer" value="-1" label="Override the offrate of the index to n (-o)" help="-1 for default" />
357 <param name="sSeed" type="integer" value="-1" label="Seed for pseudo-random number generator (--seed)" help="-1 for default" />
358 </when> <!-- full -->
359 </conditional> <!-- sParams -->
360 </when> <!-- single -->
361 <when value="paired">
362 <param name="pInput1" type="data" format="fastqsanger,fastqillumina,fastqsolexa" label="Forward FASTQ file" help="Must have ASCII encoded quality scores"/>
363 <param name="pInput2" type="data" format="fastqsanger,fastqillumina,fastqsolexa" label="Reverse FASTQ file" help="File format must match the Forward FASTQ file">
364 <options options_filter_attribute="ext" from_parameter="tool.app.datatypes_registry.datatypes_by_extension" transform_lines="obj.keys()">>
365 <column name="name" index="0"/>
366 <column name="value" index="0"/>
367 <filter type="param_value" ref="pInput1" ref_attribute="ext" column="0"/>
368 </options>
369 </param>
370 <param name="pMaxInsert" type="integer" value="1000" label="Maximum insert size for valid paired-end alignments (-X)" />
371 <param name="pMateOrient" type="select" label="The upstream/downstream mate orientation for valid paired-end alignment against the forward reference strand (--fr/--rf/--ff)">
372 <option value="fr">FR (for Illumina)</option>
373 <option value="rf">RF</option>
374 <option value="ff">FF (for SOLiD)</option>
375 </param>
376 <conditional name="pParams">
377 <param name="pSettingsType" type="select" label="Bowtie settings to use" help="For most mapping needs use Commonly used settings. If you want full control use Full parameter list">
378 <option value="preSet">Commonly used</option>
379 <option value="full">Full parameter list</option>
380 </param>
381 <when value="preSet" />
382 <when value="full">
383 <param name="pSkip" type="integer" value="0" label="Skip the first n pairs (-s)" />
384 <param name="pAlignLimit" type="integer" value="-1" label="Only align the first n pairs (-u)" help="-1 for off" />
385 <param name="pTrimH" type="integer" value="0" label="Trim n bases from high-quality (left) end of each read before alignment (-5)" />
386 <param name="pTrimL" type="integer" value="0" label="Trim n bases from low-quality (right) end of each read before alignment (-3)" />
387 <conditional name="alignModeOption">
388 <param name="alignMode" type="select" label="Alignment mode">
389 <option value="nMode">Maq-like: quality-aware, limit mismatches in seed (-n)</option>
390 <option value="vMode">ignore qualities, limit end-to-end mismatches (-v)</option>
391 </param>
392 <when value="nMode">
393 <param name="pMismatchSeed" type="integer" value="2" min="0" max="3" label="Maximum number of mismatches permitted in the seed (-n)" help="May be 0, 1, 2, or 3" />
394 <param name="pMismatchQual" type="integer" value="70" min="1" label="Maximum permitted total of quality values at all mismatched read positions (-e)" />
395 <param name="pSeedLen" type="integer" value="28" min="5" label="Seed length (-l)" help="Minimum value is 5" />
396 <param name="pRounding" type="select" label="Whether or not to round to the nearest 10 and saturating at 30 (--nomaqround)" help="Maq accepts quality values in the Phred quality scale, but internally rounds values to the nearest 10, with a maximum of 30. By default, bowtie also rounds this way">
397 <option value="round">Round to nearest 10</option>
398 <option value="noRound">Do not round to nearest 10</option>
399 </param>
400 </when>
401 <when value="vMode">
402 <param name="maxMismatches" type="integer" value="" min="0" max="3" label="Maximum number of mismatches (-v)" help="May be 0, 1, 2, or 3" />
403 </when>
404 </conditional>
405 <param name="pMinInsert" type="integer" value="0" label="Minimum insert size for valid paired-end alignments (-I)" />
406 <param name="pForwardAlign" type="select" label="Choose whether or not to attempt to align against the forward reference strand (--nofw)">
407 <option value="forward">Align against the forward reference strand</option>
408 <option value="noForward">Do not align against the forward reference strand</option>
409 </param>
410 <param name="pReverseAlign" type="select" label="Choose whether or not to attempt to align against the reverse-complement reference strand (--norc)">
411 <option value="reverse">Align against the reverse-complement reference strand</option>
412 <option value="noReverse">Do not align against the reverse-complement reference strand</option>
413 </param>
414 <conditional name="pBestOption">
415 <param name="pBest" type="select" label="Whether or not to make Bowtie guarantee that reported singleton alignments are 'best' in terms of stratum and in terms of the quality values at the mismatched positions (--best)" help="Removes all strand bias. Only affects which alignments are reported by Bowtie. Runs slower with best option">
416 <option value="noBest">Do not use best</option>
417 <option value="doBest">Use best</option>
418 </param>
419 <when value="noBest">
420 <conditional name="pTryHardOption">
421 <param name="pTryHard" type="select" label="Whether or not to try as hard as possible to find valid alignments when they exist (-y)" help="Tryhard mode is much slower than regular mode">
422 <option value="noTryHard">Do not try hard</option>
423 <option value="doTryHard">Try hard</option>
424 </param>
425 <when value="noTryHard">
426 <param name="pMaxAlignAttempt" type="integer" value="100" min="1" label="Maximum number of attempts Bowtie will make to match an alignment for one mate with an alignment for the opposite mate (--pairtries)" />
427 <param name="pnMaxBacktracks" type="integer" value="125" min="0" label="Maximum number of backtracks permitted when aligning a read (--maxbts)" />
428 </when>
429 <when value="doTryHard" />
430 </conditional>
431 </when>
432 <when value="doBest">
433 <param name="pdStrata" type="select" label="Whether or not to report only those alignments that fall in the best stratum if many valid alignments exist and are reportable (--strata)">
434 <option value="noStrata">Do not use strata option</option>
435 <option value="doStrata">Use strata option</option>
436 </param>
437 <conditional name="pTryHardOption">
438 <param name="pTryHard" type="select" label="Whether or not to try as hard as possible to find valid alignments when they exist (-y)" help="Tryhard mode is much slower than regular mode">
439 <option value="noTryHard">Do not try hard</option>
440 <option value="doTryHard">Try hard</option>
441 </param>
442 <when value="noTryHard">
443 <param name="pMaxAlignAttempt" type="integer" value="100" min="1" label="Maximum number of attempts Bowtie will make to match an alignment for one mate with an alignment for the opposite mate (--pairtries)" />
444 <param name="pdMaxBacktracks" type="integer" value="800" min="0" label="Maximum number of backtracks permitted when aligning a read (--maxbts)" />
445 </when>
446 <when value="doTryHard" />
447 </conditional>
448 </when>
449 </conditional>
450 <conditional name="pAllValAlignsOption">
451 <param name="pAllValAligns" type="select" label="Whether or not to report all valid alignments per pair (-a)">
452 <option value="noAllValAligns">Do not report all valid alignments</option>
453 <option value="doAllValAligns">Report all valid alignments</option>
454 </param>
455 <when value="noAllValAligns">
456 <param name="pValAlign" type="integer" value="1" min="1" label="Report up to n valid alignments per pair (-k)" />
457 </when>
458 <when value="doAllValAligns" />
459 </conditional>
460 <param name="pSuppressAlign" type="integer" value="-1" label="Suppress all alignments for a pair if more than n reportable alignments exist (-m)" help="-1 for no limit" />
461 <param name="pMaxFile" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write all reads with a number of valid alignments exceeding the limit set with the -m option to a file (--max)" />
462 <param name="pUnmappedFile" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write all reads that could not be aligned to a file (--un)" />
463 <param name="pOffrate" type="integer" value="-1" label="Override the offrate of the index to n (-o)" help="-1 for default" />
464 <param name="pSeed" type="integer" value="-1" label="Seed for pseudo-random number generator (--seed)" help="-1 for default" />
465 </when> <!-- full -->
466 </conditional> <!-- pParams -->
467 </when> <!-- paired -->
468 </conditional> <!-- singlePaired -->
469 <param name="suppressHeader" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Suppress the header in the output SAM file (--sam-nohead)" help="Bowtie produces SAM with several lines of header information by default" />
470 </inputs>
471 <outputs>
472
473
474
475
476
477
478 <data format="map" name="outputM" label="${tool.name} on ${on_string}: mapped reads"/>
479 <data format="sam" name="outputS" label="${tool.name} on ${on_string}: mapped reads">
480
481
482
483
484
485
486 <actions>
487 <conditional name="refGenomeSource.genomeSource">
488 <when value="indexed">
489 <action type="metadata" name="dbkey">
490 <option type="from_data_table" name="bowtie_indexes" column="1" offset="0">
491 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
492 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
493 </option>
494 </action>
495 </when>
496 <when value="history">
497 <action type="metadata" name="dbkey">
498 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
499 </action>
500 </when>
501 </conditional>
502 </actions>
503 </data>
504 <data format="fastq" name="output_suppressed_reads_l" label="${tool.name} on ${on_string}: suppressed reads (L)">
505 <filter>((
506 singlePaired['sPaired'] == "single" and
507 singlePaired['sParams']['sSettingsType'] == "full" and
508 singlePaired['sParams']['sMaxFile'] is True
509 ) or (
510 singlePaired['sPaired'] == "paired" and
511 singlePaired['pParams']['pSettingsType'] == "full" and
512 singlePaired['pParams']['pMaxFile'] is True
513 ))
514 </filter>
515 <actions>
516 <conditional name="singlePaired.sPaired">
517 <when value="single">
518 <action type="format">
519 <option type="from_param" name="singlePaired.sInput1" param_attribute="ext" />
520 </action>
521 </when>
522 <when value="paired">
523 <action type="format">
524 <option type="from_param" name="singlePaired.pInput1" param_attribute="ext" />
525 </action>
526 </when>
527 </conditional>
528 </actions>
529 </data>
530 <data format="fastq" name="output_suppressed_reads_r" label="${tool.name} on ${on_string}: suppressed reads (R)">
531 <filter>singlePaired['sPaired'] == "paired"</filter>
532 <filter>singlePaired['pParams']['pSettingsType'] == "full"</filter>
533 <filter>singlePaired['pParams']['pMaxFile'] is True</filter>
534 <actions>
535 <conditional name="singlePaired.sPaired">
536 <when value="single">
537 <action type="format">
538 <option type="from_param" name="singlePaired.sInput1" param_attribute="ext" />
539 </action>
540 </when>
541 <when value="paired">
542 <action type="format">
543 <option type="from_param" name="singlePaired.pInput1" param_attribute="ext" />
544 </action>
545 </when>
546 </conditional>
547 </actions>
548 </data>
549 <data format="fastq" name="output_unmapped_reads_l" label="${tool.name} on ${on_string}: unmapped reads (L)">
550 <filter>
551 ((
552 singlePaired['sPaired'] == "single" and
553 singlePaired['sParams']['sSettingsType'] == "full" and
554 singlePaired['sParams']['sUnmappedFile'] is True
555 ) or (
556 singlePaired['sPaired'] == "paired" and
557 singlePaired['pParams']['pSettingsType'] == "full" and
558 singlePaired['pParams']['pUnmappedFile'] is True
559 ))
560 </filter>
561 <actions>
562 <conditional name="singlePaired.sPaired">
563 <when value="single">
564 <action type="format">
565 <option type="from_param" name="singlePaired.sInput1" param_attribute="ext" />
566 </action>
567 </when>
568 <when value="paired">
569 <action type="format">
570 <option type="from_param" name="singlePaired.pInput1" param_attribute="ext" />
571 </action>
572 </when>
573 </conditional>
574 </actions>
575 </data>
576 <data format="fastq" name="output_unmapped_reads_r" label="${tool.name} on ${on_string}: unmapped reads (R)">
577 <filter>singlePaired['sPaired'] == "paired"</filter>
578 <filter>singlePaired['pParams']['pSettingsType'] == "full"</filter>
579 <filter>singlePaired['pParams']['pUnmappedFile'] is True</filter>
580 <actions>
581 <conditional name="singlePaired.sPaired">
582 <when value="single">
583 <action type="format">
584 <option type="from_param" name="singlePaired.sInput1" param_attribute="ext" />
585 </action>
586 </when>
587 <when value="paired">
588 <action type="format">
589 <option type="from_param" name="singlePaired.pInput1" param_attribute="ext" />
590 </action>
591 </when>
592 </conditional>
593 </actions>
594 </data>
595 </outputs>
596 <tests>
597 <test>
598 <!--
599 Bowtie command:
600 bowtie -q -p 4 -S +sam-nohead chrM_base test-data/bowtie_in2.fastqsanger > bowtie_out6_u.sam
601 sort bowtie_out6_u.sam > bowtie_out6.sam
602 -p is the number of threads. You need to replace the + with 2 dashes.
603 chrM_base needs to be the base location/name of the index files.
604 -->
605 <param name="genomeSource" value="indexed" />
606 <!-- this is the backwards-compatible "unique value" for this index, not an actual path -->
607 <param name="index" value="equCab2chrM" />
608 <param name="sPaired" value="single" />
609 <param name="sInput1" ftype="fastqsanger" value="bowtie_in2.fastqsanger" />
610 <param name="sSettingsType" value="preSet" />
611 <param name="suppressHeader" value="true" />
612 <output name="output" ftype="sam" file="bowtie_out6.sam" sort="True" />
613 </test>
614 <test>
615 <!--
616 Bowtie command:
617 bowtie-build -f test-data/phiX.fasta phiX_base
618 bowtie -q -X 1000 +ff -p 4 -S +sam-nohead -n 2 -e 70 -l 28 +pairtries 100 +maxbts 800 +best +un bowtie_out8_u.fastq phiX_base -1 test-data/bowtie_in5.fastqsanger -2 test-data/bowtie_in6.fastqsanger > bowtie_out7_u.sam
619 sort bowtie_out7_u.sam > bowtie_out7.sam
620 sort bowtie_out8_u_1.sam > bowtie_out8_1.sam
621 sort bowtie_out8_u_2.sam > bowtie_out8_2.sam
622 Then also need to modify bowtie_out8_1.sam and bowtie_out8_2.sam so that all @ lines come before sequence lines.
623 -p is the number of threads. You need to replace the + with 2 dashes.
624 The two unmapped output files will be named bowtie_out8_1.fastq and bowtie_out8_2.fastq.
625 chrM_base is the index files' location/base name.
626 -->
627 <param name="genomeSource" value="history" />
628 <param name="ownFile" value="phiX.fasta" />
629 <param name="indexSettings" value="indexPreSet" />
630 <param name="sPaired" value="paired" />
631 <param name="pInput1" ftype="fastqsanger" value="bowtie_in5.fastqsanger" />
632 <param name="pInput2" ftype="fastqsanger" value="bowtie_in6.fastqsanger" />
633 <param name="pMaxInsert" value="1000" />
634 <param name="pMateOrient" value="ff" />
635 <param name="pSettingsType" value="full" />
636 <param name="pSkip" value="0" />
637 <param name="pAlignLimit" value="-1" />
638 <param name="pTrimH" value="0" />
639 <param name="pTrimL" value="0" />
640 <param name="alignMode" value="nMode" />
641 <param name="pMismatchSeed" value="2" />
642 <param name="pMismatchQual" value="70" />
643 <param name="pSeedLen" value="28" />
644 <param name="pRounding" value="round" />
645 <param name="pMinInsert" value="0" />
646 <param name="pMaxAlignAttempt" value="100" />
647 <param name="pForwardAlign" value="forward" />
648 <param name="pReverseAlign" value="reverse" />
649 <param name="pTryHard" value="noTryHard" />
650 <param name="pValAlign" value="1" />
651 <param name="pAllValAligns" value="noAllValAligns" />
652 <param name="pSuppressAlign" value="-1" />
653 <param name="pUnmappedFile" value="true" />
654 <param name="pMaxFile" value="false" />
655 <param name="pBest" value="doBest" />
656 <param name="pdMaxBacktracks" value="800" />
657 <param name="pdStrata" value="noStrata" />
658 <param name="pOffrate" value="-1" />
659 <param name="pSeed" value="-1" />
660 <param name="suppressHeader" value="true" />
661 <output name="output" ftype="sam" file="bowtie_out7.sam" sort="True" />
662 <output name="output_unmapped_reads_l" ftype="fastqsanger" file="bowtie_out8_1.fastq" sort="True" />
663 <output name="output_unmapped_reads_r" ftype="fastqsanger" file="bowtie_out8_2.fastq" sort="True" />
664 </test>
665 <!-- start testing of non-sanger variant fastq reads -->
666 <test>
667 <param name="genomeSource" value="history" />
668 <param name="ownFile" value="phiX.fasta" />
669 <param name="indexSettings" value="indexPreSet" />
670 <param name="sPaired" value="paired" />
671 <param name="pInput1" ftype="fastqillumina" value="bowtie_in5.fastqillumina" />
672 <param name="pInput2" ftype="fastqillumina" value="bowtie_in6.fastqillumina" />
673 <param name="pMaxInsert" value="1000" />
674 <param name="pMateOrient" value="ff" />
675 <param name="pSettingsType" value="full" />
676 <param name="pSkip" value="0" />
677 <param name="pAlignLimit" value="-1" />
678 <param name="pTrimH" value="0" />
679 <param name="pTrimL" value="0" />
680 <param name="alignMode" value="nMode" />
681 <param name="pMismatchSeed" value="2" />
682 <param name="pMismatchQual" value="70" />
683 <param name="pSeedLen" value="28" />
684 <param name="pRounding" value="round" />
685 <param name="pMinInsert" value="0" />
686 <param name="pMaxAlignAttempt" value="100" />
687 <param name="pForwardAlign" value="forward" />
688 <param name="pReverseAlign" value="reverse" />
689 <param name="pTryHard" value="noTryHard" />
690 <param name="pValAlign" value="1" />
691 <param name="pAllValAligns" value="noAllValAligns" />
692 <param name="pSuppressAlign" value="-1" />
693 <param name="pUnmappedFile" value="true" />
694 <param name="pMaxFile" value="false" />
695 <param name="pBest" value="doBest" />
696 <param name="pdMaxBacktracks" value="800" />
697 <param name="pdStrata" value="noStrata" />
698 <param name="pOffrate" value="-1" />
699 <param name="pSeed" value="-1" />
700 <param name="suppressHeader" value="true" />
701 <output name="output" ftype="sam" file="bowtie_out7.sam" sort="True" />
702 <output name="output_unmapped_reads_l" ftype="fastqillumina" file="bowtie_out8_1.fastqillumina.sorted" sort="True" />
703 <output name="output_unmapped_reads_r" ftype="fastqillumina" file="bowtie_out8_2.fastqillumina.sorted" sort="True" />
704 </test>
705 <test>
706 <param name="genomeSource" value="history" />
707 <param name="ownFile" value="phiX.fasta" />
708 <param name="indexSettings" value="indexPreSet" />
709 <param name="sPaired" value="paired" />
710 <param name="pInput1" ftype="fastqsolexa" value="bowtie_in5.fastqsolexa" />
711 <param name="pInput2" ftype="fastqsolexa" value="bowtie_in6.fastqsolexa" />
712 <param name="pMaxInsert" value="1000" />
713 <param name="pMateOrient" value="ff" />
714 <param name="pSettingsType" value="full" />
715 <param name="pSkip" value="0" />
716 <param name="pAlignLimit" value="-1" />
717 <param name="pTrimH" value="0" />
718 <param name="pTrimL" value="0" />
719 <param name="alignMode" value="nMode" />
720 <param name="pMismatchSeed" value="2" />
721 <param name="pMismatchQual" value="70" />
722 <param name="pSeedLen" value="28" />
723 <param name="pRounding" value="round" />
724 <param name="pMinInsert" value="0" />
725 <param name="pMaxAlignAttempt" value="100" />
726 <param name="pForwardAlign" value="forward" />
727 <param name="pReverseAlign" value="reverse" />
728 <param name="pTryHard" value="noTryHard" />
729 <param name="pValAlign" value="1" />
730 <param name="pAllValAligns" value="noAllValAligns" />
731 <param name="pSuppressAlign" value="-1" />
732 <param name="pUnmappedFile" value="true" />
733 <param name="pMaxFile" value="false" />
734 <param name="pBest" value="doBest" />
735 <param name="pdMaxBacktracks" value="800" />
736 <param name="pdStrata" value="noStrata" />
737 <param name="pOffrate" value="-1" />
738 <param name="pSeed" value="-1" />
739 <param name="suppressHeader" value="true" />
740 <output name="output" ftype="sam" file="bowtie_out7.sam" sort="True" />
741 <output name="output_unmapped_reads_l" ftype="fastqsolexa" file="bowtie_out8_1.fastqsolexa.sorted" sort="True" />
742 <output name="output_unmapped_reads_r" ftype="fastqsolexa" file="bowtie_out8_2.fastqsolexa.sorted" sort="True" />
743 </test>
744 <!-- end testing of non-sanger variant fastq reads -->
745 <test>
746 <!--
747 Bowtie command:
748 bowtie -q -p 4 -S +sam-nohead -n 2 -e 70 -l 28 -y -k 1 chrM_base test-data/bowtie_in2.fastqsanger > bowtie_out9_u.sam
749 sort bowtie_out9_u.sam > bowtie_out9.sam
750 -p is the number of threads. You need to replace the + with 2 dashes.
751 chrM_base is the index files' location/base name.
752 -->
753 <param name="genomeSource" value="indexed" />
754 <!-- this is the backwards-compatible "unique value" for this index, not an actual path -->
755 <param name="index" value="equCab2chrM" />
756 <param name="sPaired" value="single" />
757 <param name="sInput1" ftype="fastqsanger" value="bowtie_in2.fastqsanger" />
758 <param name="sSettingsType" value="full" />
759 <param name="sSkip" value="0" />
760 <param name="sAlignLimit" value="-1" />
761 <param name="sTrimH" value="0" />
762 <param name="sTrimL" value="0" />
763 <param name="alignMode" value="nMode" />
764 <param name="sMismatchSeed" value="2" />
765 <param name="sMismatchQual" value="70" />
766 <param name="sSeedLen" value="28" />
767 <param name="sRounding" value="round" />
768 <param name="sForwardAlign" value="forward" />
769 <param name="sReverseAlign" value="reverse" />
770 <param name="sTryHard" value="doTryHard" />
771 <param name="sValAlign" value="1" />
772 <param name="sAllValAligns" value="noAllValAligns" />
773 <param name="sSuppressAlign" value="-1" />
774 <param name="sUnmappedFile" value="false" />
775 <param name="sMaxFile" value="false" />
776 <param name="sBest" value="noBest" />
777 <param name="sOffrate" value="-1" />
778 <param name="sSeed" value="-1" />
779 <param name="suppressHeader" value="true" />
780 <output name="output" ftype="sam" file="bowtie_out9.sam" sort="True" />
781 </test>
782 <test>
783 <!--
784 Bowtie command:
785 bowtie-build +offrate 5 +ftabchars 10 +little -f test-data/phiX.fasta phiX_base
786 bowtie -q -X 1000 +ff -p 4 -S +sam-nohead phiX_base -1 test-data/bowtie_in5.fastqsanger -2 test-data/bowtie_in6.fastqsanger > bowtie_out10_u.sam
787 sort bowtie_out10_u.sam > bowtie_out10.sam
788 -p is the number of threads. You need to replace the + with 2 dashes.
789 chrM_base is the index files' location/base name.
790 -->
791 <param name="genomeSource" value="history" />
792 <param name="ownFile" value="phiX.fasta" />
793 <param name="indexSettings" value="indexFull" />
794 <param name="autoB" value="auto" />
795 <param name="nodc" value="dc" />
796 <param name="noref" value="ref" />
797 <param name="offrate" value="5" />
798 <param name="ftab" value="10" />
799 <param name="ntoa" value="no" />
800 <param name="endian" value="little" />
801 <param name="seed" value="-1" />
802 <param name="sPaired" value="paired" />
803 <param name="pInput1" ftype="fastqsanger" value="bowtie_in5.fastqsanger" />
804 <param name="pInput2" ftype="fastqsanger" value="bowtie_in6.fastqsanger" />
805 <param name="pMaxInsert" value="1000" />
806 <param name="pMateOrient" value="ff" />
807 <param name="pSettingsType" value="preSet" />
808 <param name="suppressHeader" value="true" />
809 <output name="output" ftype="sam" file="bowtie_out10.sam" sort="True" />
810 </test>
811 </tests>
812
813 <help>
814
815 **What it does**
816
817 Bowtie_ is a short read aligner designed to be ultrafast and memory-efficient. It is developed by Ben Langmead and Cole Trapnell. Please cite: Langmead B, Trapnell C, Pop M, Salzberg SL. Ultrafast and memory-efficient alignment of short DNA sequences to the human genome. Genome Biology 10:R25.
818
819 .. _Bowtie: http://bowtie-bio.sourceforge.net/index.shtml
820
821 ------
822
823 **Know what you are doing**
824
825 .. class:: warningmark
826
827 There is no such thing (yet) as an automated gearshift in short read mapping. It is all like stick-shift driving in San Francisco. In other words = running this tool with default parameters will probably not give you meaningful results. A way to deal with this is to **understand** the parameters by carefully reading the `documentation`__ and experimenting. Fortunately, Galaxy makes experimenting easy.
828
829 .. __: http://bowtie-bio.sourceforge.net/index.shtml
830
831 ------
832
833 **Input formats**
834
835 Bowtie accepts files in Sanger FASTQ or FASTA format.
836
837 ------
838
839 **A Note on Built-in Reference Genomes**
840
841 The default variant for all genomes is "Full", defined as all primary chromosomes (or scaffolds/contigs) including mitochondrial plus associated unmapped, plasmid, and other segments. When only one version of a genome is available in this tool, it represents the default "Full" variant. Some genomes will have more than one variant available. The "Canonical Male" or sometimes simply "Canonical" variant contains the primary chromosomes for a genome. For example a human "Canonical" variant contains chr1-chr22, chrX, chrY, and chrM. The "Canonical Female" variant contains the primary chromosomes excluding chrY.
842
843 ------
844
845 **Outputs**
846
847 The output is in SAM format, and has the following columns::
848
849 Column Description
850 -------- --------------------------------------------------------
851 1 QNAME Query (pair) NAME
852 2 FLAG bitwise FLAG
853 3 RNAME Reference sequence NAME
854 4 POS 1-based leftmost POSition/coordinate of clipped sequence
855 5 MAPQ MAPping Quality (Phred-scaled)
856 6 CIGAR extended CIGAR string
857 7 MRNM Mate Reference sequence NaMe ('=' if same as RNAME)
858 8 MPOS 1-based Mate POSition
859 9 ISIZE Inferred insert SIZE
860 10 SEQ query SEQuence on the same strand as the reference
861 11 QUAL query QUALity (ASCII-33 gives the Phred base quality)
862 12 OPT variable OPTional fields in the format TAG:VTYPE:VALUE
863
864 The flags are as follows::
865
866 Flag Description
867 ------ -------------------------------------
868 0x0001 the read is paired in sequencing
869 0x0002 the read is mapped in a proper pair
870 0x0004 the query sequence itself is unmapped
871 0x0008 the mate is unmapped
872 0x0010 strand of the query (1 for reverse)
873 0x0020 strand of the mate
874 0x0040 the read is the first read in a pair
875 0x0080 the read is the second read in a pair
876 0x0100 the alignment is not primary
877
878 It looks like this (scroll sideways to see the entire example)::
879
880 QNAME FLAG RNAME POS MAPQ CIAGR MRNM MPOS ISIZE SEQ QUAL OPT
881 HWI-EAS91_1_30788AAXX:1:1:1761:343 4 * 0 0 * * 0 0 AAAAAAANNAAAAAAAAAAAAAAAAAAAAAAAAAAACNNANNGAGTNGNNNNNNNGCTTCCCACAGNNCTGG hhhhhhh;;hhhhhhhhhhh^hOhhhhghhhfhhhgh;;h;;hhhh;h;;;;;;;hhhhhhghhhh;;Phhh
882 HWI-EAS91_1_30788AAXX:1:1:1578:331 4 * 0 0 * * 0 0 GTATAGANNAATAAGAAAAAAAAAAATGAAGACTTTCNNANNTCTGNANNNNNNNTCTTTTTTCAGNNGTAG hhhhhhh;;hhhhhhhhhhhhhhhhhhhhhhhhhhhh;;h;;hhhh;h;;;;;;;hhhhhhhhhhh;;hhVh
883
884 -------
885
886 **Bowtie settings**
887
888 All of the options have a default value. You can change any of them. Most of the options in Bowtie have been implemented here.
889
890 ------
891
892 **Bowtie parameter list**
893
894 This is an exhaustive list of Bowtie options:
895
896 For indexing (bowtie-build)::
897
898 -a No auto behavior. Disable the default behavior where bowtie automatically
899 selects values for --bmax/--bmaxdivn/--dcv/--packed parameters according
900 to the memory available. [off]
901 --packed Packing. Use a packed representation for DNA strings. [auto]
902 --bmax INT Suffix maximum. The maximum number of suffixes allowed in a block. [auto]
903 --bmaxdivn INT Suffix maximum fraction. The maximum number of suffixes allowed in a block
904 expressed as a fraction of the length of the reference. [4]
905 --dcv INT Difference-cover sample. Use INT as the period for the difference-cover
906 sample. [1024]
907 --nodc INT No difference-cover sample. Disable the difference-cover sample. [off]
908 -r No reference indexes. Do not build the NAME.3.ebwt and NAME.4.ebwt portions
909 of the index. Used only for paired-end alignment. [off]
910 -o Offrate. How many Burrows-Wheeler rows get marked by the indexer. The
911 indexer will mark every 2^INT rows. The marked rows correspond to rows on
912 the genome. [5]
913 -t INT The ftab lookup table used to calculate an initial Burrows-Wheeler range
914 with respect to the first INT characters of the query. Ftab size is 4^(INT+1)
915 bytes. [10]
916 --ntoa N conversion. Convert Ns to As before building the index. Otherwise, Ns are
917 simply excluded from the index and Bowtie will not find alignments that
918 overlap them. [off]
919 --big Endianness. Endianness to use when serializing integers to the index file. [off]
920 --little Endianness. [--little]
921 --seed INT Random seed. Use INT as the seed for the pseudo-random number generator. [off]
922
923 For aligning (bowtie)::
924
925 -s INT Skip. Do not align the first INT reads or pairs in the input. [off]
926 -u INT Align limit. Only align the first INT reads/pairs from the input. [no limit]
927 -5 INT High-quality trim. Trim INT bases from the high-quality (left) end of each
928 read before alignment. [0]
929 -3 INT Low-quality trim. Trim INT bases from the low-quality (right) end of each
930 read before alignment. [0]
931 -n INT Mismatch seed. Maximum number of mismatches permitted in the seed (defined
932 with seed length option). Can be 0, 1, 2, or 3. [2]
933 -e INT Mismatch quality. Maximum permitted total of quality values at mismatched
934 read positions. Bowtie rounds quality values to the nearest 10 and saturates
935 at 30. [70]
936 -l INT Seed length. The number of bases on the high-quality end of the read to
937 which the -n ceiling applies. Must be at least 5. [28]
938 --nomaqround Suppress Maq rounding. Values are internally rounded to the nearest 10 and
939 saturate at 30. This options turns off that rounding. [off]
940 -v INT Maq- or SOAP-like alignment policy. This option turns off the default
941 Maq-like alignment policy in favor of a SOAP-like one. End-to-end alignments
942 with at most INT mismatches. [off]
943 -I INT Minimum insert. The minimum insert size for valid paired-end alignments.
944 Does checking on untrimmed reads if -5 or -3 is used. [0]
945 -X INT Maximum insert. The maximum insert size for valid paired-end alignments.
946 Does checking on untrimmed reads if -5 or -3 is used. [250]
947 --fr Mate orientation. The upstream/downstream mate orientations for a valid
948 paired-end alignment against the forward reference strand. [--fr]
949 --rf Mate orientation. [off]
950 --ff Mate orientation. [off]
951 --pairtries INT Maximum alignment attempts for paired-end data. [100]
952 --nofw No forward aligning. Choosing this option means that Bowtie will not attempt
953 to align against the forward reference strand. [off]
954 --norc No reverse-complement aligning. Setting this will mean that Bowtie will not
955 attempt to align against the reverse-complement reference strand. [off]
956 --un FILENAME Write all reads that could not be aligned to file [off]
957 --max FILENAME Write all reads with a number of valid alignments exceeding the limit
958 set with the -m option to file [off]
959 --maxbts INT Maximum backtracks. The maximum number of backtracks permitted when aligning
960 a read in -n 2 or -n 3 mode. [125 without --best] [800 with --best]
961 -y Try hard. Try as hard as possible to find valid alignments when they exist,
962 including paired-end alignments. [off]
963 --chunkmbs INT Thread memory. The number of megabytes of memory a given thread is given to
964 store path descriptors in --best mode. [32]
965 -k INT Valid alignments. The number of valid alignments per read or pair. [off]
966 -a All valid alignments. Choosing this means that all valid alignments per read
967 or pair will be reported. [off]
968 -m INT Suppress alignments. Suppress all alignments for a particular read or pair
969 if more than INT reportable alignments exist for it. [no limit]
970 --best Best mode. Make Bowtie guarantee that reported singleton alignments are
971 "best" in terms of stratum (the number of mismatches) and quality values at
972 mismatched position. [off]
973 --strata Best strata. When running in best mode, report alignments that fall into the
974 best stratum if there are ones falling into more than one. [off]
975 -o INT Offrate override. Override the offrate of the index with INT. Some row
976 markings are discarded when index read into memory. INT must be greater than
977 the value used to build the index (default: 5). [off]
978 --seed INT Random seed. Use INT as the seed for the pseudo-random number generator. [off]
979 --snpphred INT Use INT as the SNP penalty for decoding colorspace alignments. True ratio of
980 SNPs per base in the subject genome. [see --snpfrac]
981 --snpfrac DEC Use DEC as the estimated ratio of SNPs per base when decoding colorspace
982 alignments. [0.001]
983 --col-keepends Keep the extreme-end nucleotides and qualities when decoding colorspace
984 alignments. [off]
985
986 </help>
987 </tool>