annotate tools/ngs_rna/tophat_color_wrapper.xml @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="tophat_color" name="Tophat for SOLiD" version="1.0.0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>Find splice junctions using RNA-seq data</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <requirement type="package">tophat</requirement>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 </requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <command interpreter="python">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 tophat_wrapper.py
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 ## Change this to accommodate the number of threads you have available.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 --num-threads="4"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 ## base- or color-space
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 --color-space
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 ## Provide outputs.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 --junctions-output=$junctions
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 --hits-output=$accepted_hits
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 ## Handle reference file.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 #if $refGenomeSource.genomeSource == "history":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 --own-file=$refGenomeSource.ownFile
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 #else:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 --indexes-path="${ filter( lambda x: str( x[0] ) == str( $refGenomeSource.index ), $__app__.tool_data_tables[ 'tophat_indexes_color' ].get_fields() )[0][-1] }"
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 ## Are reads single-end or paired?
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 --single-paired=$singlePaired.sPaired
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 ## First input file always required.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 --input1=$input1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 ## Set params based on whether reads are single-end or paired.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32 #if $singlePaired.sPaired == "single":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 --settings=$singlePaired.sParams.sSettingsType
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34 #if $singlePaired.sParams.sSettingsType == "full":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 -a $singlePaired.sParams.anchor_length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 -m $singlePaired.sParams.splice_mismatches
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 -i $singlePaired.sParams.min_intron_length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 -I $singlePaired.sParams.max_intron_length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 -F $singlePaired.sParams.junction_filter
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 -g $singlePaired.sParams.max_multihits
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 --min-segment-intron $singlePaired.sParams.min_segment_intron
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 --max-segment-intron $singlePaired.sParams.max_segment_intron
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 --seg-mismatches=$singlePaired.sParams.seg_mismatches
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 --seg-length=$singlePaired.sParams.seg_length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 --library-type=$singlePaired.sParams.library_type
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 ## Indel search.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 #if $singlePaired.sParams.indel_search.allow_indel_search == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 --allow-indels
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 --max-insertion-length $singlePaired.sParams.indel_search.max_insertion_length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 --max-deletion-length $singlePaired.sParams.indel_search.max_deletion_length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 ## Supplying junctions parameters.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 #if $singlePaired.sParams.own_junctions.use_junctions == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 #if $singlePaired.sParams.own_junctions.gene_model_ann.use_annotations == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 -G $singlePaired.sParams.own_junctions.gene_model_ann.gene_annotation_model
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 #if $singlePaired.sParams.own_junctions.raw_juncs.use_juncs == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 -j $singlePaired.sParams.own_junctions.raw_juncs.raw_juncs
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 ## TODO: No idea why a string cast is necessary, but it is:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 #if str($singlePaired.sParams.own_junctions.no_novel_juncs) == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 --no-novel-juncs
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 #if $singlePaired.sParams.closure_search.use_search == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 --closure-search
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70 --min-closure-exon $singlePaired.sParams.closure_search.min_closure_exon
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 --min-closure-intron $singlePaired.sParams.closure_search.min_closure_intron
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72 --max-closure-intron $singlePaired.sParams.closure_search.max_closure_intron
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 #else:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74 --no-closure-search
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 #if $singlePaired.sParams.coverage_search.use_search == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
77 --coverage-search
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
78 --min-coverage-intron $singlePaired.sParams.coverage_search.min_coverage_intron
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
79 --max-coverage-intron $singlePaired.sParams.coverage_search.max_coverage_intron
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
80 #else:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
81 --no-coverage-search
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
82 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
83 ## TODO: No idea why the type conversion is necessary, but it seems to be.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
84 #if str($singlePaired.sParams.microexon_search) == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
85 --microexon-search
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
86 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
87 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
88 #else:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
89 --input2=$singlePaired.input2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
90 -r $singlePaired.mate_inner_distance
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
91 --settings=$singlePaired.pParams.pSettingsType
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
92 #if $singlePaired.pParams.pSettingsType == "full":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
93 --mate-std-dev=$singlePaired.pParams.mate_std_dev
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
94 -a $singlePaired.pParams.anchor_length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
95 -m $singlePaired.pParams.splice_mismatches
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
96 -i $singlePaired.pParams.min_intron_length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
97 -I $singlePaired.pParams.max_intron_length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
98 -F $singlePaired.pParams.junction_filter
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
99 -g $singlePaired.pParams.max_multihits
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
100 --min-segment-intron $singlePaired.pParams.min_segment_intron
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
101 --max-segment-intron $singlePaired.pParams.max_segment_intron
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
102 --seg-mismatches=$singlePaired.pParams.seg_mismatches
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
103 --seg-length=$singlePaired.pParams.seg_length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
104 --library-type=$singlePaired.pParams.library_type
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
105
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
106 ## Indel search.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
107 #if $singlePaired.pParams.indel_search.allow_indel_search == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
108 --allow-indels
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
109 --max-insertion-length $singlePaired.pParams.indel_search.max_insertion_length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
110 --max-deletion-length $singlePaired.pParams.indel_search.max_deletion_length
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
111 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
112
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
113 ## Supplying junctions parameters.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
114 #if $singlePaired.pParams.own_junctions.use_junctions == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
115 #if $singlePaired.pParams.own_junctions.gene_model_ann.use_annotations == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
116 -G $singlePaired.pParams.own_junctions.gene_model_ann.gene_annotation_model
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
117 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
118 #if $singlePaired.pParams.own_junctions.raw_juncs.use_juncs == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
119 -j $singlePaired.pParams.own_junctions.raw_juncs.raw_juncs
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
120 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
121 ## TODO: No idea why type cast is necessary, but it is:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
122 #if str($singlePaired.pParams.own_junctions.no_novel_juncs) == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
123 --no-novel-juncs
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
124 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
125 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
126
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
127 #if $singlePaired.pParams.closure_search.use_search == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
128 --closure-search
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
129 --min-closure-exon $singlePaired.pParams.closure_search.min_closure_exon
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
130 --min-closure-intron $singlePaired.pParams.closure_search.min_closure_intron
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
131 --max-closure-intron $singlePaired.pParams.closure_search.max_closure_intron
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
132 #else:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
133 --no-closure-search
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
134 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
135 #if $singlePaired.pParams.coverage_search.use_search == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
136 --coverage-search
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
137 --min-coverage-intron $singlePaired.pParams.coverage_search.min_coverage_intron
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
138 --max-coverage-intron $singlePaired.pParams.coverage_search.max_coverage_intron
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
139 #else:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
140 --no-coverage-search
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
141 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
142 ## TODO: No idea why the type conversion is necessary, but it seems to be.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
143 #if str ($singlePaired.pParams.microexon_search) == "Yes":
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
144 --microexon-search
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
145 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
146 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
147 #end if
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
148 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
149 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
150 <param format="fastqcssanger" name="input1" type="data" label="RNA-Seq FASTQ file" help="Color-space: Must have Sanger-scaled quality values with ASCII offset 33" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
151 <conditional name="refGenomeSource">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
152 <param name="genomeSource" type="select" label="Will you select a reference genome from your history or use a built-in index?" help="Built-ins were indexed using default options">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
153 <option value="indexed">Use a built-in index</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
154 <option value="history">Use one from the history</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
155 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
156 <when value="indexed">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
157 <param name="index" type="select" label="Select a reference genome" help="If your genome of interest is not listed, contact the Galaxy team">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
158 <options from_data_table="tophat_indexes_color">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
159 <filter type="sort_by" column="2"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
160 <validator type="no_options" message="No indexes are available for the selected input dataset"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
161 </options>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
162 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
163 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
164 <when value="history">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
165 <param name="ownFile" type="data" format="fasta" metadata_name="dbkey" label="Select the reference genome" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
166 </when> <!-- history -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
167 </conditional> <!-- refGenomeSource -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
168 <conditional name="singlePaired">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
169 <param name="sPaired" type="select" label="Is this library mate-paired?">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
170 <option value="single">Single-end</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
171 <option value="paired">Paired-end</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
172 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
173 <when value="single">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
174 <conditional name="sParams">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
175 <param name="sSettingsType" type="select" label="TopHat settings to use" help="You can use the default settings or set custom values for any of Tophat's parameters.">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
176 <option value="preSet">Use Defaults</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
177 <option value="full">Full parameter list</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
178 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
179 <when value="preSet" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
180 <!-- Full/advanced params. -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
181 <when value="full">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
182 <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.">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
183 <option value="fr-unstranded">FR Unstranded</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
184 <option value="fr-firststrand">FR First Strand</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
185 <option value="fr-secondstrand">FR Second Strand</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
186 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
187 <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." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
188 <param name="splice_mismatches" type="integer" value="0" label="Maximum number of mismatches that can appear in the anchor region of spliced alignment" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
189 <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." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
190 <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." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
191 <conditional name="indel_search">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
192 <param name="allow_indel_search" type="select" label="Allow indel search">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
193 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
194 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
195 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
196 <when value="No"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
197 <when value="Yes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
198 <param name="max_insertion_length" type="integer" value="3" label="Max insertion length." help="The maximum insertion length." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
199 <param name="max_deletion_length" type="integer" value="3" label="Max deletion length." help="The maximum deletion length." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
200 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
201 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
202 <param name="junction_filter" type="float" value="0.15" label="Minimum isoform fraction: filter out junctions supported by too few alignments (number of reads divided by average depth of coverage)" help="0.0 to 1.0 (0 to turn off)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
203 <param name="max_multihits" type="integer" value="40" label="Maximum number of alignments to be allowed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
204 <param name="min_segment_intron" type="integer" value="50" label="Minimum intron length that may be found during split-segment (default) search" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
205 <param name="max_segment_intron" type="integer" value="500000" label="Maximum intron length that may be found during split-segment (default) search" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
206 <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" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
207 <param name="seg_length" type="integer" value="25" label="Minimum length of read segments" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
208
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
209 <!-- Options for supplying own junctions. -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
210 <conditional name="own_junctions">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
211 <param name="use_junctions" type="select" label="Use Own Junctions">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
212 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
213 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
214 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
215 <when value="Yes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
216 <conditional name="gene_model_ann">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
217 <param name="use_annotations" type="select" label="Use Gene Annotation Model">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
218 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
219 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
220 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
221 <when value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
222 <when value="Yes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
223 <param format="gtf" name="gene_annotation_model" type="data" label="Gene Model Annotations" help="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."/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
224 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
225 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
226 <conditional name="raw_juncs">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
227 <param name="use_juncs" type="select" label="Use Raw Junctions">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
228 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
229 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
230 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
231 <when value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
232 <when value="Yes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
233 <param format="interval" name="raw_juncs" type="data" label="Raw Junctions" help="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."/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
234 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
235 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
236 <param name="no_novel_juncs" type="select" label="Only look for supplied junctions">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
237 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
238 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
239 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
240 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
241 <when value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
242 </conditional> <!-- /own_junctions -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
243
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
244 <!-- Closure search. -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
245 <conditional name="closure_search">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
246 <param name="use_search" type="select" label="Use Closure Search">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
247 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
248 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
249 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
250 <when value="Yes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
251 <param name="min_closure_exon" type="integer" value="50" label="During closure search for paired end reads, exonic hops in the potential splice graph must be at least this long. The default is 50." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
252 <param name="min_closure_intron" type="integer" value="50" label="Minimum intron length that may be found during closure search" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
253 <param name="max_closure_intron" type="integer" value="5000" label="Maximum intron length that may be found during closure search" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
254 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
255 <when value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
256 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
257 <!-- Coverage search. -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
258 <conditional name="coverage_search">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
259 <param name="use_search" type="select" label="Use Coverage Search">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
260 <option selected="true" value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
261 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
262 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
263 <when value="Yes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
264 <param name="min_coverage_intron" type="integer" value="50" label="Minimum intron length that may be found during coverage search" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
265 <param name="max_coverage_intron" type="integer" value="20000" label="Maximum intron length that may be found during coverage search" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
266 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
267 <when value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
268 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
269 <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.">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
270 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
271 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
272 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
273 </when> <!-- full -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
274 </conditional> <!-- sParams -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
275 </when> <!-- single -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
276 <when value="paired">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
277 <param format="fastqcssanger" name="input2" type="data" label="RNA-Seq FASTQ file" help="Color-space: Must have Sanger-scaled quality values with ASCII offset 33" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
278 <param name="mate_inner_distance" type="integer" value="20" label="Mean Inner Distance between Mate Pairs" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
279 <conditional name="pParams">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
280 <param name="pSettingsType" type="select" label="TopHat settings to use" help="For most mapping needs use Commonly used settings. If you want full control use Full parameter list">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
281 <option value="preSet">Commonly used</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
282 <option value="full">Full parameter list</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
283 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
284 <when value="preSet" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
285 <!-- Full/advanced params. -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
286 <when value="full">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
287 <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.">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
288 <option value="fr-unstranded">FR Unstranded</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
289 <option value="fr-firststrand">FR First Strand</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
290 <option value="fr-secondstrand">FR Second Strand</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
291 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
292 <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."/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
293 <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." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
294 <param name="splice_mismatches" type="integer" value="0" label="Maximum number of mismatches that can appear in the anchor region of spliced alignment" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
295 <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." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
296 <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." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
297 <conditional name="indel_search">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
298 <param name="allow_indel_search" type="select" label="Allow indel search">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
299 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
300 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
301 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
302 <when value="No"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
303 <when value="Yes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
304 <param name="max_insertion_length" type="integer" value="3" label="Max insertion length." help="The maximum insertion length." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
305 <param name="max_deletion_length" type="integer" value="3" label="Max deletion length." help="The maximum deletion length." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
306 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
307 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
308 <param name="junction_filter" type="float" value="0.15" label="Minimum isoform fraction: filter out junctions supported by too few alignments (number of reads divided by average depth of coverage)" help="0.0 to 1.0 (0 to turn off)" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
309 <param name="max_multihits" type="integer" value="40" label="Maximum number of alignments to be allowed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
310 <param name="min_segment_intron" type="integer" value="50" label="Minimum intron length that may be found during split-segment (default) search" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
311 <param name="max_segment_intron" type="integer" value="500000" label="Maximum intron length that may be found during split-segment (default) search" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
312 <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" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
313 <param name="seg_length" type="integer" value="25" label="Minimum length of read segments" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
314 <!-- Options for supplying own junctions. -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
315 <conditional name="own_junctions">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
316 <param name="use_junctions" type="select" label="Use Own Junctions">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
317 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
318 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
319 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
320 <when value="Yes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
321 <conditional name="gene_model_ann">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
322 <param name="use_annotations" type="select" label="Use Gene Annotation Model">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
323 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
324 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
325 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
326 <when value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
327 <when value="Yes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
328 <param format="gtf" name="gene_annotation_model" type="data" label="Gene Model Annotations" help="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."/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
329 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
330 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
331 <conditional name="raw_juncs">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
332 <param name="use_juncs" type="select" label="Use Raw Junctions">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
333 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
334 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
335 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
336 <when value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
337 <when value="Yes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
338 <param format="interval" name="raw_juncs" type="data" label="Raw Junctions" help="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."/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
339 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
340 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
341 <param name="no_novel_juncs" type="select" label="Only look for supplied junctions">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
342 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
343 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
344 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
345 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
346 <when value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
347 </conditional> <!-- /own_junctions -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
348
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
349 <!-- Closure search. -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
350 <conditional name="closure_search">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
351 <param name="use_search" type="select" label="Use Closure Search">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
352 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
353 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
354 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
355 <when value="Yes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
356 <param name="min_closure_exon" type="integer" value="50" label="During closure search for paired end reads, exonic hops in the potential splice graph must be at least this long. The default is 50." />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
357 <param name="min_closure_intron" type="integer" value="50" label="Minimum intron length that may be found during closure search" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
358 <param name="max_closure_intron" type="integer" value="5000" label="Maximum intron length that may be found during closure search" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
359 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
360 <when value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
361 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
362 <!-- Coverage search. -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
363 <conditional name="coverage_search">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
364 <param name="use_search" type="select" label="Use Coverage Search">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
365 <option selected="true" value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
366 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
367 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
368 <when value="Yes">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
369 <param name="min_coverage_intron" type="integer" value="50" label="Minimum intron length that may be found during coverage search" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
370 <param name="max_coverage_intron" type="integer" value="20000" label="Maximum intron length that may be found during coverage search" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
371 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
372 <when value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
373 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
374 <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.">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
375 <option value="No">No</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
376 <option value="Yes">Yes</option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
377 </param>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
378 </when> <!-- full -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
379 </conditional> <!-- pParams -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
380 </when> <!-- paired -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
381 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
382 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
383
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
384 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
385 <data format="bed" name="insertions" label="${tool.name} on ${on_string}: insertions" from_work_dir="tophat_out/insertions.bed">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
386 <filter>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
387 (
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
388 ( ( 'sParams' in singlePaired ) and ( 'indel_search' in singlePaired['sParams'] ) and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
389 ( singlePaired['sParams']['indel_search']['allow_indel_search'] == 'Yes' ) ) or
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
390 ( ( 'pParams' in singlePaired ) and ( 'indel_search' in singlePaired['pParams'] ) and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
391 ( singlePaired['pParams']['indel_search']['allow_indel_search'] == 'Yes' ) )
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
392 )
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
393 </filter>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
394 <actions>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
395 <conditional name="refGenomeSource.genomeSource">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
396 <when value="indexed">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
397 <action type="metadata" name="dbkey">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
398 <option type="from_data_table" name="tophat_indexes_color" column="1" offset="0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
399 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
400 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
401 </option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
402 </action>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
403 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
404 <when value="history">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
405 <action type="metadata" name="dbkey">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
406 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
407 </action>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
408 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
409 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
410 </actions>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
411 </data>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
412 <data format="bed" name="deletions" label="${tool.name} on ${on_string}: deletions" from_work_dir="tophat_out/deletions.bed">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
413 <filter>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
414 (
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
415 ( ( 'sParams' in singlePaired ) and ( 'indel_search' in singlePaired['sParams'] ) and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
416 ( singlePaired['sParams']['indel_search']['allow_indel_search'] == 'Yes' ) ) or
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
417 ( ( 'pParams' in singlePaired ) and ( 'indel_search' in singlePaired['pParams'] ) and
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
418 ( singlePaired['pParams']['indel_search']['allow_indel_search'] == 'Yes' ) )
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
419 )
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
420 </filter>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
421 <actions>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
422 <conditional name="refGenomeSource.genomeSource">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
423 <when value="indexed">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
424 <action type="metadata" name="dbkey">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
425 <option type="from_data_table" name="tophat_indexes_color" column="1" offset="0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
426 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
427 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
428 </option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
429 </action>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
430 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
431 <when value="history">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
432 <action type="metadata" name="dbkey">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
433 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
434 </action>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
435 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
436 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
437 </actions>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
438 </data>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
439 <data format="bed" name="junctions" label="${tool.name} on ${on_string}: splice junctions">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
440 <actions>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
441 <conditional name="refGenomeSource.genomeSource">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
442 <when value="indexed">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
443 <action type="metadata" name="dbkey">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
444 <option type="from_data_table" name="tophat_indexes_color" column="1" offset="0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
445 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
446 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
447 </option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
448 </action>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
449 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
450 <when value="history">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
451 <action type="metadata" name="dbkey">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
452 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
453 </action>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
454 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
455 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
456 </actions>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
457 </data>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
458 <data format="bam" name="accepted_hits" label="${tool.name} on ${on_string}: accepted_hits">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
459 <actions>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
460 <conditional name="refGenomeSource.genomeSource">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
461 <when value="indexed">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
462 <action type="metadata" name="dbkey">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
463 <option type="from_data_table" name="tophat_indexes_color" column="1" offset="0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
464 <filter type="param_value" column="0" value="#" compare="startswith" keep="False"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
465 <filter type="param_value" ref="refGenomeSource.index" column="0"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
466 </option>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
467 </action>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
468 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
469 <when value="history">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
470 <action type="metadata" name="dbkey">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
471 <option type="from_param" name="refGenomeSource.ownFile" param_attribute="dbkey" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
472 </action>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
473 </when>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
474 </conditional>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
475 </actions>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
476 </data>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
477 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
478 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
479 <!-- Test color-space single-end reads with user-supplied reference fasta and preset parameters -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
480 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
481 <!-- TopHat commands:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
482 cp test-data/tophat_in5.fasta tophat_in5.fa
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
483 bowtie-build -C -f tophat_in5.fasta tophat_in5
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
484 tophat -p 1 -C tophat_in5 test-data/tophat_in4.fastqcssanger
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
485 Rename the files in tmp_dir appropriately
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
486 -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
487 <param name="input1" ftype="fastqcssanger" value="tophat_in4.fastqcssanger" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
488 <param name="genomeSource" value="history" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
489 <param name="ownFile" ftype="fasta" value="tophat_in5.fasta"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
490 <param name="sPaired" value="single" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
491 <param name="sSettingsType" value="preSet" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
492 <output name="junctions" file="tophat_out5j.bed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
493 <output name="accepted_hits" file="tophat_out5h.bam" compare="sim_size" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
494 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
495 <!-- Test color-space single-end reads with pre-built index and full parameters -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
496 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
497 <!-- Tophat commands:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
498 tophat -p 1 -C -a 8 -m 0 -i 70 -I 500000 -F 0.15 -g 40 +allow-indels +coverage-search +min-coverage-intron 50 +max-coverage-intron 20000 +segment-mismatches 2 +segment-length 25 +closure-search +min-closure-exon 50 +min-closure-intron 50 +max-closure-intro 5000 +microexon-search partialMm9chrX_random_cs test-data/tophat_in4.fastqcssanger
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
499 Replace the + with double-dash
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
500 Rename the files in tmp_dir appropriately
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
501 -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
502 <param name="input1" ftype="fastqcssanger" value="tophat_in4.fastqcssanger"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
503 <param name="genomeSource" value="indexed"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
504 <param name="index" value="partialMm9chrX_random_cs" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
505 <param name="sPaired" value="single"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
506 <param name="sSettingsType" value="full"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
507 <param name="library_type" value="FR Unstranded"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
508 <param name="anchor_length" value="8"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
509 <param name="splice_mismatches" value="0"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
510 <param name="min_intron_length" value="70"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
511 <param name="max_intron_length" value="500000"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
512 <param name="junction_filter" value="0.15"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
513 <param name="max_multihits" value="40"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
514 <param name="min_segment_intron" value="50" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
515 <param name="max_segment_intron" value="500000" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
516 <param name="seg_mismatches" value="2"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
517 <param name="seg_length" value="25"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
518 <param name="allow_indel_search" value="Yes"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
519 <param name="max_insertion_length" value="3"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
520 <param name="max_deletion_length" value="3"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
521 <param name="use_junctions" value="Yes" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
522 <param name="use_annotations" value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
523 <param name="use_juncs" value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
524 <param name="no_novel_juncs" value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
525 <param name="use_search" value="Yes" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
526 <param name="min_closure_exon" value="50" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
527 <param name="min_closure_intron" value="50" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
528 <param name="max_closure_intron" value="5000" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
529 <param name="use_search" value="Yes" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
530 <param name="min_coverage_intron" value="50" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
531 <param name="max_coverage_intron" value="20000" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
532 <param name="microexon_search" value="Yes" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
533 <output name="insertions" file="tophat_out6i.bed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
534 <output name="deletions" file="tophat_out6d.bed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
535 <output name="junctions" file="tophat_out6j.bed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
536 <output name="accepted_hits" file="tophat_out6h.bam" compare="sim_size" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
537 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
538 <!-- Test color-space paired-end reads with pre-built index and preset parameters -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
539 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
540 <!-- TopHat commands:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
541 tophat -C -o tmp_dir -r 50 -p 1 partialMm9chrX_random_cs test-data/tophat_in6.fastqcssanger test-data/tophat_in7.fastqcssanger
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
542 Rename the files in tmp_dir appropriately
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
543 -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
544 <param name="input1" ftype="fastqcssanger" value="tophat_in6.fastqcssanger" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
545 <param name="genomeSource" value="indexed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
546 <param name="index" value="partialMm9chrX_random_cs" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
547 <param name="sPaired" value="paired" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
548 <param name="input2" ftype="fastqcssanger" value="tophat_in7.fastqcssanger"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
549 <param name="mate_inner_distance" value="50"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
550 <param name="pSettingsType" value="preSet" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
551 <output name="junctions" file="tophat_out7j.bed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
552 <output name="accepted_hits" file="tophat_out7h.bam" compare="sim_size" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
553 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
554 <!-- Test color-space paired-end reads with user-supplied reference fasta and full parameters -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
555 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
556 <!-- TopHat commands:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
557 cp test-data/tophat_in5.fasta tophat_in5.fa
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
558 bowtie-build -C -f tophat_in5.fa tophat_in5
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
559 tophat -C -o tmp_dir -r 20 -p 1 -a 8 -m 0 -i 70 -I 500000 -F 0.15 -g 40 +library-type fr-unstranded +allow-indels +coverage-search +min-coverage-intron 50 +max-coverage-intron 15000 +mate-std-dev 20 +segment-mismatch 2 +segment-length 20 +min-segment-intron 50 +max-segment-intron 500000 tophat_in5 test-data/tophat_in6.fastqcssanger test-data/tophat_in7.fastqcssanger
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
560 Replace the + with double-dash
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
561 Rename the files in tmp_dir appropriately
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
562 -->
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
563 <param name="input1" ftype="fastqcssanger" value="tophat_in6.fastqcssanger"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
564 <param name="genomeSource" value="history"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
565 <param name="ownFile" ftype="fasta" value="tophat_in5.fasta"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
566 <param name="sPaired" value="paired"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
567 <param name="input2" ftype="fastqcssanger" value="tophat_in7.fastqcssanger"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
568 <param name="mate_inner_distance" value="20"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
569 <param name="pSettingsType" value="full"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
570 <param name="library_type" value="FR Unstranded"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
571 <param name="mate_std_dev" value="20"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
572 <param name="anchor_length" value="8"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
573 <param name="splice_mismatches" value="0"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
574 <param name="min_intron_length" value="70"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
575 <param name="max_intron_length" value="500000"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
576 <param name="junction_filter" value="0.15"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
577 <param name="max_multihits" value="40"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
578 <param name="min_segment_intron" value="70" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
579 <param name="max_segment_intron" value="400000" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
580 <param name="seg_mismatches" value="2"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
581 <param name="seg_length" value="20"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
582 <param name="allow_indel_search" value="Yes"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
583 <param name="max_insertion_length" value="3"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
584 <param name="max_deletion_length" value="3"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
585 <param name="use_junctions" value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
586 <param name="use_search" value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
587 <param name="use_search" value="Yes" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
588 <param name="min_coverage_intron" value="50" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
589 <param name="max_coverage_intron" value="20000" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
590 <param name="microexon_search" value="No" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
591 <output name="insertions" file="tophat_out8i.bed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
592 <output name="deletions" file="tophat_out8d.bed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
593 <output name="junctions" file="tophat_out8j.bed" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
594 <output name="accepted_hits" file="tophat_out8h.bam" compare="sim_size" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
595 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
596 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
597
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
598 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
599 **Tophat Overview**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
600
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
601 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, and then analyzes the mapping results to identify splice junctions between exons. Please cite: Trapnell, C., Pachter, L. and Salzberg, S.L. TopHat: discovering splice junctions with RNA-Seq. Bioinformatics 25, 1105-1111 (2009).
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
602
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
603 .. _Tophat: http://tophat.cbcb.umd.edu/
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
604
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
605 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
606
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
607 **Know what you are doing**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
608
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
609 .. class:: warningmark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
610
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
611 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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
612
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
613 .. __: http://tophat.cbcb.umd.edu/manual.html
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
614
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
615 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
616
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
617 **Input formats**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
618
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
619 Tophat accepts files in Sanger FASTQ format. Use the FASTQ Groomer to prepare your files.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
620
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
621 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
622
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
623 **Outputs**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
624
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
625 Tophat produces two main output files:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
626
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
627 - 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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
628 - accepted_hits -- A list of read alignments in BAM_ format.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
629
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
630 .. _BED: http://genome.ucsc.edu/FAQ/FAQformat.html#format1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
631 .. _BAM: http://samtools.sourceforge.net/
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
632
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
633 Two other possible outputs, depending on the options you choose, are insertions and deletions, both of which are in BED format.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
634
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
635 -------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
636
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
637 **Tophat settings**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
638
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
639 All of the options have a default value. You can change any of them. Some of the options in Tophat have been implemented here.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
640
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
641 ------
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
642
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
643 **Tophat parameter list**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
644
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
645 This is a list of implemented Tophat options::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
646
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
647 This is a list of implemented Tophat options::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
648
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
649 -r This is the expected (mean) inner distance between mate pairs. For, example, for paired end runs with fragments
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
650 selected at 300bp, where each end is 50bp, you should set -r to be 200. There is no default, and this parameter
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
651 is required for paired end runs.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
652 --mate-std-dev INT The standard deviation for the distribution on inner distances between mate pairs. The default is 20bp.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
653 -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
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
654 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
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
655 read with this many bases on each side. This must be at least 3 and the default is 8.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
656 -m/--splice-mismatches INT The maximum number of mismatches that may appear in the "anchor" region of a spliced alignment. The default is 0.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
657 -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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
658 -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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
659 -F/--min-isoform-fraction 0.0-1.0 TopHat filters out junctions supported by too few alignments. Suppose a junction spanning two exons, is supported by S reads. Let the average depth of coverage of
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
660 exon A be D, and assume that it is higher than B. If S / D is less than the minimum isoform fraction, the junction is not reported. A value of zero disables the
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
661 filter. The default is 0.15.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
662 -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
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
663 alignments. The default is 40.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
664 -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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
665 -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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
666 -no-novel-juncs Only look for junctions indicated in the supplied GFF file. (ignored without -G)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
667 --no-closure-search Disables the mate pair closure-based search for junctions. Currently, has no effect - closure search is off by default.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
668 --closure-search Enables the mate pair closure-based search for junctions. Closure-based search should only be used when the expected inner distance between mates is small (about or less than 50bp)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
669 --no-coverage-search Disables the coverage based search for junctions.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
670 --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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
671 --microexon-search With this option, the pipeline will attempt to find alignments incident to microexons. Works only for reads 50bp or longer.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
672 --butterfly-search TopHat will use a slower but potentially more sensitive algorithm to find junctions in addition to its standard search. Consider using this if you expect that your experiment produced a lot of reads from pre-mRNA, that fall within the introns of your transcripts.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
673 --segment-mismatches Read segments are mapped independently, allowing up to this many mismatches in each segment alignment. The default is 2.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
674 --segment-length Each read is cut up into segments, each at least this long. These segments are mapped independently. The default is 25.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
675 --min-closure-exon During closure search for paired end reads, exonic hops in the potential splice graph must be at least this long. The default is 50.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
676 --min-closure-intron The minimum intron length that may be found during closure search. The default is 50.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
677 --max-closure-intron The maximum intron length that may be found during closure search. The default is 5000.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
678 --min-coverage-intron The minimum intron length that may be found during coverage search. The default is 50.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
679 --max-coverage-intron The maximum intron length that may be found during coverage search. The default is 20000.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
680 --min-segment-intron The minimum intron length that may be found during split-segment search. The default is 50.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
681 --max-segment-intron The maximum intron length that may be found during split-segment search. The default is 500000.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
682 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
683 </tool>