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