comparison enhanced_bowtie_wrapper 1.0.0.xml @ 1:e28f8c08e736 draft

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