38
|
1 <tool id="CompareOverlappingSmallRef" name="compare overlapping small reference">
|
|
2 <description>Provide the queries that overlap with a reference, when the reference dataset is small.</description>
|
|
3 <requirements>
|
|
4 <requirement type="set_environment">PYTHONPATH</requirement>
|
|
5 </requirements>
|
|
6 <command interpreter="python">
|
|
7 ../Java/Python/CompareOverlappingSmallQuery.py -i $formatType.inputFileName1
|
|
8 #if $formatType.FormatInputFileName1 == 'bed':
|
|
9 -f bed
|
|
10 #elif $formatType.FormatInputFileName1 == 'gff':
|
|
11 -f gff
|
|
12 #elif $formatType.FormatInputFileName1 == 'gff2':
|
|
13 -f gff2
|
|
14 #elif $formatType.FormatInputFileName1 == 'gff3':
|
|
15 -f gff3
|
|
16 #elif $formatType.FormatInputFileName1 == 'sam':
|
|
17 -f sam
|
56
|
18 #elif $formatType.FormatInputFileName1 == 'bam':
|
|
19 -f bam
|
38
|
20 #elif $formatType.FormatInputFileName1 == 'gtf':
|
|
21 -f gtf
|
|
22 #end if
|
|
23 -j $formatType2.inputFileName2
|
|
24 #if $formatType2.FormatInputFileName2 == 'bed':
|
|
25 -g bed
|
|
26 #elif $formatType2.FormatInputFileName2 == 'gff':
|
|
27 -g gff
|
|
28 #elif $formatType2.FormatInputFileName2 == 'gff2':
|
|
29 -g gff2
|
|
30 #elif $formatType2.FormatInputFileName2 == 'gff3':
|
|
31 -g gff3
|
|
32 #elif $formatType2.FormatInputFileName2 == 'sam':
|
|
33 -g sam
|
56
|
34 #elif $formatType2.FormatInputFileName2 == 'bam':
|
|
35 -g bam
|
38
|
36 #elif $formatType2.FormatInputFileName2 == 'gtf':
|
|
37 -g gtf
|
|
38 #end if
|
|
39 -o $outputFileGff
|
|
40 #if $OptionDistance.Dist == 'Yes':
|
|
41 -d $OptionDistance.distance
|
|
42 #end if
|
|
43 #if $OptionMinOverlap.present == 'Yes':
|
|
44 -m $OptionMinOverlap.minOverlap
|
|
45 #end if
|
|
46 #if $OptionPcOverlapQuery.present == 'Yes':
|
|
47 -p $OptionPcOverlapQuery.minOverlap
|
|
48 #end if
|
|
49 #if $OptionPcOverlapRef.present == 'Yes':
|
|
50 -P $OptionPcOverlapRef.minOverlap
|
|
51 #end if
|
|
52 #if $OptionCollinearOrAntiSens.OptionCA == 'Collinear':
|
|
53 -c
|
|
54 #elif $OptionCollinearOrAntiSens.OptionCA == 'AntiSens':
|
|
55 -a
|
|
56 #end if
|
|
57 $InvertMatch
|
|
58 $NotOverlapping
|
|
59 $OptionInclusionQuery
|
|
60 $OptionInclusionRef
|
|
61 </command>
|
|
62
|
|
63 <inputs>
|
|
64 <conditional name="formatType">
|
|
65 <param name="FormatInputFileName1" type="select" label="Input Query File Format">
|
|
66 <option value="bed">bed</option>
|
|
67 <option value="gff">gff</option>
|
|
68 <option value="gff2">gff2</option>
|
|
69 <option value="gff3">gff3</option>
|
|
70 <option value="sam">sam</option>
|
56
|
71 <option value="bam">bam</option>
|
38
|
72 <option value="gtf">gtf</option>
|
|
73 </param>
|
|
74 <when value="bed">
|
|
75 <param name="inputFileName1" format="bed" type="data" label="Input File 1"/>
|
|
76 </when>
|
|
77 <when value="gff">
|
|
78 <param name="inputFileName1" format="gff" type="data" label="Input File 1"/>
|
|
79 </when>
|
|
80 <when value="gff2">
|
|
81 <param name="inputFileName1" format="gff2" type="data" label="Input File 1"/>
|
|
82 </when>
|
|
83 <when value="gff3">
|
|
84 <param name="inputFileName1" format="gff3" type="data" label="Input File 1"/>
|
|
85 </when>
|
|
86 <when value="sam">
|
|
87 <param name="inputFileName1" format="sam" type="data" label="Input File 1"/>
|
|
88 </when>
|
56
|
89 <when value="bam">
|
|
90 <param name="inputFileName1" format="bam" type="data" label="Input File 1"/>
|
|
91 </when>
|
38
|
92 <when value="gtf">
|
|
93 <param name="inputFileName1" format="gtf" type="data" label="Input File 1"/>
|
|
94 </when>
|
|
95 </conditional>
|
|
96
|
|
97 <conditional name="formatType2">
|
|
98 <param name="FormatInputFileName2" type="select" label="Input Reference File Format">
|
|
99 <option value="bed">bed</option>
|
|
100 <option value="gff">gff</option>
|
|
101 <option value="gff2">gff2</option>
|
|
102 <option value="gff3">gff3</option>
|
|
103 <option value="sam">sam</option>
|
56
|
104 <option value="bam">bam</option>
|
38
|
105 <option value="gtf">gtf</option>
|
|
106 </param>
|
|
107 <when value="bed">
|
|
108 <param name="inputFileName2" format="bed" type="data" label="Input File 2"/>
|
|
109 </when>
|
|
110 <when value="gff">
|
|
111 <param name="inputFileName2" format="gff" type="data" label="Input File 2"/>
|
|
112 </when>
|
|
113 <when value="gff2">
|
|
114 <param name="inputFileName2" format="gff2" type="data" label="Input File 2"/>
|
|
115 </when>
|
|
116 <when value="gff3">
|
|
117 <param name="inputFileName2" format="gff3" type="data" label="Input File 2"/>
|
|
118 </when>
|
|
119 <when value="sam">
|
|
120 <param name="inputFileName2" format="sam" type="data" label="Input File 2"/>
|
|
121 </when>
|
56
|
122 <when value="bam">
|
|
123 <param name="inputFileName2" format="bam" type="data" label="Input File 2"/>
|
|
124 </when>
|
38
|
125 <when value="gtf">
|
|
126 <param name="inputFileName2" format="gtf" type="data" label="Input File 2"/>
|
|
127 </when>
|
|
128 </conditional>
|
|
129 <conditional name="OptionDistance">
|
|
130 <param name="Dist" type="select" label="Maximum Distance between two reads">
|
|
131 <option value="Yes">Yes</option>
|
|
132 <option value="No" selected="true">No</option>
|
|
133 </param>
|
|
134 <when value="Yes">
|
|
135 <param name="distance" type="integer" value="0"/>
|
|
136 </when>
|
|
137 <when value="No">
|
|
138 </when>
|
|
139 </conditional>
|
|
140 <conditional name="OptionMinOverlap">
|
|
141 <param name="present" type="select" label="Minimum number of common nucleotides to declare an overlap">
|
|
142 <option value="Yes">Yes</option>
|
|
143 <option value="No" selected="true">No</option>
|
|
144 </param>
|
|
145 <when value="Yes">
|
|
146 <param name="minOverlap" type="integer" value="0"/>
|
|
147 </when>
|
|
148 <when value="No">
|
|
149 </when>
|
|
150 </conditional>
|
|
151 <conditional name="OptionPcOverlapQuery">
|
|
152 <param name="present" type="select" label="N% of the query must overlap">
|
|
153 <option value="Yes">Yes</option>
|
|
154 <option value="No" selected="true">No</option>
|
|
155 </param>
|
|
156 <when value="Yes">
|
|
157 <param name="minOverlap" type="integer" value="0"/>
|
|
158 </when>
|
|
159 <when value="No">
|
|
160 </when>
|
|
161 </conditional>
|
|
162 <conditional name="OptionPcOverlapRef">
|
|
163 <param name="present" type="select" label="N% of the reference must overlap">
|
|
164 <option value="Yes">Yes</option>
|
|
165 <option value="No" selected="true">No</option>
|
|
166 </param>
|
|
167 <when value="Yes">
|
|
168 <param name="minOverlap" type="integer" value="0"/>
|
|
169 </when>
|
|
170 <when value="No">
|
|
171 </when>
|
|
172 </conditional>
|
|
173 <param name="OptionInclusionQuery" type="boolean" truevalue="-k" falsevalue="" checked="false" label="The query must be nested in a query"/>
|
|
174 <param name="OptionInclusionRef" type="boolean" truevalue="-K" falsevalue="" checked="false" label="The reference must be nested in a query"/>
|
|
175 <conditional name="OptionCollinearOrAntiSens">
|
|
176 <param name="OptionCA" type="select" label="Collinear or anti-sens">
|
|
177 <option value="Collinear">Collinear</option>
|
|
178 <option value="AntiSens">AntiSens</option>
|
|
179 <option value="NONE" selected="true">NONE</option>
|
|
180 </param>
|
|
181 <when value="Collinear">
|
|
182 </when>
|
|
183 <when value="AntiSens">
|
|
184 </when>
|
|
185 <when value="NONE">
|
|
186 </when>
|
|
187 </conditional>
|
|
188 <param name="InvertMatch" type="boolean" truevalue="-x" falsevalue="" checked="false" label="Invert match: the output file will contain all query elements which do NOT overlap"/>
|
|
189 <param name="NotOverlapping" type="boolean" truevalue="-O" falsevalue="" checked="false" label="Also report the query data which do not overlap, with the nbOverlaps tag set to 0."/>
|
|
190 </inputs>
|
|
191
|
|
192 <outputs>
|
|
193 <data name="outputFileGff" format="gff3"/>
|
|
194 </outputs>
|
|
195
|
|
196 <help>
|
|
197 This script may be the most important one. It basically compares two sets of transcripts and keeps those from the first set which overlap with the second one. The first set is considered as the query set (basically, your data) and the second one is the reference set (RefSeq data, for example).
|
|
198
|
|
199 It is vital to understand that it will output the elements of the first file which overlap with the elements of the second one.
|
|
200
|
|
201 Various modifiers are also available:
|
|
202
|
|
203 -Invert selection (report those which do not overlap).
|
|
204
|
|
205 -Restrict to colinear / anti-sense overlapping data.
|
|
206
|
|
207 -Keep the query data even if they do not strictly overlap with the reference data, but are located not further away than *n* nucleotide from some reference data.
|
|
208
|
|
209 -Keep the query data with are strictly included into reference data, meaning that a query transcript such that at least 1 nucleotide does not overlap with reference data will not be presented as a solution.
|
|
210
|
|
211 The mechanism of shrinking and extending is also useful to make a fine grain comparison. For example, if you want to keep those such that the TSS is overlapping the reference set, you just shrink the query set to 1 nucleotide. Now, if you want to keep those which are overlapping you data or located 2kb downstream of it, just extend the query data in the downstream direction, and you will have what you want. You can also extend in the opposite direction to get the possible transcript factor sites which are upstream.
|
|
212
|
|
213 Some option reverses the selection. Put in other words, it performs the comparison as usual, and outputs all those query data which do not overlap.
|
|
214 </help>
|
|
215 </tool>
|