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