comparison tophat2_wrapper.xml @ 0:92e9168067b6 default tip

commit
author ryotas <yamanaka@genome.rcast.u-tokyo.ac.jp>
date Thu, 22 Oct 2015 16:02:19 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:92e9168067b6
1 <tool id="tophat2" name="Tophat2" version="0.7">
2 <!-- Wrapper compatible with Tophat version 2.0.0+ -->
3 <description>Gapped-read mapper for RNA-seq data</description>
4 <version_command>tophat2 --version</version_command>
5 <requirements>
6 <container type="docker">nasuno/tophat2:2.0.9</container>
7 <!--
8 <requirement type="package" version="0.1.18">samtools</requirement>
9 <requirement type="package" version="2.1.0">bowtie2</requirement>
10 <requirement type="package" version="2.0.9">tophat2</requirement>
11 -->
12 </requirements>
13
14 <command>
15 ##
16 ## Set path to index, building the reference if necessary.
17 ##
18
19 #set index_path = ''
20 #if $refGenomeSource.genomeSource == "history":
21 bowtie2-build "$refGenomeSource.ownFile" genome ; ln -s "$refGenomeSource.ownFile" genome.fa ;
22 #set index_path = 'genome'
23 #else:
24 #set index_path = $refGenomeSource.index.fields.path
25 #end if
26
27 ##
28 ## Run tophat.
29 ##
30
31 tophat2
32
33 ## Change this to accommodate the number of threads you have available.
34 --num-threads \${GALAXY_SLOTS:-4}
35
36 ## Set params.
37 #if $params.settingsType == "full":
38 --read-mismatches $params.read_mismatches
39 #if str($params.bowtie_n) == "Yes":
40 --bowtie-n
41 #end if
42
43 --read-edit-dist $params.read_edit_dist
44 --read-realign-edit-dist $params.read_realign_edit_dist
45 -a $params.anchor_length
46 -m $params.splice_mismatches
47 -i $params.min_intron_length
48 -I $params.max_intron_length
49 -g $params.max_multihits
50 --min-segment-intron $params.min_segment_intron
51 --max-segment-intron $params.max_segment_intron
52 --segment-mismatches $params.seg_mismatches
53 --segment-length $params.seg_length
54 --library-type $params.library_type
55
56 ## Indel search.
57 #if $params.indel_search.allow_indel_search == "Yes":
58 ## --allow-indels
59 --max-insertion-length $params.indel_search.max_insertion_length
60 --max-deletion-length $params.indel_search.max_deletion_length
61 #else:
62 --no-novel-indels
63 #end if
64
65 ## Supplying junctions parameters.
66 #if $params.own_junctions.use_junctions == "Yes":
67 #if $params.own_junctions.gene_model_ann.use_annotations == "Yes":
68 -G $params.own_junctions.gene_model_ann.gene_annotation_model
69 #end if
70 #if $params.own_junctions.raw_juncs.use_juncs == "Yes":
71 -j $params.own_junctions.raw_juncs.raw_juncs
72 #end if
73 #if str($params.own_junctions.no_novel_juncs) == "Yes":
74 --no-novel-juncs
75 #end if
76 #end if
77
78 #if $params.coverage_search.use_search == "Yes":
79 --coverage-search
80 --min-coverage-intron $params.coverage_search.min_coverage_intron
81 --max-coverage-intron $params.coverage_search.max_coverage_intron
82 #else:
83 --no-coverage-search
84 #end if
85
86 #if str($params.microexon_search) == "Yes":
87 --microexon-search
88 #end if
89
90 #if $params.fusion_search.do_search == "Yes":
91 --fusion-search
92 --fusion-anchor-length $params.fusion_search.anchor_len
93 --fusion-min-dist $params.fusion_search.min_dist
94 --fusion-read-mismatches $params.fusion_search.read_mismatches
95 --fusion-multireads $params.fusion_search.multireads
96 --fusion-multipairs $params.fusion_search.multipairs
97 --fusion-ignore-chromosomes "$params.fusion_search.ignore_chromosomes"
98 #end if
99
100 #if $params.bowtie2_settings.b2_settings == "Yes":
101 #if $params.bowtie2_settings.preset.b2_preset == "Yes":
102 --b2-$params.bowtie2_settings.preset.b2_preset_select
103 #end if
104 #end if
105
106 #end if
107
108 ## Read group information.
109 #if $readGroup.specReadGroup == "yes"
110 --rg-id "$readGroup.rgid"
111 --rg-library "$readGroup.rglb"
112 --rg-platform "$readGroup.rgpl"
113 --rg-sample "$readGroup.rgsm"
114 #end if
115
116 ## Set index path, inputs and parameters specific to paired data.
117 #if $singlePaired.sPaired != "single"
118 -r $singlePaired.mate_inner_distance
119 --mate-std-dev=$singlePaired.mate_std_dev
120
121 #if str($singlePaired.report_discordant_pairs) == "No":
122 --no-discordant
123 #end if
124
125 #if $singlePaired.sPaired == "paired"
126 ${index_path} "$singlePaired.input1" "$singlePaired.input2"
127 #else
128 ${index_path} "$singlePaired.input.forward" "$singlePaired.input.reverse"
129 #end if
130 #else
131 ${index_path} "$singlePaired.input1"
132 #end if
133 </command>
134
135 <inputs>
136 <conditional name="singlePaired">
137 <param name="sPaired" type="select" label="Is this library mate-paired?">
138 <option value="single">Single-end</option>
139 <option value="paired">Paired-end (as individual datasets)</option>
140 <option value="paired_collection">Paired-end (as collection)</option>
141 </param>
142 <when value="single">
143 <param format="fastqsanger" name="input1" type="data" label="RNA-Seq FASTQ file" help="Nucleotide-space: Must have Sanger-scaled quality values with ASCII offset 33"/>
144 </when>
145 <when value="paired">
146 <param format="fastqsanger" name="input1" type="data" label="RNA-Seq FASTQ file, forward reads" help="Nucleotide-space: Must have Sanger-scaled quality values with ASCII offset 33" />
147 <param format="fastqsanger" name="input2" type="data" label="RNA-Seq FASTQ file, reverse reads" help="Nucleotide-space: Must have Sanger-scaled quality values with ASCII offset 33" />
148 <expand macro="paired_parameters" />
149 </when>
150 <when value="paired_collection">
151 <param format="fastqsanger" name="input" type="data_collection" collection_type="paired" label="RNA-Seq FASTQ paired reads" help="Nucleotide-space: Must have Sanger-scaled quality values with ASCII offset 33" />
152 <expand macro="paired_parameters" />
153 </when>
154 </conditional>
155 <expand macro="refGenomeSourceConditional">
156 <options from_data_table="tophat2_indexes">
157 <filter type="sort_by" column="2"/>
158 <validator type="no_options" message="No genomes are available for the selected input dataset"/>
159 </options>
160 </expand>
161 <conditional name="params">
162 <param name="settingsType" type="select" label="TopHat settings to use" help="You can use the default settings or set custom values for any of Tophat's parameters.">
163 <option value="preSet">Use Defaults</option>
164 <option value="full">Full parameter list</option>
165 </param>
166 <when value="preSet" />
167 <!-- Full/advanced params. -->
168 <when value="full">
169 <param name="read_realign_edit_dist" type="integer" value="1000" label="Max realign edit distance" help="Some of the reads spanning multiple exons may be mapped incorrectly as a contiguous alignment to the genome even though the correct alignment should be a spliced one - this can happen in the presence of processed pseudogenes that are rarely (if at all) transcribed or expressed. This option can direct TopHat to re-align reads for which the edit distance of an alignment obtained in a previous mapping step is above or equal to this option value. If you set this option to 0, TopHat will map every read in all the mapping steps (transcriptome if you provided gene annotations, genome, and finally splice variants detected by TopHat), reporting the best possible alignment found in any of these mapping steps. This may greatly increase the mapping accuracy at the expense of an increase in running time. The default value for this option is set such that TopHat will not try to realign reads already mapped in earlier steps." />
170
171 <param name="read_edit_dist" type="integer" value="2" label="Max edit distance" help="Final read alignments having more than these many edit distance are discarded." />
172
173 <param name="library_type" type="select" label="Library Type" help="TopHat will treat the reads as strand specific. Every read alignment will have an XS attribute tag. Consider supplying library type options below to select the correct RNA-seq protocol.">
174 <option value="fr-unstranded">FR Unstranded</option>
175 <option value="fr-firststrand">FR First Strand</option>
176 <option value="fr-secondstrand">FR Second Strand</option>
177 </param>
178 <param name="read_mismatches" type="integer" value="2" label="Final read mismatches" help="Final read alignments having more than these many mismatches are discarded." />
179 <param name="bowtie_n" type="select" label="Use bowtie -n mode">
180 <option selected="true" value="No">No</option>
181 <option value="Yes">Yes</option>
182 </param>
183 <param name="anchor_length" type="integer" value="8" label="Anchor length (at least 3)" help="Report junctions spanned by reads with at least this many bases on each side of the junction." />
184 <param name="splice_mismatches" type="integer" value="0" label="Maximum number of mismatches that can appear in the anchor region of spliced alignment" />
185 <param name="min_intron_length" type="integer" value="70" label="The minimum intron length" help="TopHat will ignore donor/acceptor pairs closer than this many bases apart." />
186 <param name="max_intron_length" type="integer" value="500000" label="The maximum intron length" help="When searching for junctions ab initio, TopHat will ignore donor/acceptor pairs farther than this many bases apart, except when such a pair is supported by a split segment alignment of a long read." />
187 <expand macro="indel_searchConditional" />
188 alignments (number of reads divided by average depth of coverage)" help="0.0 to 1.0 (0 to turn off)" />
189 <param name="max_multihits" type="integer" value="20" label="Maximum number of alignments to be allowed" />
190 <param name="min_segment_intron" type="integer" value="50" label="Minimum intron length that may be found during split-segment (default) search" />
191 <param name="max_segment_intron" type="integer" value="500000" label="Maximum intron length that may be found during split-segment (default) search" />
192 <param name="seg_mismatches" type="integer" min="0" max="3" value="2" label="Number of mismatches allowed in each segment alignment for reads mapped independently" />
193 <param name="seg_length" type="integer" value="25" label="Minimum length of read segments" />
194
195 <!-- Options for supplying own junctions. -->
196 <expand macro="own_junctionsConditional" />
197 <!-- Coverage search. -->
198 <conditional name="coverage_search">
199 <param name="use_search" type="select" label="Use Coverage Search" help="Enables the coverage based search for junctions. Use when coverage search is disabled by default (such as for reads 75bp or longer), for maximum sensitivity.">
200 <option selected="true" value="No">No</option>
201 <option value="Yes">Yes</option>
202 </param>
203 <when value="Yes">
204 <param name="min_coverage_intron" type="integer" value="50" label="Minimum intron length that may be found during coverage search" />
205 <param name="max_coverage_intron" type="integer" value="20000" label="Maximum intron length that may be found during coverage search" />
206 </when>
207 <when value="No" />
208 </conditional>
209
210 <!-- Microexon search params -->
211 <param name="microexon_search" type="select" label="Use Microexon Search" help="With this option, the pipeline will attempt to find alignments incident to microexons. Works only for reads 50bp or longer.">
212 <option value="No">No</option>
213 <option value="Yes">Yes</option>
214 </param>
215
216 <!-- Fusion mapping. -->
217 <conditional name="fusion_search">
218 <param name="do_search" type="select" label="Do Fusion Search">
219 <option selected="true" value="No">No</option>
220 <option value="Yes">Yes</option>
221 </param>
222 <when value="No" />
223 <when value="Yes">
224 <param name="anchor_len" type="integer" value="20" label="Anchor Length" help="A 'supporting' read must map to both sides of a fusion by at least this many bases."/>
225 <param name="min_dist" type="integer" value="10000000" label="Minimum Distance" help="For intra-chromosomal fusions, TopHat-Fusion tries to find fusions separated by at least this distance."/>
226 <param name="read_mismatches" type="integer" value="2" label="Read Mismatches" help="Reads support fusions if they map across fusion with at most this many mismatches."/>
227 <param name="multireads" type="integer" value="2" label="Multireads" help="Reads that map to more than this many places will be ignored. It may be possible that a fusion is supported by reads (or pairs) that map to multiple places."/>
228 <param name="multipairs" type="integer" value="2" label="Multipairs" help="Pairs that map to more than this many places will be ignored."/>
229 <param name="ignore_chromosomes" type="text" value='' label="Ignore some chromosomes such as chrM when detecting fusion break points"/>
230 </when>
231 </conditional>
232
233 <!-- Bowtie2 settings. -->
234 <conditional name="bowtie2_settings">
235 <param name="b2_settings" type="select" label="Set Bowtie2 settings">
236 <option selected="true" value="No">No</option>
237 <option value="Yes">Yes</option>
238 </param>
239 <when value="No" />
240 <when value="Yes">
241 <conditional name="preset">
242 <param name="b2_preset" type="select" label="Use Preset options">
243 <option selected="true" value="Yes">Yes</option>
244 <option value="No">No</option>
245 </param>
246 <when value="Yes">
247 <param name="b2_preset_select" type="select" label="Preset option">
248 <option value="very-fast">Very fast</option>
249 <option value="fast">Fast</option>
250 <option selected="true" value="sensitive">Sensitive</option>
251 <option value="very-sensitive">Very sensitive</option>
252 </param>
253 </when>
254 <!-- TODO: -->
255 <when value="No" />
256 </conditional>
257 </when>
258 </conditional>
259 </when> <!-- full -->
260 </conditional> <!-- params -->
261 <conditional name="readGroup">
262 <param name="specReadGroup" type="select" label="Specify read group?">
263 <option value="yes">Yes</option>
264 <option value="no" selected="True">No</option>
265 </param>
266 <when value="yes">
267 <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="Required if RG specified. Read group IDs may be modified when merging SAM files in order to handle collisions." />
268 <param name="rglb" type="text" size="25" label="Library name (LB)" help="Required if RG specified" />
269 <param name="rgpl" type="text" size="25" label="Platform/technology used to produce the reads (PL)" help="Required if RG specified. Valid values : CAPILLARY, LS454, ILLUMINA, SOLID, HELICOS, IONTORRENT and PACBIO" />
270 <param name="rgsm" type="text" size="25" label="Sample (SM)" help="Required if RG specified. Use pool name where a pool is being sequenced" />
271 </when>
272 <when value="no" />
273 </conditional> <!-- readGroup -->
274 </inputs>
275
276 <stdio>
277 <regex match="Exception|Error" source="both" level="fatal" description="Tool execution failed"/>
278 <regex match=".*" source="both" level="log" description="tool progress"/>
279 </stdio>
280
281 <outputs>
282 <data format="txt" name="align_summary" label="${tool.name} on ${on_string}: align_summary" from_work_dir="tophat_out/align_summary.txt"/>
283 <data format="tabular" name="fusions" label="${tool.name} on ${on_string}: fusions" from_work_dir="tophat_out/fusions.out">
284 <filter>(params['settingsType'] == 'full' and params['fusion_search']['do_search'] == 'Yes')</filter>
285 </data>
286 <data format="bed" name="insertions" label="${tool.name} on ${on_string}: insertions" from_work_dir="tophat_out/insertions.bed">
287 <expand macro="dbKeyActions" />
288 </data>
289 <data format="bed" name="deletions" label="${tool.name} on ${on_string}: deletions" from_work_dir="tophat_out/deletions.bed">
290 <expand macro="dbKeyActions" />
291 </data>
292 <data format="bed" name="junctions" label="${tool.name} on ${on_string}: splice junctions" from_work_dir="tophat_out/junctions.bed">
293 <expand macro="dbKeyActions" />
294 </data>
295 <data format="bam" name="accepted_hits" label="${tool.name} on ${on_string}: accepted_hits" from_work_dir="tophat_out/accepted_hits.bam">
296 <expand macro="dbKeyActions" />
297 </data>
298 </outputs>
299
300 <macros>
301 <import>tophat_macros.xml</import>
302 <xml name="paired_parameters">
303 <param name="mate_inner_distance" type="integer" value="300" label="Mean Inner Distance between Mate Pairs" />
304 <param name="mate_std_dev" type="integer" value="20" label="Std. Dev for Distance between Mate Pairs" help="The standard deviation for the distribution on inner distances between mate pairs."/>
305 <!-- Discordant pairs. -->
306 <param name="report_discordant_pairs" type="select" label="Report discordant pair alignments?">
307 <option value="No">No</option>
308 <option selected="True" value="Yes">Yes</option>
309 </param>
310 </xml>
311 <macro name="dbKeyActions">
312 <actions>
313 <conditional name="refGenomeSource.genomeSource">
314 <when value="indexed">
315 <action type="metadata" name="dbkey">
316 <option type="from_data_table" name="tophat2_indexes" column="1" offset="0">
317 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
318 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
319 </option>
320 </action>
321 </when>
322 <when value="history">
323 <action type="metadata" name="dbkey">
324 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
325 </action>
326 </when>
327 </conditional>
328 </actions>
329 </macro>
330 </macros>
331
332 <tests>
333 <!-- Test base-space single-end reads with pre-built index and preset parameters -->
334 <test>
335 <!-- TopHat commands:
336 tophat2 -o tmp_dir -p 1 tophat_in1 test-data/tophat_in2.fastqsanger
337 Rename the files in tmp_dir appropriately
338 -->
339 <param name="sPaired" value="single" />
340 <param name="input1" ftype="fastqsanger" value="tophat_in2.fastqsanger" />
341 <param name="genomeSource" value="indexed" />
342 <param name="index" value="tophat_test" />
343 <param name="settingsType" value="preSet" />
344 <param name="specReadGroup" value="No" />
345 <output name="junctions" file="tophat2_out1j.bed" />
346 <output name="accepted_hits" file="tophat_out1h.bam" compare="sim_size" />
347 </test>
348 <!-- Test using base-space test data: paired-end reads, index from history. -->
349 <test>
350 <!-- TopHat commands:
351 bowtie2-build -f test-data/tophat_in1.fasta tophat_in1
352 tophat2 -o tmp_dir -p 1 -r 20 tophat_in1 test-data/tophat_in2.fastqsanger test-data/tophat_in3.fastqsanger
353 Rename the files in tmp_dir appropriately
354 -->
355 <param name="sPaired" value="paired" />
356 <param name="input1" ftype="fastqsanger" value="tophat_in2.fastqsanger" />
357 <param name="input2" ftype="fastqsanger" value="tophat_in3.fastqsanger" />
358 <param name="genomeSource" value="history" />
359 <param name="ownFile" ftype="fasta" value="tophat_in1.fasta" />
360 <param name="mate_inner_distance" value="20" />
361 <param name="settingsType" value="preSet" />
362 <param name="specReadGroup" value="No" />
363 <output name="junctions" file="tophat2_out2j.bed" />
364 <output name="accepted_hits" file="tophat_out2h.bam" compare="sim_size" />
365 </test>
366 <test>
367 <!-- Same test as above but with a collection. -->
368 <param name="sPaired" value="paired_collection" />
369 <param name="input">
370 <collection type="paired">
371 <element name="forward" value="tophat_in2.fastqsanger" ftype="fastqsanger" />
372 <element name="reverse" value="tophat_in3.fastqsanger" ftype="fastqsanger" />
373 </collection>
374 </param>
375 <param name="genomeSource" value="history" />
376 <param name="ownFile" ftype="fasta" value="tophat_in1.fasta" />
377 <param name="mate_inner_distance" value="20" />
378 <param name="settingsType" value="preSet" />
379 <param name="specReadGroup" value="No" />
380 <output name="junctions" file="tophat2_out2j.bed" />
381 <output name="accepted_hits" file="tophat_out2h.bam" compare="sim_size" />
382 </test>
383 <!-- Test base-space single-end reads with user-supplied reference fasta and full parameters -->
384 <test>
385 <!-- Tophat commands:
386 bowtie2-build -f test-data/tophat_in1.fasta tophat_in1
387 tophat2 -o tmp_dir -p 1 -a 8 -m 0 -i 70 -I 500000 -g 40 +coverage-search +min-coverage-intron 50 +max-coverage-intro 20000 +segment-mismatches 2 +segment-length 25 +microexon-search tophat_in1 test-data/tophat_in2.fastqsanger
388 Replace the + with double-dash
389 Rename the files in tmp_dir appropriately
390 -->
391 <conditional name="singlePaired">
392 <param name="sPaired" value="single"/>
393 <param name="input1" ftype="fastqsanger" value="tophat_in2.fastqsanger"/>
394 </conditional>
395 <param name="genomeSource" value="history"/>
396 <param name="ownFile" value="tophat_in1.fasta"/>
397 <conditional name="params">
398 <param name="settingsType" value="full"/>
399 <param name="library_type" value="FR Unstranded"/>
400 <param name="read_mismatches" value="2"/>
401 <param name="bowtie_n" value="No"/>
402 <param name="anchor_length" value="8"/>
403 <param name="splice_mismatches" value="0"/>
404 <param name="min_intron_length" value="70"/>
405 <param name="max_intron_length" value="500000"/>
406 <param name="max_multihits" value="40"/>
407 <param name="min_segment_intron" value="50" />
408 <param name="max_segment_intron" value="500000" />
409 <param name="seg_mismatches" value="2"/>
410 <param name="seg_length" value="25"/>
411 <conditional name="indel_search">
412 <param name="allow_indel_search" value="Yes"/>
413 <param name="max_insertion_length" value="3"/>
414 <param name="max_deletion_length" value="3"/>
415 </conditional>
416 <conditional name="own_junctions">
417 <param name="use_junctions" value="Yes" />
418 <conditional name="gene_model_ann">
419 <param name="use_annotations" value="No" />
420 </conditional>
421 <conditional name="raw_juncs">
422 <param name="use_juncs" value="No" />
423 </conditional>
424 <conditional name="no_novel_juncs">
425 <param name="no_novel_juncs" value="No" />
426 </conditional>
427 </conditional>
428 <conditional name="coverage_search">
429 <param name="use_search" value="Yes" />
430 <param name="min_coverage_intron" value="50" />
431 <param name="max_coverage_intron" value="20000" />
432 </conditional>
433 <param name="microexon_search" value="Yes" />
434 <conditional name="bowtie2_settings">
435 <param name="b2_settings" value="No" />
436 </conditional>
437 <!-- Fusion search params -->
438 <conditional name="fusion_search">
439 <param name="do_search" value="Yes" />
440 <param name="anchor_len" value="21" />
441 <param name="min_dist" value="10000021" />
442 <param name="read_mismatches" value="3" />
443 <param name="multireads" value="4" />
444 <param name="multipairs" value="5" />
445 <param name="ignore_chromosomes" value="chrM"/>
446 </conditional>
447 </conditional>
448 <conditional name="readGroup">
449 <param name="specReadGroup" value="No" />
450 </conditional>
451 <output name="insertions" file="tophat_out3i.bed" />
452 <output name="deletions" file="tophat_out3d.bed" />
453 <output name="junctions" file="tophat2_out3j.bed" />
454 <output name="accepted_hits" file="tophat_out3h.bam" compare="sim_size" />
455 </test>
456 <!-- Test base-space paired-end reads with user-supplied reference fasta and full parameters -->
457 <test>
458 <!-- TopHat commands:
459 tophat2 -o tmp_dir -r 20 -p 1 -a 8 -m 0 -i 70 -I 500000 -g 40 +coverage-search +min-coverage-intron 50 +max-coverage-intro 20000 +segment-mismatches 2 +segment-length 25 +microexon-search +report_discordant_pairs tophat_in1 test-data/tophat_in2.fastqsanger test-data/tophat_in3.fastqsanger
460 Replace the + with double-dash
461 Rename the files in tmp_dir appropriately
462 -->
463 <conditional name="singlePaired">
464 <param name="sPaired" value="paired"/>
465 <param name="input1" ftype="fastqsanger" value="tophat_in2.fastqsanger"/>
466 <param name="input2" ftype="fastqsanger" value="tophat_in3.fastqsanger"/>
467 <param name="mate_inner_distance" value="20"/>
468 <param name="report_discordant_pairs" value="Yes" />
469 </conditional>
470 <param name="genomeSource" value="indexed"/>
471 <param name="index" value="tophat_test"/>
472 <conditional name="params">
473 <param name="settingsType" value="full"/>
474 <param name="library_type" value="FR Unstranded"/>
475 <param name="read_mismatches" value="5"/>
476 <!-- Error: the read mismatches (5) and the read gap length (2) should be less than or equal to the read edit dist (2) -->
477 <param name="read_edit_dist" value="5" />
478 <param name="bowtie_n" value="Yes"/>
479 <param name="mate_std_dev" value="20"/>
480 <param name="anchor_length" value="8"/>
481 <param name="splice_mismatches" value="0"/>
482 <param name="min_intron_length" value="70"/>
483 <param name="max_intron_length" value="500000"/>
484 <param name="max_multihits" value="40"/>
485 <param name="min_segment_intron" value="50" />
486 <param name="max_segment_intron" value="500000" />
487 <param name="seg_mismatches" value="2"/>
488 <param name="seg_length" value="25"/>
489 <conditional name="indel_search">
490 <param name="allow_indel_search" value="No"/>
491 </conditional>
492 <conditional name="own_junctions">
493 <param name="use_junctions" value="Yes" />
494 <conditional name="gene_model_ann">
495 <param name="use_annotations" value="No" />
496 </conditional>
497 <conditional name="raw_juncs">
498 <param name="use_juncs" value="No" />
499 </conditional>
500 <conditional name="no_novel_juncs">
501 <param name="no_novel_juncs" value="No" />
502 </conditional>
503 </conditional>
504 <conditional name="coverage_search">
505 <param name="use_search" value="No" />
506 </conditional>
507 <param name="microexon_search" value="Yes" />
508 <conditional name="bowtie2_settings">
509 <param name="b2_settings" value="No" />
510 </conditional>
511 <!-- Fusion search params -->
512 <conditional name="fusion_search">
513 <param name="do_search" value="Yes" />
514 <param name="anchor_len" value="21" />
515 <param name="min_dist" value="10000021" />
516 <param name="read_mismatches" value="3" />
517 <param name="multireads" value="4" />
518 <param name="multipairs" value="5" />
519 <param name="ignore_chromosomes" value="chrM"/>
520 </conditional>
521 </conditional>
522 <conditional name="readGroup">
523 <param name="specReadGroup" value="No" />
524 </conditional>
525 <output name="junctions" file="tophat2_out4j.bed" />
526 <output name="accepted_hits" file="tophat_out4h.bam" compare="sim_size" />
527 </test>
528 </tests>
529 <help>
530 **Tophat Overview**
531
532 TopHat_ is a fast splice junction mapper for RNA-Seq reads. It aligns RNA-Seq reads to mammalian-sized genomes using the ultra high-throughput short read aligner Bowtie(2), and then analyzes the mapping results to identify splice junctions between exons. Please cite: Kim D, Pertea G, Trapnell C, Pimentel H, Kelley R, and Salzberg SL. TopHat2: accurate alignment
533 of transcriptomes in the presence of insertions, deletions and gene fusions. Genome Biol 14:R36, 2013.
534
535 .. _Tophat: http://ccb.jhu.edu/software/tophat/
536
537 ------
538
539 **Know what you are doing**
540
541 .. class:: warningmark
542
543 There is no such thing (yet) as an automated gearshift in splice junction identification. It is all like stick-shift driving in San Francisco. In other words, running this tool with default parameters will probably not give you meaningful results. A way to deal with this is to **understand** the parameters by carefully reading the `documentation`__ and experimenting. Fortunately, Galaxy makes experimenting easy.
544
545 .. __: http://ccb.jhu.edu/software/tophat/manual.shtml
546
547 ------
548
549 **Input formats**
550
551 Tophat accepts files in Sanger FASTQ format. Use the FASTQ Groomer to prepare your files.
552
553 ------
554
555 **Outputs**
556
557 Tophat produces two output files:
558
559 - junctions -- A UCSC BED_ track of junctions reported by TopHat. Each junction consists of two connected BED blocks, where each block is as long as the maximal overhang of any read spanning the junction. The score is the number of alignments spanning the junction.
560 - accepted_hits -- A list of read alignments in BAM_ format.
561
562 .. _BED: http://genome.ucsc.edu/FAQ/FAQformat.html#format1
563 .. _BAM: http://samtools.sourceforge.net/
564
565 Two other possible outputs, depending on the options you choose, are insertions and deletions, both of which are in BED format.
566
567 -------
568
569 **Tophat settings**
570
571 All of the options have a default value. You can change any of them. Some of the options in Tophat have been implemented here.
572
573 ------
574
575 **Tophat parameter list**
576
577 This is a list of implemented Tophat options::
578
579 -r This is the expected (mean) inner distance between mate pairs. For, example, for paired end runs with fragments
580 selected at 300bp, where each end is 50bp, you should set -r to be 200. There is no default, and this parameter
581 is required for paired end runs.
582 --mate-std-dev INT The standard deviation for the distribution on inner distances between mate pairs. The default is 20bp.
583 -a/--min-anchor-length INT The "anchor length". TopHat will report junctions spanned by reads with at least this many bases on each side of the junction. Note that individual spliced
584 alignments may span a junction with fewer than this many bases on one side. However, every junction involved in spliced alignments is supported by at least one
585 read with this many bases on each side. This must be at least 3 and the default is 8.
586 -m/--splice-mismatches INT The maximum number of mismatches that may appear in the "anchor" region of a spliced alignment. The default is 0.
587 -i/--min-intron-length INT The minimum intron length. TopHat will ignore donor/acceptor pairs closer than this many bases apart. The default is 70.
588 -I/--max-intron-length INT The maximum intron length. When searching for junctions ab initio, TopHat will ignore donor/acceptor pairs farther than this many bases apart, except when such a pair is supported by a split segment alignment of a long read. The default is 500000.
589 -g/--max-multihits INT Instructs TopHat to allow up to this many alignments to the reference for a given read, and suppresses all alignments for reads with more than this many
590 alignments. The default is 40.
591 -G/--GTF [GTF 2.2 file] Supply TopHat with a list of gene model annotations. TopHat will use the exon records in this file to build a set of known splice junctions for each gene, and will attempt to align reads to these junctions even if they would not normally be covered by the initial mapping.
592 -j/--raw-juncs [juncs file] Supply TopHat with a list of raw junctions. Junctions are specified one per line, in a tab-delimited format. Records look like: [chrom] [left] [right] [+/-], left and right are zero-based coordinates, and specify the last character of the left sequenced to be spliced to the first character of the right sequence, inclusive.
593 -no-novel-juncs Only look for junctions indicated in the supplied GFF file. (ignored without -G)
594 --no-coverage-search Disables the coverage based search for junctions.
595 --coverage-search Enables the coverage based search for junctions. Use when coverage search is disabled by default (such as for reads 75bp or longer), for maximum sensitivity.
596 --microexon-search With this option, the pipeline will attempt to find alignments incident to microexons. Works only for reads 50bp or longer.
597 --segment-mismatches Read segments are mapped independently, allowing up to this many mismatches in each segment alignment. The default is 2.
598 --segment-length Each read is cut up into segments, each at least this long. These segments are mapped independently. The default is 25.
599 --min-coverage-intron The minimum intron length that may be found during coverage search. The default is 50.
600 --max-coverage-intron The maximum intron length that may be found during coverage search. The default is 20000.
601 --min-segment-intron The minimum intron length that may be found during split-segment search. The default is 50.
602 --max-segment-intron The maximum intron length that may be found during split-segment search. The default is 500000.
603 </help>
604 <citations>
605 <citation type="doi">10.1186/gb-2013-14-4-r36</citation>
606 </citations>
607 </tool>