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