0
|
1 <tool id="bismark_bowtie2" name="Bismark" version="0.7.7.2">
|
|
2 <!-- Wrapper compatible with Bismark version 0.7.7 -->
|
|
3 <description>bisulfite mapper (bowtie2)</description>
|
|
4 <!--<version_command>bismark version</version_command>-->
|
|
5 <requirements>
|
|
6 <requirement type="set_environment">SCRIPT_PATH</requirement>
|
|
7 <requirement type="package" version="0.12.8">bowtie</requirement>
|
|
8 <requirement type="package" version="2.0.0-beta7">bowtie2</requirement>
|
|
9 </requirements>
|
|
10 <parallelism method="basic"></parallelism>
|
|
11 <command interpreter="python">
|
|
12 bismark_wrapper.py
|
|
13
|
|
14 ## Change this to accommodate the number of threads you have available.
|
4
|
15 --num-threads 12
|
0
|
16
|
|
17 --bismark_path \$SCRIPT_PATH
|
|
18
|
|
19 --bowtie2
|
|
20
|
|
21 ##
|
|
22 ## Bismark Genome Preparation, if desired.
|
|
23 ##
|
|
24
|
|
25 ## Handle reference file.
|
|
26 #if $refGenomeSource.genomeSource == "history":
|
|
27 --own-file=$refGenomeSource.ownFile
|
|
28 #else:
|
|
29 --indexes-path ${refGenomeSource.index.fields.path}
|
|
30 #end if
|
|
31
|
|
32
|
|
33 ##
|
|
34 ## Input parameters
|
|
35 ##
|
|
36
|
|
37
|
|
38 #if $singlePaired.sPaired == "single":
|
|
39 --single-paired $singlePaired.input_singles
|
|
40
|
|
41 #if $singlePaired.input_singles.ext == "fastqillumina":
|
|
42 --phred64-quals
|
|
43 --fastq
|
|
44 #elif $singlePaired.input_singles.ext == "fastqsanger":
|
|
45 --fastq
|
|
46 #elif $singlePaired.input_singles.ext == "fasta":
|
|
47 --fasta
|
|
48 #end if
|
|
49 #else:
|
4
|
50 --mate-paired
|
|
51 #set $mate1 = list()
|
|
52 #set $mate2 = list()
|
|
53 #for $mate_pair in $singlePaired.mate_list
|
|
54 $mate1.append( str($mate_pair.input_mate1) )
|
|
55 $mate2.append( str($mate_pair.input_mate2) )
|
|
56 #end for
|
0
|
57
|
4
|
58 --mate1 #echo ','.join($mate1)
|
|
59 --mate2 #echo ','.join($mate2)
|
|
60
|
|
61 #if $singlePaired.mate_list[0].input_mate1.ext == "fastqillumina":
|
0
|
62 --phred64-quals
|
|
63 --fastq
|
4
|
64 #elif $singlePaired.mate_list[0].input_mate1.ext == "fastqsanger":
|
0
|
65 --fastq
|
4
|
66 #elif $singlePaired.mate_list[0].input_mate1.ext == "fasta":
|
0
|
67 --fasta
|
|
68 #end if
|
|
69
|
|
70 -I $singlePaired.minInsert
|
|
71 -X $singlePaired.maxInsert
|
|
72 #end if
|
|
73
|
|
74
|
|
75 ## for now hardcode the value for the required memory per thread in --best mode
|
|
76 --chunkmbs 512
|
|
77
|
|
78
|
|
79 #if $params.settingsType == "custom":
|
|
80
|
|
81 ## default 20
|
|
82 --seed-len $params.seed_len
|
|
83 ## default 0
|
|
84 --seed-mismatches $params.seed_mismatches
|
|
85 ## default 15
|
|
86 --seed-extention-attempts $params.seed_extention_attempts
|
|
87 ## default 2
|
|
88 --max-reseed $params.max_reseed
|
|
89
|
|
90 ## default 70
|
|
91 ##--maqerr $params.maqerr
|
|
92
|
|
93 ## default unlimited
|
|
94 #if $params.qupto != 0:
|
|
95 --qupto $params.qupto
|
|
96 #end if
|
|
97 #if $params.skip_reads != 0:
|
|
98 --skip-reads $params.skip_reads
|
|
99 #end if
|
|
100
|
|
101 ## if set, disable the original behaviour
|
|
102 $params.no_mixed
|
|
103 ## if set, disable the original behaviour
|
|
104 $params.no_discordant
|
|
105
|
|
106
|
|
107 ###if str($params.isReportOutput) == "yes":
|
|
108 ## --output-report-file $report_file
|
|
109 ###end if
|
|
110
|
|
111 #end if
|
|
112
|
|
113 ##
|
|
114 ## Output parameters.
|
|
115 ##
|
|
116 --output $output
|
|
117 $suppress_header
|
|
118
|
|
119 #if str( $singlePaired.sPaired ) == "single"
|
|
120 #if $output_unmapped_reads_l
|
|
121 --output-unmapped-reads $output_unmapped_reads_l
|
|
122 #end if
|
|
123 #if $output_suppressed_reads_l
|
|
124 --output-suppressed-reads $output_suppressed_reads_l
|
|
125 #end if
|
|
126 #else
|
|
127 #if $output_unmapped_reads_l and $output_unmapped_reads_r
|
|
128 --output-unmapped-reads-l $output_unmapped_reads_l
|
|
129 --output-unmapped-reads-r $output_unmapped_reads_r
|
|
130 #end if
|
|
131 #if $output_suppressed_reads_l and $output_suppressed_reads_l
|
|
132 --output-suppressed-reads-l $output_suppressed_reads_l
|
|
133 --output-suppressed-reads-r $output_suppressed_reads_r
|
|
134 #end if
|
|
135 #end if
|
|
136
|
|
137 </command>
|
|
138 <inputs>
|
|
139 <conditional name="refGenomeSource">
|
|
140 <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">
|
|
141 <option value="indexed">Use a built-in index</option>
|
|
142 <option value="history">Use one from the history</option>
|
|
143 </param>
|
|
144 <when value="indexed">
|
|
145 <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact your Galaxy admin">
|
|
146 <options from_data_table="bowtie2_indexes">
|
|
147 <filter type="sort_by" column="2"/>
|
|
148 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
|
|
149 </options>
|
|
150 </param>
|
|
151 </when> <!-- build-in -->
|
|
152 <when value="history">
|
|
153 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
|
|
154 </when> <!-- history -->
|
|
155 </conditional> <!-- refGenomeSource -->
|
|
156
|
|
157 <!-- Input Parameters -->
|
|
158 <conditional name="singlePaired">
|
|
159 <param name="sPaired" type="select" label="Is this library mate-paired?">
|
|
160 <option value="single">Single-end</option>
|
|
161 <option value="paired">Paired-end</option>
|
|
162 </param>
|
|
163 <when value="single">
|
|
164 <param name="input_singles" type="data" format="fastqsanger,fastqillumina,fastq,fasta" label="FASTQ/FASTA file" help="FASTQ or FASTA files." />
|
|
165 </when>
|
|
166 <when value="paired">
|
4
|
167 <repeat name="mate_list" title="Paired End Pairs" min="1">
|
|
168 <param name="input_mate1" type="data" format="fastqsanger,fastqillumina,fastq,fasta" label="Mate pair 1" help="FASTQ or FASTA files." />
|
|
169 <param name="input_mate2" type="data" format="fastqsanger,fastqillumina,fastq,fasta" label="Mate pair 2" help="FASTQ or FASTA files." />
|
|
170 </repeat>
|
0
|
171 <param name="minInsert" type="integer" value="0" label="Minimum insert size for valid paired-end alignments" />
|
|
172 <param name="maxInsert" type="integer" value="250" label="Maximum insert size for valid paired-end alignments" />
|
|
173 </when>
|
|
174 </conditional>
|
|
175
|
|
176
|
|
177 <conditional name="params">
|
|
178 <param name="settingsType" type="select" label="Bismark settings to use" help="You can use the default settings or set custom values for any of Bismark's parameters.">
|
|
179 <option value="default">Use Defaults</option>
|
|
180 <option value="custom">Full parameter list</option>
|
|
181 </param>
|
|
182 <when value="default" />
|
|
183 <!-- Full/advanced params. -->
|
|
184 <when value="custom">
|
|
185 <!-- -N -->
|
|
186 <param name="seed_mismatches" type="integer" value="0" label="Number of mismatches to be allowed in a seed alignment during multiseed alignment" />
|
|
187 <!-- -L -->
|
|
188 <param name="seed_len" type="integer" value="20" label="Length of the seed substrings to align during multiseed alignment" />
|
|
189 <!--
|
|
190 <param name="maqerr" type="integer" value="70" label="Maximum permitted total of quality values at all mismatched read positions throughout the entire alignment, not just in the 'seed'." />
|
|
191 -->
|
|
192 <!-- -D -->
|
|
193 <param name="seed_extention_attempts" type="integer" value="15" label="How many consecutive seed extension attempts can fail before Bowtie 2 moves on" />
|
|
194 <!-- -R -->
|
|
195 <param name="max_reseed" type="integer" value="2" label="Maximum number of times Bowtie 2 will re-seed reads with repetitive seeds" />
|
|
196
|
|
197 <param name="qupto" type="integer" value="0" label="Only aligns the first N reads or read pairs from the input" help="Default is 0 and means 'no-limit'." />
|
|
198 <param name="skip_reads" type="integer" value="0" label="Skip (i.e. do not align) the first N reads or read pairs from the input" />
|
|
199
|
|
200 <param name="no_discordant" type="boolean" truevalue="--no-discordant" falsevalue="" checked="False" label="Disable looking for discordant alignments if it cannot find any concordant alignments" help="" />
|
|
201 <param name="no_mixed" type="boolean" truevalue="--no-mixed" falsevalue="" checked="False" label="Disable Bowtie 2's behaviour to try to find alignments for the individual mates" help="" />
|
|
202
|
|
203 <param name="suppressed_read_file" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write ambiguous reads to an extra output file." help="Write all reads which produce more than one valid alignment with the same number of lowest mismatches or other reads that fail to align uniquely." />
|
|
204 <param name="unmapped_read_file" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write all reads that could not be aligned to a file" />
|
|
205 <!-- output Options -->
|
|
206 <!--
|
|
207 <param name="isReportOutput" type="select" label="Offer all report files concatenated in one file.">
|
|
208 <option value="yes">yes</option>
|
|
209 <option value="no">no</option>
|
|
210 </param>
|
|
211 -->
|
|
212 <!--end output options -->
|
|
213 </when> <!-- full -->
|
|
214 </conditional> <!-- params -->
|
|
215 <param name="suppress_header" type="boolean" truevalue="--suppress-header" falsevalue="" checked="False" label="Suppress the header in the output SAM file" help="Bowtie produces SAM with several lines of header information by default" />
|
|
216 </inputs>
|
|
217 <outputs>
|
|
218 <!-- that does not work
|
|
219 <data format="txt" name="report_file" label="${tool.name} on ${on_string}: Report">
|
|
220 <filter>str($params.isReportOutput) == "yes"</filter>
|
|
221 </data>
|
|
222 -->
|
|
223 <data format="sam" name="output" label="${tool.name} on ${on_string}: mapped reads">
|
|
224 <actions>
|
|
225 <conditional name="refGenomeSource.genomeSource">
|
|
226 <when value="indexed">
|
|
227 <action type="metadata" name="dbkey">
|
|
228 <option type="from_data_table" name="bowtie2_indexes" column="1" offset="0">
|
|
229 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
|
|
230 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
|
|
231 </option>
|
|
232 </action>
|
|
233 </when>
|
|
234 <when value="history">
|
|
235 <action type="metadata" name="dbkey">
|
|
236 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
|
|
237 </action>
|
|
238 </when>
|
|
239 </conditional>
|
|
240 </actions>
|
|
241 </data>
|
|
242
|
|
243 <data format="fastq" name="output_suppressed_reads_l" label="${tool.name} on ${on_string}: suppressed reads (L)">
|
|
244 <filter>
|
|
245 ((
|
|
246 params['settingsType'] == "custom" and
|
|
247 params['suppressed_read_file'] is True
|
|
248 ))
|
|
249 </filter>
|
|
250 <actions>
|
|
251 <conditional name="singlePaired.sPaired">
|
|
252 <when value="single">
|
|
253 <action type="format">
|
|
254 <option type="from_param" name="singlePaired.input_singles" param_attribute="ext" />
|
|
255 </action>
|
|
256 </when>
|
|
257 <when value="paired">
|
|
258 <action type="format">
|
4
|
259 <option type="from_param" name="singlePaired.mate_list[0].input_mate1" param_attribute="ext" />
|
0
|
260 </action>
|
|
261 </when>
|
|
262 </conditional>
|
|
263 </actions>
|
|
264 </data>
|
|
265
|
|
266 <data format="fastq" name="output_suppressed_reads_r" label="${tool.name} on ${on_string}: suppressed reads (R)">
|
|
267 <filter>singlePaired['sPaired'] == "paired"</filter>
|
|
268 <filter>params['settingsType'] == "custom"</filter>
|
|
269 <filter>params['supressed_read_file'] is True</filter>
|
|
270 <actions>
|
|
271 <conditional name="singlePaired.sPaired">
|
|
272 <when value="single">
|
|
273 <action type="format">
|
|
274 <option type="from_param" name="singlePaired.input_singles" param_attribute="ext" />
|
|
275 </action>
|
|
276 </when>
|
|
277 <when value="paired">
|
|
278 <action type="format">
|
4
|
279 <option type="from_param" name="singlePaired.mate_list[0].input_mate1" param_attribute="ext" />
|
0
|
280 </action>
|
|
281 </when>
|
|
282 </conditional>
|
|
283 </actions>
|
|
284 </data>
|
|
285
|
|
286 <!-- Outout unmapped reads -->
|
|
287 <data format="fastq" name="output_unmapped_reads_l" label="${tool.name} on ${on_string}: unmapped reads (L)">
|
|
288 <filter>
|
|
289 ((
|
|
290 params['settingsType'] == "custom" and
|
|
291 params['unmapped_read_file'] is True
|
|
292 ))
|
|
293 </filter>
|
|
294 <actions>
|
|
295 <conditional name="singlePaired.sPaired">
|
|
296 <when value="single">
|
|
297 <action type="format">
|
|
298 <option type="from_param" name="singlePaired.input_singles" param_attribute="ext" />
|
|
299 </action>
|
|
300 </when>
|
|
301 <when value="paired">
|
|
302 <action type="format">
|
4
|
303 <option type="from_param" name="singlePaired.mate_list[0].input_mate1" param_attribute="ext" />
|
0
|
304 </action>
|
|
305 </when>
|
|
306 </conditional>
|
|
307 </actions>
|
|
308 </data>
|
|
309 <data format="fastq" name="output_unmapped_reads_r" label="${tool.name} on ${on_string}: unmapped reads (R)">
|
|
310 <filter>singlePaired['sPaired'] == "paired"</filter>
|
|
311 <filter>params['settingsType'] == "custom"</filter>
|
|
312 <filter>params['unmapped_read_file'] is True</filter>
|
|
313 <actions>
|
|
314 <conditional name="singlePaired.sPaired">
|
|
315 <when value="single">
|
|
316 <action type="format">
|
|
317 <option type="from_param" name="singlePaired.input_singles" param_attribute="ext" />
|
|
318 </action>
|
|
319 </when>
|
|
320 <when value="paired">
|
|
321 <action type="format">
|
4
|
322 <option type="from_param" name="singlePaired.mate_list[0].input_mate1" param_attribute="ext" />
|
0
|
323 </action>
|
|
324 </when>
|
|
325 </conditional>
|
|
326 </actions>
|
|
327 </data>
|
|
328
|
|
329
|
|
330 </outputs>
|
|
331
|
|
332 <tests>
|
|
333 </tests>
|
|
334
|
|
335 <help>
|
|
336
|
|
337 **What it does**
|
|
338
|
|
339 Bismark_ is a bisulfite mapper and methylation caller. Bismark takes in FastA or FastQ files and aligns the
|
|
340 reads to a specified bisulfite genome. Sequence reads are transformed into a bisulfite converted forward strand
|
|
341 version (C->T conversion) or into a bisulfite treated reverse strand (G->A conversion of the forward strand).
|
|
342 Each of these reads are then aligned to bisulfite treated forward strand index of a reference genome
|
|
343 (C->T converted) and a bisulfite treated reverse strand index of the genome (G->A conversion of the
|
|
344 forward strand, by doing this alignments will produce the same positions). These 4 instances of Bowtie (1 or 2)
|
|
345 are run in parallel. The sequence file(s) are then read in again sequence by sequence to pull out the original
|
|
346 sequence from the genome and determine if there were any protected C's present or not.
|
|
347
|
|
348 .. _Bismark: http://www.bioinformatics.babraham.ac.uk/projects/bismark/
|
|
349
|
|
350 As of version 0.7.0 Bismark will only run 2 alignment threads for OT and OB in parallel, the 4 strand mode can be
|
|
351 re-enabled by using non_directional mode.
|
|
352
|
|
353 It is developed by Krueger F and Andrews SR. at the Babraham Institute. Krueger F, Andrews SR. (2011) Bismark: a flexible aligner and methylation caller for Bisulfite-Seq applications. Bioinformatics, 27, 1571-2.
|
|
354
|
|
355 ------
|
|
356
|
|
357 **Know what you are doing**
|
|
358
|
|
359 .. class:: warningmark
|
|
360
|
|
361 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.
|
|
362
|
|
363 .. __: http://www.bioinformatics.babraham.ac.uk/projects/bismark/
|
|
364
|
4
|
365
|
|
366 .. class:: warningmark
|
|
367
|
|
368 Make sure all your input reads are in the correct and same format. If thats not the case please adjust/convert the filetype with galaxy's build-in converters.
|
|
369
|
0
|
370 ------
|
|
371
|
|
372 **Input formats**
|
|
373
|
|
374 Bismark accepts files in either Sanger FASTQ format (galaxy type *fastqsanger*), Illumina FASTQ format (galaxy type *fastqillumina*) or FASTA format (galaxy type *fasta*). Use the FASTQ Groomer to prepare your files.
|
|
375
|
|
376 ------
|
|
377
|
|
378 **A Note on Built-in Reference Genomes**
|
|
379
|
|
380 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.
|
|
381
|
|
382 ------
|
|
383
|
|
384 The final output of Bismark is in SAM format by default.
|
|
385
|
|
386 **Outputs**
|
|
387
|
|
388 The output is in SAM format, and has the following columns::
|
|
389
|
|
390 Column Description
|
|
391 -------- --------------------------------------------------------
|
|
392 1 QNAME seq-ID
|
|
393 2 FLAG this flag tries to take the strand a bisulfite read
|
|
394 originated from into account
|
|
395 (this is different from ordinary DNA alignment flags!)
|
|
396 3 RNAME chromosome
|
|
397 4 POS start position
|
|
398 5 MAPQ always 255
|
|
399 6 CIGAR extended CIGAR string
|
|
400 7 MRNM Mate Reference sequence NaMe ('=' if same as RNAME)
|
|
401 8 MPOS 1-based Mate POSition
|
|
402 9 ISIZE Inferred insert SIZE
|
|
403 10 SEQ query SEQuence on the same strand as the reference
|
|
404 11 QUAL Phred33 scale
|
|
405 12 NM-tag edit distance to the reference)
|
|
406 13 XX-tag base-by-base mismatches to the reference.
|
|
407 This does not include indels.
|
|
408 14 XM-tag methylation call string
|
|
409 15 XR-tag read conversion state for the alignment
|
|
410 16 XG-tag genome conversion state for the alignment
|
|
411
|
|
412
|
|
413 Each read of paired-end alignments is written out in a separate line in the above format.
|
|
414
|
|
415
|
|
416 It looks like this (scroll sideways to see the entire example)::
|
|
417
|
|
418 QNAME FLAG RNAME POS MAPQ CIAGR MRNM MPOS ISIZE SEQ QUAL OPT
|
|
419 HWI-EAS91_1_30788AAXX:1:1:1761:343 4 * 0 0 * * 0 0 AAAAAAANNAAAAAAAAAAAAAAAAAAAAAAAAAAACNNANNGAGTNGNNNNNNNGCTTCCCACAGNNCTGG hhhhhhh;;hhhhhhhhhhh^hOhhhhghhhfhhhgh;;h;;hhhh;h;;;;;;;hhhhhhghhhh;;Phhh
|
|
420 HWI-EAS91_1_30788AAXX:1:1:1578:331 4 * 0 0 * * 0 0 GTATAGANNAATAAGAAAAAAAAAAATGAAGACTTTCNNANNTCTGNANNNNNNNTCTTTTTTCAGNNGTAG hhhhhhh;;hhhhhhhhhhhhhhhhhhhhhhhhhhhh;;h;;hhhh;h;;;;;;;hhhhhhhhhhh;;hhVh
|
|
421
|
|
422 -------
|
|
423
|
|
424 **Bismark settings**
|
|
425
|
|
426 All of the options have a default value. You can change any of them. If any Bismark function is missing please contact the tool author or your Galaxy admin.
|
|
427
|
|
428 ------
|
|
429
|
|
430 **Bismark parameter list**
|
|
431
|
4
|
432 This is an exhaustive list of Bismark options.
|
0
|
433
|
|
434 Input::
|
|
435
|
|
436 --singles A comma- or space-separated list of files containing the reads to be aligned (e.g.
|
|
437 lane1.fq,lane2.fq lane3.fq). Reads may be a mix of different lengths. Bismark will
|
|
438 produce one mapping result and one report file per input file.
|
|
439
|
|
440 -1 mates1 Comma-separated list of files containing the #1 mates (filename usually includes
|
|
441 "_1"), e.g. flyA_1.fq,flyB_1.fq). Sequences specified with this option must
|
|
442 correspond file-for-file and read-for-read with those specified in mates2.
|
|
443 Reads may be a mix of different lengths. Bismark will produce one mapping result
|
|
444 and one report file per paired-end input file pair.
|
|
445
|
|
446 -2 mates2 Comma-separated list of files containing the #2 mates (filename usually includes
|
|
447 "_2"), e.g. flyA_1.fq,flyB_1.fq). Sequences specified with this option must
|
|
448 correspond file-for-file and read-for-read with those specified in mates1.
|
|
449 Reads may be a mix of different lengths.
|
|
450
|
|
451 -q/--fastq The query input files (specified as mate1,mate2 or singles are FASTQ
|
|
452 files (usually having extension .fg or .fastq). This is the default. See also
|
|
453 --solexa-quals.
|
|
454
|
|
455 -f/--fasta The query input files (specified as mate1,mate2 or singles are FASTA
|
|
456 files (usually havin extension .fa, .mfa, .fna or similar). All quality values
|
|
457 are assumed to be 40 on the Phred scale.
|
|
458
|
|
459 -s/--skip INT Skip (i.e. do not align) the first INT reads or read pairs from the input.
|
|
460
|
|
461 -u/--upto INT Only aligns the first INT reads or read pairs from the input. Default: no limit.
|
|
462
|
|
463 --phred33-quals FASTQ qualities are ASCII chars equal to the Phred quality plus 33. Default: on.
|
|
464
|
|
465 --phred64-quals FASTQ qualities are ASCII chars equal to the Phred quality plus 64. Default: off.
|
|
466
|
|
467 --solexa-quals Convert FASTQ qualities from solexa-scaled (which can be negative) to phred-scaled
|
|
468 (which can't). The formula for conversion is:
|
|
469 phred-qual = 10 * log(1 + 10 ** (solexa-qual/10.0)) / log(10). Used with -q. This
|
|
470 is usually the right option for use with (unconverted) reads emitted by the GA
|
|
471 Pipeline versions prior to 1.3. Works only for Bowtie 1. Default: off.
|
|
472
|
|
473 --solexa1.3-quals Same as --phred64-quals. This is usually the right option for use with (unconverted)
|
|
474 reads emitted by GA Pipeline version 1.3 or later. Default: off.
|
|
475
|
|
476
|
|
477 Alignment::
|
|
478
|
|
479 -n/--seedmms INT The maximum number of mismatches permitted in the "seed", i.e. the first L base pairs
|
|
480 of the read (where L is set with -l/--seedlen). This may be 0, 1, 2 or 3 and the
|
|
481 default is 1. This option is only available for Bowtie 1 (for Bowtie 2 see -N).
|
|
482
|
|
483 -l/--seedlen The "seed length"; i.e., the number of bases of the high quality end of the read to
|
|
484 which the -n ceiling applies. The default is 28. Bowtie (and thus Bismark) is faster for
|
|
485 larger values of -l. This option is only available for Bowtie 1 (for Bowtie 2 see -L).
|
|
486
|
|
487 -e/--maqerr INT Maximum permitted total of quality values at all mismatched read positions throughout
|
|
488 the entire alignment, not just in the "seed". The default is 70. Like Maq, bowtie rounds
|
|
489 quality values to the nearest 10 and saturates at 30. This value is not relevant for
|
|
490 Bowtie 2.
|
|
491
|
|
492 --chunkmbs INT The number of megabytes of memory a given thread is given to store path descriptors in
|
|
493 --best mode. Best-first search must keep track of many paths at once to ensure it is
|
|
494 always extending the path with the lowest cumulative cost. Bowtie tries to minimize the
|
|
495 memory impact of the descriptors, but they can still grow very large in some cases. If
|
|
496 you receive an error message saying that chunk memory has been exhausted in --best mode,
|
|
497 try adjusting this parameter up to dedicate more memory to the descriptors. This value
|
|
498 is not relevant for Bowtie 2. Default: 512.
|
|
499
|
|
500 -I/--minins INT The minimum insert size for valid paired-end alignments. E.g. if -I 60 is specified and
|
|
501 a paired-end alignment consists of two 20-bp alignments in the appropriate orientation
|
|
502 with a 20-bp gap between them, that alignment is considered valid (as long as -X is also
|
|
503 satisfied). A 19-bp gap would not be valid in that case. Default: 0.
|
|
504
|
|
505 -X/--maxins INT The maximum insert size for valid paired-end alignments. E.g. if -X 100 is specified and
|
|
506 a paired-end alignment consists of two 20-bp alignments in the proper orientation with a
|
|
507 60-bp gap between them, that alignment is considered valid (as long as -I is also satisfied).
|
|
508 A 61-bp gap would not be valid in that case. Default: 500.
|
|
509
|
|
510
|
|
511
|
|
512 Output::
|
|
513
|
|
514 --non_directional The sequencing library was constructed in a non strand-specific manner, alignments to all four
|
|
515 bisulfite strands will be reported. Default: OFF.
|
|
516
|
|
517 (The current Illumina protocol for BS-Seq is directional, in which case the strands complementary
|
|
518 to the original strands are merely theoretical and should not exist in reality. Specifying directional
|
|
519 alignments (which is the default) will only run 2 alignment threads to the original top (OT)
|
|
520 or bottom (OB) strands in parallel and report these alignments. This is the recommended option
|
|
521 for sprand-specific libraries).
|
|
522
|
|
523 --sam-no-hd Suppress SAM header lines (starting with @). This might be useful when very large input files are
|
|
524 split up into several smaller files to run concurrently and the output files are to be merged.
|
|
525
|
|
526 --quiet Print nothing besides alignments.
|
|
527
|
|
528 --vanilla Performs bisulfite mapping with Bowtie 1 and prints the 'old' output (as in Bismark 0.5.X) instead
|
|
529 of SAM format output.
|
|
530
|
|
531 -un/--unmapped Write all reads that could not be aligned to a file in the output directory. Written reads will
|
|
532 appear as they did in the input, without any translation of quality values that may have
|
|
533 taken place within Bowtie or Bismark. Paired-end reads will be written to two parallel files with _1
|
|
534 and _2 inserted in their filenames, i.e. _unmapped_reads_1.txt and unmapped_reads_2.txt. Reads
|
|
535 with more than one valid alignment with the same number of lowest mismatches (ambiguous mapping)
|
|
536 are also written to _unmapped_reads.txt unless the option --ambiguous is specified as well.
|
|
537
|
|
538 --ambiguous Write all reads which produce more than one valid alignment with the same number of lowest
|
|
539 mismatches or other reads that fail to align uniquely to a file in the output directory.
|
|
540 Written reads will appear as they did in the input, without any of the translation of quality
|
|
541 values that may have taken place within Bowtie or Bismark. Paired-end reads will be written to two
|
|
542 parallel files with _1 and _2 inserted in theit filenames, i.e. _ambiguous_reads_1.txt and
|
|
543 _ambiguous_reads_2.txt. These reads are not written to the file specified with --un.
|
|
544
|
|
545 -o/--output_dir DIR Write all output files into this directory. By default the output files will be written into
|
|
546 the same folder as the input file(s). If the specified folder does not exist, Bismark will attempt
|
|
547 to create it first. The path to the output folder can be either relative or absolute.
|
|
548
|
|
549 --temp_dir DIR Write temporary files to this directory instead of into the same directory as the input files. If
|
|
550 the specified folder does not exist, Bismark will attempt to create it first. The path to the
|
|
551 temporary folder can be either relative or absolute.
|
|
552
|
|
553 ------
|
|
554
|
|
555 Bowtie 2 alignment options::
|
|
556
|
|
557 -N INT Sets the number of mismatches to allowed in a seed alignment during multiseed alignment.
|
|
558 Can be set to 0 or 1. Setting this higher makes alignment slower (often much slower)
|
|
559 but increases sensitivity. Default: 0. This option is only available for Bowtie 2 (for
|
|
560 Bowtie 1 see -n).
|
|
561
|
|
562 -L INT Sets the length of the seed substrings to align during multiseed alignment. Smaller values
|
|
563 make alignment slower but more senstive. Default: the --sensitive preset of Bowtie 2 is
|
|
564 used by default, which sets -L to 20. This option is only available for Bowtie 2 (for
|
|
565 Bowtie 1 see -l).
|
|
566
|
|
567 --ignore-quals When calculating a mismatch penalty, always consider the quality value at the mismatched
|
|
568 position to be the highest possible, regardless of the actual value. I.e. input is treated
|
|
569 as though all quality values are high. This is also the default behavior when the input
|
|
570 doesn't specify quality values (e.g. in -f mode). This option is invariable and on by default.
|
|
571
|
|
572
|
|
573 Bowtie 2 paired-end options::
|
|
574
|
|
575 --no-mixed This option disables Bowtie 2's behavior to try to find alignments for the individual mates if
|
|
576 it cannot find a concordant or discordant alignment for a pair. This option is invariable and
|
|
577 and on by default.
|
|
578
|
|
579 --no-discordant Normally, Bowtie 2 looks for discordant alignments if it cannot find any concordant alignments.
|
|
580 A discordant alignment is an alignment where both mates align uniquely, but that does not
|
|
581 satisfy the paired-end constraints (--fr/--rf/--ff, -I, -X). This option disables that behavior
|
|
582 and it is on by default.
|
|
583
|
|
584
|
|
585 Bowtie 2 effort options::
|
|
586
|
|
587 -D INT Up to INT consecutive seed extension attempts can "fail" before Bowtie 2 moves on, using
|
|
588 the alignments found so far. A seed extension "fails" if it does not yield a new best or a
|
|
589 new second-best alignment. Default: 15.
|
|
590
|
|
591 -R INT INT is the maximum number of times Bowtie 2 will "re-seed" reads with repetitive seeds.
|
|
592 When "re-seeding," Bowtie 2 simply chooses a new set of reads (same length, same number of
|
|
593 mismatches allowed) at different offsets and searches for more alignments. A read is considered
|
|
594 to have repetitive seeds if the total number of seed hits divided by the number of seeds
|
|
595 that aligned at least once is greater than 300. Default: 2.
|
|
596
|
|
597
|
|
598 Bowtie 2 Scoring options::
|
|
599
|
|
600 --score_min "func" Sets a function governing the minimum alignment score needed for an alignment to be considered
|
|
601 "valid" (i.e. good enough to report). This is a function of read length. For instance, specifying
|
|
602 L,0,-0.2 sets the minimum-score function f to f(x) = 0 + -0.2 * x, where x is the read length.
|
|
603 See also: setting function options at http://bowtie-bio.sourceforge.net/bowtie2. The default is
|
|
604 L,0,-0.2.
|
|
605
|
|
606
|
|
607 Bowtie 2 Reporting options::
|
|
608
|
|
609 --most_valid_alignments INT This used to be the Bowtie 2 parameter -M. As of Bowtie 2 version 2.0.0 beta7 the option -M is
|
|
610 deprecated. It will be removed in subsequent versions. What used to be called -M mode is still the
|
|
611 default mode, but adjusting the -M setting is deprecated. Use the -D and -R options to adjust the
|
|
612 effort expended to find valid alignments.
|
|
613
|
|
614 For reference, this used to be the old (now deprecated) description of -M:
|
|
615 Bowtie 2 searches for at most INT+1 distinct, valid alignments for each read. The search terminates when it
|
|
616 can't find more distinct valid alignments, or when it finds INT+1 distinct alignments, whichever
|
|
617 happens first. Only the best alignment is reported. Information from the other alignments is used to
|
|
618 estimate mapping quality and to set SAM optional fields, such as AS:i and XS:i. Increasing -M makes
|
|
619 Bowtie 2 slower, but increases the likelihood that it will pick the correct alignment for a read that
|
|
620 aligns many places. For reads that have more than INT+1 distinct, valid alignments, Bowtie 2 does not
|
|
621 guarantee that the alignment reported is the best possible in terms of alignment score. -M is
|
|
622 always used and its default value is set to 10.
|
|
623
|
|
624 </help>
|
|
625 </tool>
|