annotate bowtie2_wrapper.xml.orig @ 2:2a6cfe8997aa draft

Uploaded from GH
author devteam
date Thu, 04 Dec 2014 12:58:42 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
1 <tool id="bowtie2" name="Bowtie2" version="0.3">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
2 <!-- Wrapper compatible with Bowtie version 2.2.4 -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
3 <description>- map reads against reference genome</description>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
4 <version_command>bowtie2 --version</version_command>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
5 <requirements>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
6 <requirement type="package" version="2.2.4">bowtie2</requirement>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
7 <requirement type="package" version="0.1.18">samtools</requirement>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
8 </requirements>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
9 <command>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
10
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
11 ## prepare bowtie2 index
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
12 #set index_path = ''
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
13 #if str($reference_genome.source) == "history":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
14 bowtie2-build "$reference_genome.own_file" genome &amp;&amp;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
15 ln -s "$reference_genome.own_file" genome.fa &amp;&amp;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
16 #set index_path = 'genome'
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
17 #else:
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
18 #set index_path = $reference_genome.index.fields.path
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
19 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
20
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
21 ## execute bowtie2
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
22
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
23 bowtie2
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
24
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
25 ## number of threads
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
26 -p \${GALAXY_SLOTS:-4}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
27
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
28 ## index file path
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
29 -x $index_path
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
30
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
31
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
32 ## Fastq inputs
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
33 #if str( $library.type ) == "single":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
34 -U "${input_1}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
35 #if str( $library.unaligned_file ) == "true":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
36 --un $output_unaligned_reads_l
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
37 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
38 #elif str( $library.type ) == "paired":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
39 -1 "${input_1}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
40 -2 "${input_2}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
41 #if str( $library.paired_options.paired_options_selector ) == "yes":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
42 -I "${library.paired_options.I}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
43 -X "${library.paired_options.X}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
44 ${library.paired_options.fr_rf_ff}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
45 ${library.paired_options.no_mixed}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
46 ${library.paired_options.no_discordant}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
47 ${library.paired_options.dovetail}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
48 ${library.paired_options.no_contain}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
49 ${library.paired_options.no_overlap}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
50 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
51 #if str( $library.unaligned_file ) == "true":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
52 --un-conc $output_unaligned_reads_l
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
53 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
54 #else
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
55 ## prepare collection
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
56 -1 $library.input_1.forward
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
57 -2 $library.input_1.reverse
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
58 #if str( $library.paired_options.paired_options_selector ) == "yes":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
59 -I "${library.paired_options.I}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
60 -X "${library.paired_options.X}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
61 ${library.paired_options.fr_rf_ff}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
62 ${library.paired_options.no_mixed}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
63 ${library.paired_options.no_discordant}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
64 ${library.paired_options.dovetail}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
65 ${library.paired_options.no_contain}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
66 ${library.paired_options.no_overlap}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
67 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
68 #if str( $library.unaligned_file ) == "true":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
69 --un-conc $output_unaligned_reads_l
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
70 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
71 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
72
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
73 ## Readgroups
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
74 #if str( $read_group.read_group_selector ) == "yes":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
75 --rg-id "${read_group.rgid}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
76 --rg "SM:${read_group.rgsm}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
77 --rg "LB:${read_group.rglb}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
78 --rg "PL:${read_group.rgpl}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
79 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
80
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
81 ## Analysis type
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
82 #if ( str( $analysis_type.analysis_type_selector ) == "simple" and str( $analysis_type.presets ) != "no_presets" ):
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
83 $analysis_type.presets
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
84 #elif str( $analysis_type.analysis_type_selector ) == "full":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
85 #if str( $analysis_type.input_options.input_options_selector ) == "yes":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
86 --skip "${analysis_type.input_options.skip}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
87 --qupto "${analysis_type.input_options.qupto}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
88 --trim5 "${analysis_type.input_options.trim5}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
89 --trim3 "${analysis_type.input_options.trim3}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
90 ${analysis_type.input_options.qv_encoding}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
91 ${analysis_type.input_options.solexa-quals}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
92 ${analysis_type.input_options.int-quals}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
93 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
94
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
95 #if str( $analysis_type.alignment_options.alignment_options_selector ) == "yes":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
96 -N "${$analysis_type.alignment_options.N}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
97 -L "${$analysis_type.alignment_options.L}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
98 -i "${$analysis_type.alignment_options.i}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
99 --n_ceil "${$analysis_type.alignment_options.n_ceil}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
100 --dpad "${$analysis_type.alignment_options.dpad}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
101 --gbar "${$analysis_type.alignment_options.gbar}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
102 ${analysis_type.alignment_options.ignore-quals}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
103 ${analysis_type.alignment_options.nofw}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
104 ${analysis_type.alignment_options.norc}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
105 ${analysis_type.alignment_options.no_1mm_upfront}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
106 #if str( $analysis_type.alignment_options.align_mode.align_mode_selector ) == "end-to-end":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
107 --end-to-end
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
108 --score-min "${$analysis_type.alignment_options.align_mode.core-min}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
109 #elif str( $analysis_type.alignment_options.align_mode.align_mode_selector ) == "local":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
110 --local
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
111 --score-min "${$analysis_type.alignment_options.align_mode.core-min}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
112 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
113 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
114
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
115 #if str( $analysis_type.scoring_options.scoring_options_selector ) == "yes":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
116 --ma "${analysis_type.scoring_options.ma}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
117 --mp "${analysis_type.scoring_options.mp}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
118 --np "${analysis_type.scoring_options.np}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
119 --rdg "${analysis_type.scoring_options.rdg_read_open},${analysis_type.scoring_options.rdg_read_extend}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
120 --rfg "${analysis_type.scoring_options.rfg_ref_open},${analysis_type.scoring_options.rfg_ref_extend}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
121 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
122
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
123 #if str( $analysis_type.reporting_options.reporting_options_selector ) == "k":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
124 -k "${analysis_type.reporting_options.k}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
125 #elif str( $analysis_type.reporting_options.reporting_options_selector ) == "a":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
126 -a
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
127 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
128
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
129 #if str( $analysis_type.effort_options.effort_options_selector ) == "yes":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
130 -D "${analysis_type.effort_options.D}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
131 -R "${analysis_type.effort_options.R}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
132 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
133
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
134 #if str( $analysis_type.sam_options.sam_options_selector ) == "yes":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
135 ${analysis_type.sam_options.no-unal}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
136 ${analysis_type.sam_options.omit-sec-seq}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
137 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
138
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
139 #if str( $analysis_type.other_options.other_options_selector ) == "yes":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
140 ${analysis_type.other_options.reorder}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
141 ${analysis_type.other_options.non-deterministic}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
142 --seed "${analysis_type.other_options.seed}"
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
143 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
144
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
145 #elif str( $analysis_type.analysis_type_selector ) == "cline":
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
146 ${analysis_type.cline}
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
147 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
148
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
149 ## view/sort and output BAM file
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
150 | samtools view -Su - | samtools sort -o - - > $output
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
151
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
152 ## rename unaligned sequence files
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
153 #if $library.type == "paired" and $output_unaligned_reads_l and $output_unaligned_reads_r:
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
154 #set left = str($output_unaligned_reads_l).replace( '.dat', '.1.dat' )
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
155 #set right = str($output_unaligned_reads_l).replace( '.dat', '.2.dat' )
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
156
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
157 ; mv $left $output_unaligned_reads_l;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
158 mv $right $output_unaligned_reads_r
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
159 #end if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
160
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
161 </command>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
162
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
163 <!-- basic error handling -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
164 <stdio>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
165 <exit_code range="1:" level="fatal" description="Tool exception" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
166 </stdio>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
167
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
168 <inputs>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
169 <!-- single/paired -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
170 <conditional name="library">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
171 <param name="type" type="select" label="Is this single or paired library">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
172 <option value="single">Single-end</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
173 <option value="paired">Paired-end</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
174 <option value="paired_collection">Paired-end Dataset Collection</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
175 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
176
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
177 <when value="single">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
178 <param name="input_1" format="fastqsanger" type="data" label="FASTQ file" help="Nucleotide-space: Must have Sanger-scaled quality values with ASCII offset 33"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
179 <param name="unaligned_file" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write unaligned reads (in fastq format) to separate file(s)" help="--un/--un-conc; This triggers --un parameter for single reads and --un-conc for paired reads" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
180 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
181 <when value="paired">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
182 <param name="input_1" format="fastqsanger" type="data" label="FASTQ file" help="Nucleotide-space: Must have Sanger-scaled quality values with ASCII offset 33" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
183 <param name="input_2" format="fastqsanger" type="data" label="FASTQ file" help="Nucleotide-space: Must have Sanger-scaled quality values with ASCII offset 33" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
184 <param name="unaligned_file" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write unaligned reads (in fastq format) to separate file(s)" help="--un/--un-conc; This triggers --un parameter for single reads and --un-conc for paired reads" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
185 <conditional name="paired_options">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
186 <param name="paired_options_selector" type="select" label="Do you want to set paired-end options?" help="See &quot;Alignment Options&quot; section of Help below for information">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
187 <option value="no" selected="True">No</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
188 <option value="yes">Yes</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
189 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
190 <when value="yes">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
191 <param name="I" type="integer" value="0" min="0" label="Set the minimum fragment length for valid paired-end alignments" help="-I/--minins; E.g. if `-I 60` is specified and a paired-end alignment consists of two 20-bp alignments in the appropriate orientation with a 20-bp gap between them, that alignment is considered valid (as long as `-X` is also satisfied). A 19-bp gap would not be valid in that case. If trimming options `-3` or `-5` are also used, the `-I` constraint is applied with respect to the untrimmed mates. The larger the difference between `-I` and `-X`, the slower Bowtie 2 will run. This is because larger differences bewteen `-I` and `-X` require that Bowtie 2 scan a larger window to determine if a concordant alignment exists. For typical fragment length ranges (200 to 400 nucleotides), Bowtie 2 is very efficient. Default=0"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
192 <param name="X" type="integer" value="500" min="0" lable="Set the maximum fragment length for valid paired-end alignments" help="-X/--maxins; E.g. if `-X 100` is specified and a paired-end alignment consists of two 20-bp alignments in the proper orientation with a 60-bp gap between them, that alignment is considered valid (as long as `-I` is also satisfied). A 61-bp gap would not be valid in that case. If trimming options `-3` or `-5` are also used, the `-X` constraint is applied with respect to the untrimmed mates, not the trimmed mates; Deafult=500"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
193 <param name="fr_rf_ff" type="select" display="radio" label="Select the upstream/downstream mate orientations for a valid paired-end alignment against the forward reference strand" help="--fr, --rf, or --ff; E.g., if `--fr` is specified and there is a candidate paired-end alignment where mate 1 appears upstream of the reverse complement of mate 2 and the fragment length constraints (`-I` and `-X`) are met, that alignment is valid. Also, if mate 2 appears upstream of the reverse complement of mate 1 and all other constraints are met, that too is valid. `--rf` likewise requires that an upstream mate1 be reverse-complemented and a downstream mate2 be forward-oriented. ` --ff` requires both an upstream mate 1 and a downstream mate 2 to be forward-oriented; Default=--fr (appropriatefor Illumina's Paired-end Sequencing Assay)">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
194 <option value="--fr" selected="True">--fr</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
195 <option value="--rf">--fr</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
196 <option value="--ff">--ff</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
197 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
198 <param name="no_mixed" type="boolean" truevalue="--no-mixed" falsevalue="" checked="False" label="Disable no-mixed behavior" help="--no-mixed; By default, when `bowtie2` cannot find a concordant or discordant alignment for a pair, it then tries to find alignments for the individual mates; default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
199 <param name="no_discordant" type="boolean" truevalue="--no-discordant" falsevalue="" checked="False" label="Disable no-discordant behavior" help="--no-discordant; By default, `bowtie2` looks for discordant alignments if it cannot find any concordant alignments. A discordant alignment is an alignment where both mates align uniquely, but that does not satisfy the paired-end constraints (`--fr`/`--rf`/`--ff`, `-I`, `-X`); default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
200 <param name="dovetail" type="boolean" truevalue="--dovetail" falsevalue="" checked="False" label="Allow mate dovetailing" help="--dovetail; If the mates `dovetail`, that is if one mate alignment extends past the beginning of the other such that the wrong mate begins upstream, consider that to be concordant. See also: `Mates can overlap, contain or dovetail each other` in help section below; default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
201 <param name="no_contain" type="boolean" truevalue="--no-contain" falsevalue="" checked="False" label="Allow one mate alignment to contain another" help="--no-contain; If one mate alignment contains the other, consider that to be non-concordant. See also: `Mates can overlap, contain or dovetail each other` in help section; default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
202 <param name="no_overlap" type="boolean" truevalue="--no-overlap" falsevalue="" checked="False" label="Allow mate alignments to overlap" help="--no-overlap; If one mate alignment overlaps the other at all, consider that to be non-concordant. See also: `Mates can overlap, contain or dovetail each other` in help section; default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
203 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
204 <when value="no">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
205 <!-- do nothing -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
206 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
207 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
208 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
209 <when value="paired_collection">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
210 <param name="input_1" format="fastqsanger" type="data_collection" collection_type="paired" label="FASTQ Paired Dataset" help="Nucleotide-space: Must have Sanger-scaled quality values with ASCII offset 33" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
211 <param name="unaligned_file" type="boolean" truevalue="true" falsevalue="false" checked="False" label="Write unaligned reads (in fastq format) to separate file(s)" help="--un/--un-conc; This triggers --un parameter for single reads and --un-conc for paired reads" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
212 <conditional name="paired_options">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
213 <param name="paired_options_selector" type="select" label="Do you want to set paired-end options?" help="See &quot;Alignment Options&quot; section of Help below for information">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
214 <option value="no" selected="True">No</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
215 <option value="yes">Yes</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
216 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
217 <when value="yes">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
218 <param name="I" type="integer" value="0" min="0" label="Set the minimum fragment length for valid paired-end alignments" help="-I/--minins; E.g. if `-I 60` is specified and a paired-end alignment consists of two 20-bp alignments in the appropriate orientation with a 20-bp gap between them, that alignment is considered valid (as long as `-X` is also satisfied). A 19-bp gap would not be valid in that case. If trimming options `-3` or `-5` are also used, the `-I` constraint is applied with respect to the untrimmed mates. The larger the difference between `-I` and `-X`, the slower Bowtie 2 will run. This is because larger differences bewteen `-I` and `-X` require that Bowtie 2 scan a larger window to determine if a concordant alignment exists. For typical fragment length ranges (200 to 400 nucleotides), Bowtie 2 is very efficient. Default=0"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
219 <param name="X" type="integer" value="500" min="0" lable="Set the maximum fragment length for valid paired-end alignments" help="-X/--maxins; E.g. if `-X 100` is specified and a paired-end alignment consists of two 20-bp alignments in the proper orientation with a 60-bp gap between them, that alignment is considered valid (as long as `-I` is also satisfied). A 61-bp gap would not be valid in that case. If trimming options `-3` or `-5` are also used, the `-X` constraint is applied with respect to the untrimmed mates, not the trimmed mates; Deafult=500"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
220 <param name="fr_rf_ff" type="select" display="radio" label="Select the upstream/downstream mate orientations for a valid paired-end alignment against the forward reference strand" help="--fr, --rf, or --ff; E.g., if `--fr` is specified and there is a candidate paired-end alignment where mate 1 appears upstream of the reverse complement of mate 2 and the fragment length constraints (`-I` and `-X`) are met, that alignment is valid. Also, if mate 2 appears upstream of the reverse complement of mate 1 and all other constraints are met, that too is valid. `--rf` likewise requires that an upstream mate1 be reverse-complemented and a downstream mate2 be forward-oriented. ` --ff` requires both an upstream mate 1 and a downstream mate 2 to be forward-oriented; Default=--fr (appropriatefor Illumina's Paired-end Sequencing Assay)">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
221 <option value="--fr" selected="True">--fr</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
222 <option value="--rf">--fr</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
223 <option value="--ff">--ff</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
224 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
225 <param name="no_mixed" type="boolean" truevalue="--no-mixed" falsevalue="" checked="False" label="Disable no-mixed behavior" help="--no-mixed; By default, when `bowtie2` cannot find a concordant or discordant alignment for a pair, it then tries to find alignments for the individual mates; default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
226 <param name="no_discordant" type="boolean" truevalue="--no-discordant" falsevalue="" checked="False" label="Disable no-discordant behavior" help="--no-discordant; By default, `bowtie2` looks for discordant alignments if it cannot find any concordant alignments. A discordant alignment is an alignment where both mates align uniquely, but that does not satisfy the paired-end constraints (`--fr`/`--rf`/`--ff`, `-I`, `-X`); default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
227 <param name="dovetail" type="boolean" truevalue="--dovetail" falsevalue="" checked="False" label="Allow mate dovetailing" help="--dovetail; If the mates `dovetail`, that is if one mate alignment extends past the beginning of the other such that the wrong mate begins upstream, consider that to be concordant. See also: `Mates can overlap, contain or dovetail each other` in help section below; default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
228 <param name="no_contain" type="boolean" truevalue="--no-contain" falsevalue="" checked="False" label="Allow one mate alignment to contain another" help="--no-contain; If one mate alignment contains the other, consider that to be non-concordant. See also: `Mates can overlap, contain or dovetail each other` in help section; default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
229 <param name="no_overlap" type="boolean" truevalue="--no-overlap" falsevalue="" checked="False" label="Allow mate alignments to overlap" help="--no-overlap; If one mate alignment overlaps the other at all, consider that to be non-concordant. See also: `Mates can overlap, contain or dovetail each other` in help section; default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
230 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
231 <when value="no">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
232 <!-- do nothing -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
233 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
234 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
235 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
236 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
237
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
238 <!-- reference genome -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
239 <conditional name="reference_genome">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
240 <param name="source" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options. See `Indexes` section of help below">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
241 <option value="indexed">Use a built-in genome index</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
242 <option value="history">Use a genome from the history and build index</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
243 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
244 <when value="indexed">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
245 <param name="index" type="select" label="Select reference genome" help="If your genome of interest is not listed, contact the Galaxy team">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
246 <options from_data_table="bowtie2_indexes">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
247 <filter type="sort_by" column="2"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
248 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
249 </options>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
250 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
251 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
252 <when value="history">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
253 <param name="own_file" type="data" format="fasta" metadata_name="dbkey" label="Select reference genome" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
254 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
255 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
256
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
257 <!-- read group settings -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
258 <conditional name="read_group">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
259 <param name="read_group_selector" type="select" label="Specify the read group for this file?" help="Specifying readgroup information can greatly simplify your downstream analyses by allowing combining multiple datasets. See help below for more details">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
260 <option value="yes">Yes</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
261 <option value="no" selected="True">No</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
262 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
263 <when value="yes">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
264 <param name="rgid" type="text" size="25" label="Read group identifier (ID). Each @RG line must have a unique ID. The value of ID is used in the RG tags of alignment records. Must be unique among all read groups in header section." help="--rg-id; Required if RG specified. Read group IDs may be modified when merging SAM files in order to handle collisions." />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
265 <param name="rglb" type="text" size="25" label="Library name (LB)" help="--rg; Required if RG specified" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
266 <param name="rgpl" type="text" size="25" label="Platform/technology used to produce the reads (PL)" help="--rg; Required if RG specified. Valid values : CAPILLARY, LS454, ILLUMINA, SOLID, HELICOS, IONTORRENT and PACBIO" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
267 <param name="rgsm" type="text" size="25" label="Sample (SM)" help="--rg; Required if RG specified. Use pool name where a pool is being sequenced" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
268 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
269 <when value="no" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
270 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
271
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
272 <conditional name="analysis_type">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
273 <param name="analysis_type_selector" type="select" label="Select analysis mode">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
274 <option value="simple">1: Default setting only</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
275 <option value="full">2: Full parameter list</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
276 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
277 <when value="simple">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
278 <param name="presets" type="select" display="radio" label="Do you want to use presets?" help="Allow selecting among several preset parameter settings. Choosing between these will result in dramatic changes in runtime. See help below to understand effects of these presets.">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
279 <option value="no_presets" selected="True">No, just use defaults</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
280 <option value="--very-fast">Very fast end-to-end (--very-fast)</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
281 <option value="--fast">Fast end-to-end (--fast)</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
282 <option value="--sensitive">Sensitive end-to-end (--sensitive)</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
283 <option value="--very-sensitive">Very sensitive end-to-end (--very-sensitive)</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
284 <option value="--very-fast-local">Very fast local (--very-fast-local)</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
285 <option value="--fast-local">Fast local (--fast-local)</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
286 <option value="--sensitive-local">Sensitive local (--sensitive-local)</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
287 <option value="--very-sensitive-local">Very sensitive local (--very-sensitive-local)</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
288 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
289 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
290 <when value="full">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
291 <conditional name="input_options">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
292 <param name="input_options_selector" type="select" label="Do you want to tweak input options?" help="See &quot;Input Options&quot; section of Help below for information">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
293 <option value="yes">Yes</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
294 <option value="no" selected="true">No</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
295 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
296 <when value="yes">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
297 <param name="skip" type="integer" min="0" value="0" lable="Skip (i.e. do not align) the first that many reads or pairs in the input" help="-s/--skip; default=0"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
298 <param name="qupto" type="integer" min="-1" value="-1" label="Align the first that many reads or read pairs from the input (after the -s/--skip reads or pairs have been skipped), then stop" help="-u/--qupto; default=-1 (no limit)"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
299 <param name="trim5" type="integer" min="0" value="0" label="Trim that many bases from 5' (left) end of each read before alignment" help="-5/--trim5; default=0"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
300 <param name="trim3" type="integer" min="0" value="0" label="Trim that many bases from 3' (right) end of each read before alignment" help="-3/--trim3; default=0"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
301 <param name="qv_encoding" type="select" display="radio" label="Select quality score encoding" help="See help below for more details">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
302 <option value="--phred33">Input qualities are ASCII chars equal to the Phred quality plus 33. This is also called the "Phred+33" encoding, which is used by the very latest Illumina pipelines (--phred33)</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
303 <option value="--phred64" selected="True">Input qualities are ASCII chars equal to the Phred quality plus 64. This is also called the "Phred+64" encoding (--phred64)</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
304 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
305 <param name="solexa-quals" type="boolean" truevalue="--solexa-quals" falsevalue="" checked="False" label="Convert input qualities from Solexa (which can be negative) to Phred (which can't). This scheme was used in older Illumina GA Pipeline versions (prior to 1.3)" help="--solexa-quals; default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
306 <param name="int-quals" type="boolean" truevalue="--int-quals" falsevalue="" checked="False" label="Quality values are represented in the read input file as space-separated ASCII integers, e.g., 40 40 30 40..., rather than ASCII characters, e.g., II?I.... Integers are treated as being on the Phred quality scale unless --solexa-quals is also specified" help="--int-quals; default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
307 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
308 <when value="no">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
309 <!-- do nothing -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
310 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
311 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
312 <conditional name="alignment_options">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
313 <param name="alignment_options_selector" type="select" label="Do you want to tweak alignment options?" help="See &quot;Alignment Options&quot; section of Help below for information">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
314 <option value="yes">Yes</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
315 <option value="no" selected="true">No</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
316 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
317 <when value="yes">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
318 <param name="N" type="integer" min="0" max="1" value="0" label="Set the number of mismatches to be allowed in a seed alignment during multiseed alignment (see `Multiseed alignment` section of help below)" help="-N; Can be set to 0 or 1. Setting this higher makes alignment slower (often much slower) but increases sensitivity; default=0"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
319 <param name="L" type="integer" min="0" value="20" label="Sets the length of the seed substrings to align during multiseed alignment (see `Multiseed alignment` section of help below)" help="-L; Smaller values make alignment slower but more senstive. Default: the `--sensitive` preset is used by default, which sets `-L` to 20 both in `--end-to-end` mode and in `--local` mode"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
320 <param name="i" type="text" value="S,1,1.15" size="10" label="Set a function governing the interval between seed substrings to use during multiseed alignment (see `Multiseed alignment` section of help below). Also see description of this option below in the help section" help="-i; Since it's best to use longer intervals for longer reads, this parameter sets the interval as a function of the read length, rather than a single one-size-fits-all number. For instance, specifying `-i S,1,2.5` sets the interval function `f` to `f(x) = 1 + 2.5 * sqrt(x)`, where x is the read length. See also `Setting function options` below in help section. If the function returns a result less than 1, it is rounded up to 1. Default: the `--sensitive` preset is used by default, which sets `-i` to `S,1,1.15` in `--end-to-end` mode to `-i S,1,0.75` in `--local` mode"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
321 <param name="n_ceil" type="text" value="`L,0,0.15" label="Set a function governing the maximum number of ambiguous characters (usually `N`s and/or `.`s) allowed in a read as a function of read length" help="--n-ceil; For instance, specifying `-L,0,0.15` sets the N-ceiling function `f` to `f(x) = 0 + 0.15 * x`, where x is the read length. See also: [setting function options]. Reads exceeding this ceiling are [filtered out]. Default=`L,0,0.15`"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
322 <param name="dpad" type="integer" min="0" value="15" lable="Pad dynamic programming problems by that many columns on either side to allow gaps" help="--dpad; default=15"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
323 <param name="gbar" type="integer" min="0" value="4" label="Disallow gaps within that many positions of the beginning or end of the read" help="--gbar; default=4"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
324 <param name="ignore-quals" type="boolean" truevalue="--ignore-quals" falsevalue="" selected="False" label="When calculating a mismatch penalty, always consider the quality value at the mismatched position to be the highest possible, regardless of the actual value" help="--ignore-quals; input is treated as though all quality values are high; default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
325 <param name="nofw" type="boolean" truevalue="--nofw" falsevalue="" selected="False" label="Do not attempt to align unpaired reads to the forward (Watson) reference strand" help="In paired-end mode, `--nofw` and `--norc` pertain to the fragments; i.e. specifying `--nofw` causes `bowtie2` to explore only those paired-end configurations corresponding to fragments from the reverse-complement (Crick) strand. Default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
326 <param name="norc" type="boolean" truevalue="--norc" falsevalue="" selected="False" label="Do not attempt to align unpaired reads to the reverse (Crick) reference strand" help="In paired-end mode, `--nofw` and `--norc` pertain to the fragments; i.e. specifying `--nofw` causes `bowtie2` to explore only those paired-end configurations corresponding to fragments from the reverse-complement (Crick) strand. Default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
327 <param name="no_1mm_upfront" type="boolean" truevalue="--no-1mm-upfront" falsevalue="" selected="False" label="Prevent searching for 1-mismatch end-to-end alignments before using the multiseed heuristic (see `Multiseed alignment` section of help baelow)" help="--no-1mm-upfront; By default, Bowtie 2 will attempt to find either an exact or a 1-mismatch end-to-end alignment for the read *before* trying the [multiseed heuristic]. Such alignments can be found very quickly, and many short read alignments have exact or near-exact end-to-end alignments. However, this can lead to unexpected alignments when the user also sets options governing the [multiseed heuristic], like `-L` and `-N`. For instance, if the user specifies `-N 0` and `-L` equal to the length of the read, the user will be surprised to find 1-mismatch alignments reported. This option prevents Bowtie 2 from searching for 1-mismatch end-to-end alignments before using the [multiseed heuristic], which leads to the expected behavior when combined with options such as `-L` and `-N`. This comes at the expense of speed; Default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
328 <conditional name="align_mode">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
329 <param name="align_mode_selector" type="select" display="radio" label="Select between `--local` and `--end-to-end` alignment modes" help="--local and --end-to-end; see help below for detailed explanation; default=--end-to-end">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
330 <option value="end-to-end" selected="True">End to End (--end-to-end)</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
331 <option value="local">Local (--local)</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
332 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
333 <when value="end-to-end">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
334 <param name="score-min" type="text" value="G,20,8" label="Set a function governing the minimum alignment score needed for an alignment to be considered `valid` (i.e. good enough to report)" help="--score-min; This is a function of read length. For instance, specifying `L,0,-0.6` sets the minimum-score function `f` to `f(x) = 0 + -0.6 * x`, where `x` is the read length. See also: [setting function options]. The default in `--end-to-end` mode is `L,-0.6,-0.6` and the default in `--local` mode is `G,20,8`"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
335 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
336 <when value="local">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
337 <param name="score-min" type="text" value="L,-0.6,-0.6" label="Set a function governing the minimum alignment score needed for an alignment to be considered `valid` (i.e. good enough to report)" help="--score-min; This is a function of read length. For instance, specifying `L,0,-0.6` sets the minimum-score function `f` to `f(x) = 0 + -0.6 * x`, where `x` is the read length. See also: [setting function options]. The default in `--end-to-end` mode is `L,-0.6,-0.6` and the default in `--local` mode is `G,20,8`"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
338 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
339 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
340 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
341 <when value="no">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
342 <!-- do nothing -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
343 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
344 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
345 <conditional name="scoring_options">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
346 <param name="scoring_options_selector" type="select" label="Do you want to tweak scoring options?" help="See &quot;Scoring Options&quot; section of Help below for information">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
347 <option value="yes">Yes</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
348 <option value="no" selected="true">No</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
349 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
350 <when value="yes">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
351 <param name="ma" type="integer" value="2" label="Set the match bonus" help="--ma; In `--local` mode match bonus is added to the alignment score for each position where a read character aligns to a reference character and the characters match. Not used in `--end-to-end` mode; Default=2"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
352 <param name="mp" type="text" size="10" value="6,2" label="Set the maximum (`MX`) and minimum (`MN`) mismatch penalties, both integers" help="--mp; A number less than or equal to `MX` and greater than or equal to `MN` is subtracted from the alignment score for each position where a read character aligns to a reference character, the characters do not match, and neither is an `N`. If `--ignore-quals` is specified, the number subtracted quals `MX`. Otherwise, the number subtracted is `MN + floor( (MX-MN)(MIN(Q, 40.0)/40.0) )` where Q is the Phred quality value; Default=6,2"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
353 <param name="np" type="integer" value="1" label="Sets penalty for positions where the read, reference, or both, contain an ambiguous character such as `N`" help="--np; Default=1"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
354 <param name="rdg_read_open" type="integer" value="5" label="Set the read gap opening penalty" help="--rdg; this is the first component of --rdg flag - opening penalty; Default=5"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
355 <param name="rdg_read_extend" type="integer" value="3" label="Set the read gap extension penalty" help="--rdg; this is the second component of --rdg flag - extension penalty; Default=3"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
356 <param name="rfg_ref_open" type="integer" value="5" label="Set the reference gap opening penalty" help="--rfg; this is the first component of --rfg flag - opening penalty; Default=5"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
357 <param name="rfg_ref_extend" type="integer" value="3" label="Set the reference gap extension penalty" help="--rfg; this is the second component of --rfg flag - extension penalty; Default=3"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
358 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
359 <when value="no">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
360 <!-- do nothing -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
361 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
362 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
363 <conditional name="reporting_options">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
364 <param name="reporting_options_selector" type="select" label="Do you want to use -a or -k options" help="Make sure you understand implications of setting -k and -a. See &quot;Reporting Options&quot; section of Help below for information on -k and -a options">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
365 <option value="no" selected="true">No, do not set</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
366 <option value="k">Set -k option and enter -k value</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
367 <option value="a">Set -a option</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
368 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
369 <when value="no">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
370 <!-- do nothing -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
371 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
372 <when value="-k">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
373 <param name="k" type="integer" min="0" value="1" label="Searches for at most that many distinct, valid alignments for each read" help="-k; see detalied description of this option in the help section below. Note: Bowtie 2 is not designed with large values for `-k` in mind, and when aligning reads to long, repetitive genomes large `-k` can be very, very slow"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
374 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
375 <when value="-a">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
376 <!-- do nothing here; set -a flag on the command line-->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
377 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
378 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
379 <conditional name="effort_options">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
380 <param name="effort_options_selector" type="select" label="Do you want to tweak effort options?" help="See &quot;Effort Options&quot; section of Help below for information">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
381 <option value="yes">Yes</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
382 <option value="no" selected="true">No</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
383 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
384 <when value="yes">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
385 <param name="D" type="integer" value="15" min="0" label="Attemp that many consecutive seed extension attempts to `fail` before Bowtie 2 moves on, using the alignments found so far" help="-D; A seed extension `fails` if it does not yield a new best or a new second-best alignment. This limit is automatically adjusted up when -k or -a are specified. Default=15"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
386 <param name="R" type="integer" value="2" min="0" label="Set the maximum number of times Bowtie 2 will `re-seed` reads with repetitive seeds" help="When `re-seeding`, Bowtie 2 simply chooses a new set of reads (same length, same number of mismatches allowed) at different offsets and searches for more alignments. A read is considered to have repetitive seeds if the total number of seed hits divided by the number of seeds that aligned at least once is greater than 300. Default=2"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
387 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
388 <when value="no">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
389 <!-- do nothing -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
390 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
391 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
392
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
393 <conditional name="sam_options">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
394 <param name="sam_options_selector" type="select" label="Do you want to tweak SAM/BAM Options?" help="See &quot;Output Options&quot; section of Help below for information">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
395 <option value="yes">Yes</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
396 <option value="no" selected="true">No</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
397 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
398 <when value="yes">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
399 <param name="no-unal" type="boolean" truevalue="--no-unal" falsevalue="" label="Suppress SAM records for reads that failed to align" help="--no-unal; Default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
400 <param name="omit-sec-seq" type="boolean" truevalue="--omit-sec-seq" falsevalue="" label="Suppress SEQ and QUAL strings for secondary alignments" help="--omit-sec-seq; Default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
401 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
402 <when value="no">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
403 <!-- do nothing -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
404 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
405 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
406 <conditional name="other_options">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
407 <param name="other_options_selector" type="select" label="Do you want to tweak Other Options?" help="See &quot;Other Options&quot; section of Help below for information">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
408 <option value="yes">Yes</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
409 <option value="no" selected="true">No</option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
410 </param>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
411 <when value="yes">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
412 <param name="reorder" type="boolean" truevalue="--reorder" falsevalue="" label="Guarantee that output SAM records are printed in an order corresponding to the order of the reads in the original input file" help="--reorder; Default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
413 <param name="seed" type="integer" value="0" min="0" label="Use this number as the seed for pseudo-random number generator" help="--seed; Default=0"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
414 <param name="non-deterministic" type="boolean" truevalue="--non-deterministic" falsevalue="" label="Re-initialize the pseudo-random generator for each read using the current time" help="--non-deterministic; see Help below for explanation of this option; default=False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
415 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
416 <when value="no">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
417 <!-- do nothing -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
418 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
419 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
420 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
421 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
422 <<<<<<< HEAD
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
423 =======
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
424
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
425 >>>>>>> 9c937b55955856d7c8950db2a60f2f8fd2b14152
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
426 </inputs>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
427
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
428 <!-- define outputs -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
429
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
430 <outputs>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
431
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
432 <data format="fastqsanger" name="output_unaligned_reads_l" label="${tool.name} on ${on_string}: unaligned reads (L)" >
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
433 <filter>library['unaligned_file'] is True</filter>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
434 <actions>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
435 <action type="format">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
436 <option type="from_param" name="library.input_1" param_attribute="ext" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
437 </action>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
438 </actions>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
439 </data>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
440 <data format="fastqsanger" name="output_unaligned_reads_r" label="${tool.name} on ${on_string}: unaligned reads (R)">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
441 <filter>( library['type'] == "paired" or library['type'] == "paired_collection" ) and library['unaligned_file'] is True</filter>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
442 <actions>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
443 <action type="format">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
444 <option type="from_param" name="library.input_1" param_attribute="ext" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
445 </action>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
446 </actions>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
447 </data>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
448
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
449 <data format="bam" name="output" label="${tool.name} on ${on_string}: aligned reads in BAM format">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
450 <actions>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
451 <conditional name="reference_genome.source">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
452 <when value="indexed">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
453 <action type="metadata" name="dbkey">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
454 <option type="from_data_table" name="bowtie2_indexes" column="1" offset="0">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
455 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
456 <filter type="param_value" ref="reference_genome.index" column="0"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
457 </option>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
458 </action>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
459 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
460 <when value="history">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
461 <action type="metadata" name="dbkey">
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
462 <option type="from_param" name="reference_genome.own_file" param_attribute="dbkey" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
463 </action>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
464 </when>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
465 </conditional>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
466 </actions>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
467 </data>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
468 </outputs>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
469
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
470 <tests>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
471 <test>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
472 <!-- basic test on single paired default run -->
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
473 <param name="type" value="paired"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
474 <param name="selection" value="no"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
475 <param name="paired_options_selector" value="no"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
476 <param name="unaligned_file" value="false"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
477 <param name="analysis_type_selector" value="simple"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
478 <param name="source" value="history" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
479 <<<<<<< HEAD
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
480 <param name="input_1" value="bowtie2/phix_reads.fastq" ftype="fastqsanger"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
481 <param name="own_file" value="bowtie2/phix_genome.fasta" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
482 <output name="output" file="bowtie2/phix_mapped.bam" ftype="bam" lines_diff="2" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
483 =======
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
484 <param name="input_1" value="bowtie2-fq1.fq" ftype="fastqsanger"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
485 <param name="input_2" value="bowtie2-fq2.fq" ftype="fastqsanger"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
486 <param name="own_file" value="bowtie2-ref.fasta" />
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
487 <output name="output" file="bowtie2-test1.bam" ftype="bam" lines_diff="2"/>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
488 >>>>>>> 9c937b55955856d7c8950db2a60f2f8fd2b14152
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
489 </test>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
490 </tests>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
491
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
492 <help>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
493
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
494 **Bowtie2 Overview**
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
495
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
496 Bowtie2_ is an ultrafast and memory-efficient tool for aligning sequencing reads to long reference sequences. It is particularly good at aligning reads of about 50 up to 100s or 1,000s of characters to relatively long (e.g. mammalian) genomes. Bowtie 2 supports gapped, local, and paired-end alignment modes. Galaxy wrapper for Bowtie 2 outputs alignments in `BAM format`_, enabling interoperation with a large number of other tools available at this site.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
497 Majority of information in this page is derived from an excellent `Bowtie2 manual`_ written by Ben Langmead.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
498
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
499 <<<<<<< HEAD
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
500 *Please cite:* Langmead, Ben and Salzberg, Steven L (2012). Fast gapped-read alignment with Bowtie 2. In Nature Methods, 9 (4), pp. 357–359.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
501 =======
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
502 .. _Bowtie2: http://bowtie-bio.sourceforge.net/bowtie2/
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
503 .. _`Bowtie2 manual`: http://bowtie-bio.sourceforge.net/bowtie2/manual.shtml
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
504 .. _`BAM format`: http://samtools.github.io/hts-specs/SAMv1.pdf
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
505 >>>>>>> 9c937b55955856d7c8950db2a60f2f8fd2b14152
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
506
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
507 -----
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
508
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
509 **Selecting reference genomes for Bowtie2**
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
510
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
511 Galaxy wrapper for Bowtie2 allows you select between precomputed and user-defined indices for reference genomes using **Will you select a reference genome from your history or use a built-in index?** flag. This flag has two options:
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
512
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
513 1. **Use a built-in genome index** - when selected (this is default), Galaxy provides the user with **Select reference genome index** dropdown. Genomes listed in this dropdown have been pre-indexed with bowtie2-build utility and are ready to be mapped against.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
514 2. **Use a genome from the history and build index** - when selected, Galaxy provides the user with **Select reference genome sequence** dropdown. This dropdown is populated by all FASTA formatted files listed in your current history. If your genome of interest is uploaded into history it will be shown there. Selecting a genome from this dropdown will cause Galaxy to first transparently index it using bowtie2-build command, and then run mapping with bowtie2.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
515
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
516 If your genome of interest is not listed here you have two choices:
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
517
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
518 1. Contact galaxy team using **Help->Support** link at the top of the interface and let us know that an index needs to be added
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
519 2. Upload your genome of interest as a FASTA file to Galaxy history and selected **Use a genome from the history and build index** option.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
520
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
521 ------
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
522
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
523 .. class:: infomark
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
524
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
525 **Bowtie2 options**
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
526
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
527 Galaxy wrapper for Bowtie2 implements most but not all options available through the command line. Supported options are described below.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
528
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
529 -----
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
530
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
531 **Inputs**
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
532
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
533 Bowtie 2 accepts files in Sanger FASTQ format (single or pair-end). Use the FASTQ Groomer to prepare your files.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
534
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
535 ------
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
536
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
537 **Input options**::
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
538
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
539 -s/--skip &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
540 Skip (i.e. do not align) the first `&lt;int&gt;` reads or pairs in the input.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
541
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
542 -u/--qupto &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
543 Align the first `&lt;int&gt;` reads or read pairs from the input (after the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
544 `-s`/`--skip` reads or pairs have been skipped), then stop. Default: no limit.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
545
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
546 -5/--trim5 &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
547 Trim `&lt;int&gt;` bases from 5' (left) end of each read before alignment (default: 0).
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
548
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
549 -3/--trim3 &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
550 Trim `&lt;int&gt;` bases from 3' (right) end of each read before alignment (default: 0).
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
551
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
552 --phred33
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
553 Input qualities are ASCII chars equal to the Phred quality plus 33. This is
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
554 also called the "Phred+33" encoding, which is used by the very latest Illumina
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
555 pipelines.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
556
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
557 --phred64
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
558 Input qualities are ASCII chars equal to the [Phred quality] plus 64. This is
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
559 also called the "Phred+64" encoding.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
560
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
561 --solexa-quals
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
562 Convert input qualities from Solexa Phred quality (which can be negative) to
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
563 Phred Phred quality (which can't). This scheme was used in older Illumina GA
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
564 Pipeline versions (prior to 1.3). Default: off.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
565
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
566 --int-quals
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
567 Quality values are represented in the read input file as space-separated ASCII integers, e.g., `40 40 30 40`..., rather than ASCII characters, e.g., `II?I`....
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
568 Integers are treated as being on the [Phred quality] scale unless
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
569 `--solexa-quals` is also specified. Default: off.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
570
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
571 ------
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
572
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
573 **Presets in `--end-to-end` mode**::
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
574
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
575 --very-fast
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
576 Same as: `-D 5 -R 1 -N 0 -L 22 -i S,0,2.50`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
577
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
578 --fast
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
579 Same as: `-D 10 -R 2 -N 0 -L 22 -i S,0,2.50`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
580
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
581 --sensitive
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
582 Same as: `-D 15 -R 2 -L 22 -i S,1,1.15` (default in `--end-to-end` mode)
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
583
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
584 --very-sensitive
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
585 Same as: `-D 20 -R 3 -N 0 -L 20 -i S,1,0.50`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
586
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
587 ------
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
588
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
589 **Presets options in `--local` mode**::
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
590
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
591 --very-fast-local
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
592 Same as: `-D 5 -R 1 -N 0 -L 25 -i S,1,2.00`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
593
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
594 --fast-local
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
595 Same as: `-D 10 -R 2 -N 0 -L 22 -i S,1,1.75`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
596
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
597 --sensitive-local
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
598 Same as: `-D 15 -R 2 -N 0 -L 20 -i S,1,0.75` (default in `--local` mode)
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
599
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
600 --very-sensitive-local
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
601 Same as: `-D 20 -R 3 -N 0 -L 20 -i S,1,0.50`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
602
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
603 ------
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
604
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
605 **Alignment options**::
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
606
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
607 -N &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
608 Sets the number of mismatches to allowed in a seed alignment during [multiseed
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
609 alignment]. Can be set to 0 or 1. Setting this higher makes alignment slower
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
610 (often much slower) but increases sensitivity. Default: 0.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
611
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
612 -L &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
613 Sets the length of the seed substrings to align during [multiseed alignment].
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
614 Smaller values make alignment slower but more senstive. Default: the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
615 `--sensitive` preset is used by default, which sets `-L` to 20 both in
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
616 `--end-to-end` mode and in `--local` mode.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
617
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
618 -i &lt;func&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
619 Sets a function governing the interval between seed substrings to use during
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
620 [multiseed alignment]. For instance, if the read has 30 characers, and seed
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
621 length is 10, and the seed interval is 6, the seeds extracted will be:
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
622
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
623 Read: TAGCTACGCTCTACGCTATCATGCATAAAC
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
624 Seed 1 fw: TAGCTACGCT
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
625 Seed 1 rc: AGCGTAGCTA
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
626 Seed 2 fw: CGCTCTACGC
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
627 Seed 2 rc: GCGTAGAGCG
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
628 Seed 3 fw: ACGCTATCAT
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
629 Seed 3 rc: ATGATAGCGT
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
630 Seed 4 fw: TCATGCATAA
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
631 Seed 4 rc: TTATGCATGA
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
632
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
633 Since it's best to use longer intervals for longer reads, this parameter sets
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
634 the interval as a function of the read length, rather than a single
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
635 one-size-fits-all number. For instance, specifying `-i S,1,2.5` sets the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
636 interval function `f` to `f(x) = 1 + 2.5 * sqrt(x)`, where x is the read length.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
637 See also: [setting function options]. If the function returns a result less than
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
638 1, it is rounded up to 1. Default: the `--sensitive` preset is used by
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
639 default, which sets `-i` to `S,1,1.15` in `--end-to-end` mode to `-i S,1,0.75`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
640 in `--local` mode.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
641
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
642 --n-ceil &lt;func&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
643 Sets a function governing the maximum number of ambiguous characters (usually
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
644 `N`s and/or `.`s) allowed in a read as a function of read length. For instance,
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
645 specifying `-L,0,0.15` sets the N-ceiling function `f` to `f(x) = 0 + 0.15 * x`,
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
646 where x is the read length. See also: [setting function options]. Reads
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
647 exceeding this ceiling are [filtered out]. Default: `L,0,0.15`.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
648
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
649 --dpad &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
650 "Pads" dynamic programming problems by `&lt;int&gt;` columns on either side to allow
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
651 gaps. Default: 15.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
652
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
653 --gbar &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
654 Disallow gaps within `&lt;int&gt;` positions of the beginning or end of the read.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
655 Default: 4.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
656
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
657 --ignore-quals
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
658 When calculating a mismatch penalty, always consider the quality value at the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
659 mismatched position to be the highest possible, regardless of the actual value.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
660 I.e. input is treated as though all quality values are high. This is also the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
661 default behavior when the input doesn't specify quality values (e.g. in `-f`,
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
662 `-r`, or `-c` modes).
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
663
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
664 --nofw/--norc
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
665 If `--nofw` is specified, `bowtie2` will not attempt to align unpaired reads to
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
666 the forward (Watson) reference strand. If `--norc` is specified, `bowtie2` will
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
667 not attempt to align unpaired reads against the reverse-complement (Crick)
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
668 reference strand. In paired-end mode, `--nofw` and `--norc` pertain to the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
669 fragments; i.e. specifying `--nofw` causes `bowtie2` to explore only those
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
670 paired-end configurations corresponding to fragments from the reverse-complement
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
671 (Crick) strand. Default: both strands enabled.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
672
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
673 --no-1mm-upfront
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
674 By default, Bowtie 2 will attempt to find either an exact or a 1-mismatch
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
675 end-to-end alignment for the read *before* trying the [multiseed heuristic]. Such
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
676 alignments can be found very quickly, and many short read alignments have exact or
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
677 near-exact end-to-end alignments. However, this can lead to unexpected
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
678 alignments when the user also sets options governing the [multiseed heuristic],
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
679 like `-L` and `-N`. For instance, if the user specifies `-N 0` and `-L` equal
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
680 to the length of the read, the user will be surprised to find 1-mismatch alignments
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
681 reported. This option prevents Bowtie 2 from searching for 1-mismatch end-to-end
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
682 alignments before using the [multiseed heuristic], which leads to the expected
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
683 behavior when combined with options such as `-L` and `-N`. This comes at the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
684 expense of speed.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
685
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
686 --end-to-end
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
687 In this mode, Bowtie 2 requires that the entire read align from one end to the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
688 other, without any trimming (or "soft clipping") of characters from either end.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
689 The match bonus `--ma` always equals 0 in this mode, so all alignment scores
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
690 are less than or equal to 0, and the greatest possible alignment score is 0.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
691 This is mutually exclusive with `--local`. `--end-to-end` is the default mode.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
692
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
693 --local
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
694 In this mode, Bowtie 2 does not require that the entire read align from one end
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
695 to the other. Rather, some characters may be omitted ("soft clipped") from the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
696 ends in order to achieve the greatest possible alignment score. The match bonus
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
697 `--ma` is used in this mode, and the best possible alignment score is equal to
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
698 the match bonus (`--ma`) times the length of the read. Specifying `--local`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
699 and one of the presets (e.g. `--local --very-fast`) is equivalent to specifying
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
700 the local version of the preset (`--very-fast-local`). This is mutually
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
701 exclusive with `--end-to-end`. `--end-to-end` is the default mode.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
702
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
703 -----
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
704
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
705 **Scoring options**::
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
706
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
707 --ma &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
708 Sets the match bonus. In `--local` mode `&lt;int&gt;` is added to the alignment
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
709 score for each position where a read character aligns to a reference character
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
710 and the characters match. Not used in `--end-to-end` mode. Default: 2.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
711
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
712 --mp MX,MN
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
713 Sets the maximum (`MX`) and minimum (`MN`) mismatch penalties, both integers. A
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
714 number less than or equal to `MX` and greater than or equal to `MN` is
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
715 subtracted from the alignment score for each position where a read character
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
716 aligns to a reference character, the characters do not match, and neither is an
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
717 `N`. If `--ignore-quals` is specified, the number subtracted quals `MX`.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
718 Otherwise, the number subtracted is `MN + floor( (MX-MN)(MIN(Q, 40.0)/40.0) )`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
719 where Q is the Phred quality value. Default: `MX` = 6, `MN` = 2.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
720
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
721 --np &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
722 Sets penalty for positions where the read, reference, or both, contain an
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
723 ambiguous character such as `N`. Default: 1.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
724
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
725 --rdg &lt;int1&gt;,&lt;int2&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
726 Sets the read gap open (`&lt;int1&gt;`) and extend (`&lt;int2&gt;`) penalties. A read gap of
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
727 length N gets a penalty of `&lt;int1&gt;` + N * `&lt;int2&gt;`. Default: 5, 3.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
728
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
729 --rfg &lt;int1&gt;,&lt;int2&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
730 Sets the reference gap open (`&lt;int1&gt;`) and extend (`&lt;int2&gt;`) penalties. A
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
731 reference gap of length N gets a penalty of `&lt;int1&gt;` + N * `&lt;int2&gt;`. Default:
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
732 5, 3.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
733
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
734 --score-min &lt;func&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
735 Sets a function governing the minimum alignment score needed for an alignment to
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
736 be considered "valid" (i.e. good enough to report). This is a function of read
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
737 length. For instance, specifying `L,0,-0.6` sets the minimum-score function `f`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
738 to `f(x) = 0 + -0.6 * x`, where `x` is the read length. See also: [setting
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
739 function options]. The default in `--end-to-end` mode is `L,-0.6,-0.6` and
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
740 the default in `--local` mode is `G,20,8`.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
741
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
742 -----
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
743
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
744 **Reporting options**::
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
745
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
746 -k &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
747 By default, `bowtie2` searches for distinct, valid alignments for each read.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
748 When it finds a valid alignment, it continues looking for alignments that are
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
749 nearly as good or better. The best alignment found is reported (randomly
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
750 selected from among best if tied). Information about the best alignments is
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
751 used to estimate mapping quality and to set SAM optional fields, such as
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
752 `AS:i` and `XS:i`.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
753
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
754 When `-k` is specified, however, `bowtie2` behaves differently. Instead, it
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
755 searches for at most `&lt;int&gt;` distinct, valid alignments for each read. The
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
756 search terminates when it can't find more distinct valid alignments, or when it
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
757 finds `&lt;int&gt;`, whichever happens first. All alignments found are reported in
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
758 descending order by alignment score. The alignment score for a paired-end
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
759 alignment equals the sum of the alignment scores of the individual mates. Each
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
760 reported read or pair alignment beyond the first has the SAM 'secondary' bit
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
761 (which equals 256) set in its FLAGS field. For reads that have more than
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
762 `&lt;int&gt;` distinct, valid alignments, `bowtie2` does not guarantee that the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
763 `&lt;int&gt;` alignments reported are the best possible in terms of alignment score.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
764 `-k` is mutually exclusive with `-a`.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
765
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
766 Note: Bowtie 2 is not designed with large values for `-k` in mind, and when
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
767 aligning reads to long, repetitive genomes large `-k` can be very, very slow.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
768
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
769 -a
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
770 Like `-k` but with no upper limit on number of alignments to search for. `-a`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
771 is mutually exclusive with `-k`.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
772
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
773 Note: Bowtie 2 is not designed with `-a` mode in mind, and when
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
774 aligning reads to long, repetitive genomes this mode can be very, very slow.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
775
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
776 -----
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
777
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
778 **Effort options**::
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
779
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
780 -D &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
781 Up to `&lt;int&gt;` consecutive seed extension attempts can "fail" before Bowtie 2
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
782 moves on, using the alignments found so far. A seed extension "fails" if it
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
783 does not yield a new best or a new second-best alignment. This limit is
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
784 automatically adjusted up when -k or -a are specified. Default: 15.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
785
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
786 -R &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
787 `&lt;int&gt;` is the maximum number of times Bowtie 2 will "re-seed" reads with
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
788 repetitive seeds. When "re-seeding," Bowtie 2 simply chooses a new set of reads
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
789 (same length, same number of mismatches allowed) at different offsets and
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
790 searches for more alignments. A read is considered to have repetitive seeds if
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
791 the total number of seed hits divided by the number of seeds that aligned at
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
792 least once is greater than 300. Default: 2.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
793
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
794 -----
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
795
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
796 **Paired-end options**::
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
797
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
798 -I/--minins &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
799 The minimum fragment length for valid paired-end alignments. E.g. if `-I 60` is
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
800 specified and a paired-end alignment consists of two 20-bp alignments in the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
801 appropriate orientation with a 20-bp gap between them, that alignment is
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
802 considered valid (as long as `-X` is also satisfied). A 19-bp gap would not
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
803 be valid in that case. If trimming options `-3` or `-5` are also used, the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
804 `-I` constraint is applied with respect to the untrimmed mates.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
805
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
806 The larger the difference between `-I` and `-X`, the slower Bowtie 2 will
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
807 run. This is because larger differences bewteen `-I` and `-X` require that
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
808 Bowtie 2 scan a larger window to determine if a concordant alignment exists.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
809 For typical fragment length ranges (200 to 400 nucleotides), Bowtie 2 is very
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
810 efficient.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
811
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
812 Default: 0 (essentially imposing no minimum)
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
813
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
814 -X/--maxins &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
815 The maximum fragment length for valid paired-end alignments. E.g. if `-X 100`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
816 is specified and a paired-end alignment consists of two 20-bp alignments in the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
817 proper orientation with a 60-bp gap between them, that alignment is considered
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
818 valid (as long as `-I` is also satisfied). A 61-bp gap would not be valid in
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
819 that case. If trimming options `-3` or `-5` are also used, the `-X`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
820 constraint is applied with respect to the untrimmed mates, not the trimmed
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
821 mates.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
822
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
823 The larger the difference between `-I` and `-X`, the slower Bowtie 2 will
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
824 run. This is because larger differences bewteen `-I` and `-X` require that
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
825 Bowtie 2 scan a larger window to determine if a concordant alignment exists.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
826 For typical fragment length ranges (200 to 400 nucleotides), Bowtie 2 is very
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
827 efficient.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
828
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
829 Default: 500.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
830
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
831 --fr/--rf/--ff
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
832 The upstream/downstream mate orientations for a valid paired-end alignment
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
833 against the forward reference strand. E.g., if `--fr` is specified and there is
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
834 a candidate paired-end alignment where mate 1 appears upstream of the reverse
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
835 complement of mate 2 and the fragment length constraints (`-I` and `-X`) are
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
836 met, that alignment is valid. Also, if mate 2 appears upstream of the reverse
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
837 complement of mate 1 and all other constraints are met, that too is valid.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
838 `--rf` likewise requires that an upstream mate1 be reverse-complemented and a
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
839 downstream mate2 be forward-oriented. ` --ff` requires both an upstream mate 1
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
840 and a downstream mate 2 to be forward-oriented. Default: `--fr` (appropriate
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
841 for Illumina's Paired-end Sequencing Assay).
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
842
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
843 --no-mixed
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
844 By default, when `bowtie2` cannot find a concordant or discordant alignment for
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
845 a pair, it then tries to find alignments for the individual mates. This option
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
846 disables that behavior.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
847
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
848 --no-discordant
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
849 By default, `bowtie2` looks for discordant alignments if it cannot find any
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
850 concordant alignments. A discordant alignment is an alignment where both mates
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
851 align uniquely, but that does not satisfy the paired-end constraints
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
852 (`--fr`/`--rf`/`--ff`, `-I`, `-X`). This option disables that behavior.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
853
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
854 --dovetail
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
855 If the mates "dovetail", that is if one mate alignment extends past the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
856 beginning of the other such that the wrong mate begins upstream, consider that
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
857 to be concordant. See also: [Mates can overlap, contain or dovetail each
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
858 other]. Default: mates cannot dovetail in a concordant alignment.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
859
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
860 --no-contain
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
861 If one mate alignment contains the other, consider that to be non-concordant.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
862 See also: [Mates can overlap, contain or dovetail each other]. Default: a mate
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
863 can contain the other in a concordant alignment.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
864
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
865 --no-overlap
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
866 If one mate alignment overlaps the other at all, consider that to be
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
867 non-concordant. See also: [Mates can overlap, contain or dovetail each other].
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
868 Default: mates can overlap in a concordant alignment.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
869
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
870 ------
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
871
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
872 **SAM options**::
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
873
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
874 --rg-id &lt;text&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
875 Set the read group ID to `&lt;text&gt;`. This causes the SAM `@RG` header line to be
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
876 printed, with `&lt;text&gt;` as the value associated with the `ID:` tag. It also
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
877 causes the `RG:Z:` extra field to be attached to each SAM output record, with
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
878 value set to `&lt;text&gt;`.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
879
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
880 --rg &lt;text&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
881 Add `&lt;text&gt;` (usually of the form `TAG:VAL`, e.g. `SM:Pool1`) as a field on the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
882 `@RG` header line. Note: in order for the `@RG` line to appear, `--rg-id`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
883 must also be specified. This is because the `ID` tag is required by the [SAM
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
884 Spec][SAM]. Specify `--rg` multiple times to set multiple fields. See the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
885 [SAM Spec][SAM] for details about what fields are legal.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
886
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
887 --omit-sec-seq
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
888 When printing secondary alignments, Bowtie 2 by default will write out the `SEQ`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
889 and `QUAL` strings. Specifying this option causes Bowtie 2 to print an asterix
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
890 in those fields instead.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
891
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
892 -----
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
893
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
894 **Other options**::
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
895
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
896 --reorder
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
897 Guarantees that output SAM records are printed in an order corresponding to the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
898 order of the reads in the original input file, even when `-p` is set greater
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
899 than 1. Specifying `--reorder` and setting `-p` greater than 1 causes Bowtie
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
900 2 to run somewhat slower and use somewhat more memory then if `--reorder` were
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
901 not specified. Has no effect if `-p` is set to 1, since output order will
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
902 naturally correspond to input order in that case.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
903
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
904 --seed &lt;int&gt;
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
905 Use `&lt;int&gt;` as the seed for pseudo-random number generator. Default: 0.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
906
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
907 --non-deterministic
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
908 Normally, Bowtie 2 re-initializes its pseudo-random generator for each read. It
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
909 seeds the generator with a number derived from (a) the read name, (b) the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
910 nucleotide sequence, (c) the quality sequence, (d) the value of the `--seed`
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
911 option. This means that if two reads are identical (same name, same
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
912 nucleotides, same qualities) Bowtie 2 will find and report the same alignment(s)
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
913 for both, even if there was ambiguity. When `--non-deterministic` is specified,
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
914 Bowtie 2 re-initializes its pseudo-random generator for each read using the
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
915 current time. This means that Bowtie 2 will not necessarily report the same
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
916 alignment for two identical reads. This is counter-intuitive for some users,
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
917 but might be more appropriate in situations where the input consists of many
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
918 identical reads.
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
919
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
920 </help>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
921 <citations>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
922 <<<<<<< HEAD
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
923 <citation type="doi">10.1038/nmeth.1923</citation>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
924 </citations>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
925 =======
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
926 <citation type="doi">10.1186/gb-2009-10-3-r25</citation>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
927 <citation type="doi">10.1038/nmeth.1923</citation>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
928 </citations>
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
929 >>>>>>> 9c937b55955856d7c8950db2a60f2f8fd2b14152
2a6cfe8997aa Uploaded from GH
devteam
parents:
diff changeset
930 </tool>