annotate SMART/galaxy/GetFlanking.xml @ 46:169d364ddd91

Uploaded
author m-zytnicki
date Mon, 30 Sep 2013 03:19:26 -0400
parents 2c0c0a89fad7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
1 <tool id="GetFlanking" name="get flanking">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
2 <description>Get the flanking regions of a set of reference.</description>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
3 <requirements>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
4 <requirement type="set_environment">PYTHONPATH</requirement>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
5 </requirements>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
6 <command interpreter="python">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
7 ../Java/Python/GetFlanking.py -i $formatType.inputFileName1
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
8 #if $formatType.FormatInputFileName1 == 'bed':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
9 -f bed
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
10 #elif $formatType.FormatInputFileName1 == 'gff':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
11 -f gff
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
12 #elif $formatType.FormatInputFileName1 == 'gff2':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
13 -f gff2
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
14 #elif $formatType.FormatInputFileName1 == 'gff3':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
15 -f gff3
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
16 #elif $formatType.FormatInputFileName1 == 'sam':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
17 -f sam
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
18 #elif $formatType.FormatInputFileName1 == 'gtf':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
19 -f gtf
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
20 #end if
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
21
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
22 -j $formatType2.inputFileName2
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
23 #if $formatType2.FormatInputFileName2 == 'bed':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
24 -g bed
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
25 #elif $formatType2.FormatInputFileName2 == 'gff':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
26 -g gff
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
27 #elif $formatType2.FormatInputFileName2 == 'gff2':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
28 -g gff2
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
29 #elif $formatType2.FormatInputFileName2 == 'gff3':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
30 -g gff3
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
31 #elif $formatType2.FormatInputFileName2 == 'sam':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
32 -g sam
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
33 #elif $formatType2.FormatInputFileName2 == 'gtf':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
34 -g gtf
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
35 #end if
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
36
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
37 #if $OptionUpDownStream.OptionUD == 'UpStream':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
38 -5
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
39 #elif $OptionUpDownStream.OptionUD == 'DownStream':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
40 -3
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
41 #end if
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
42
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
43
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
44 #if $OptionColinearOrAntiSens.OptionCA == 'Colinear':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
45 -c
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
46 #elif $OptionColinearOrAntiSens.OptionCA == 'AntiSens':
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
47 -a
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
48 #end if
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
49
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
50 #if $OptionMax.maximum == "Yes":
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
51 -D $OptionMax.max
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
52 #end if
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
53 #if $OptionMin.minimum == "Yes":
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
54 -d $OptionMin.min
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
55 #end if
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
56
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
57 -o $outputFile
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
58 </command>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
59
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
60 <inputs>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
61 <conditional name="formatType">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
62 <param name="FormatInputFileName1" type="select" label="query File Format">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
63 <option value="bed">bed</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
64 <option value="gff">gff</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
65 <option value="gff2">gff2</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
66 <option value="gff3">gff3</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
67 <option value="sam">sam</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
68 <option value="gtf">gtf</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
69 </param>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
70 <when value="bed">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
71 <param name="inputFileName1" format="bed" type="data" label="Input File 1"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
72 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
73 <when value="gff">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
74 <param name="inputFileName1" format="gff" type="data" label="Input File 1"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
75 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
76 <when value="gff2">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
77 <param name="inputFileName1" format="gff2" type="data" label="Input File 1"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
78 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
79 <when value="gff3">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
80 <param name="inputFileName1" format="gff3" type="data" label="Input File 1"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
81 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
82 <when value="sam">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
83 <param name="inputFileName1" format="sam" type="data" label="Input File 1"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
84 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
85 <when value="gtf">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
86 <param name="inputFileName1" format="gtf" type="data" label="Input File 1"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
87 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
88 </conditional>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
89
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
90 <conditional name="formatType2">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
91 <param name="FormatInputFileName2" type="select" label="Refence File Format">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
92 <option value="bed">bed</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
93 <option value="gff">gff</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
94 <option value="gff2">gff2</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
95 <option value="gff3">gff3</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
96 <option value="sam">sam</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
97 <option value="gtf">gtf</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
98 </param>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
99 <when value="bed">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
100 <param name="inputFileName2" format="bed" type="data" label="Input File 2"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
101 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
102 <when value="gff">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
103 <param name="inputFileName2" format="gff" type="data" label="Input File 2"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
104 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
105 <when value="gff2">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
106 <param name="inputFileName2" format="gff2" type="data" label="Input File 2"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
107 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
108 <when value="gff3">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
109 <param name="inputFileName2" format="gff3" type="data" label="Input File 2"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
110 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
111 <when value="sam">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
112 <param name="inputFileName2" format="sam" type="data" label="Input File 2"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
113 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
114 <when value="gtf">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
115 <param name="inputFileName2" format="gtf" type="data" label="Input File 2"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
116 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
117 </conditional>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
118
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
119 <conditional name="OptionUpDownStream">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
120 <param name="OptionUD" type="select" label="Only provide upstream/dowstream features">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
121 <option value="UpStream">UpStream</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
122 <option value="DownStream">DownStream</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
123 <option value="NONE" selected="true">NONE</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
124 </param>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
125 <when value="UpStream">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
126 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
127 <when value="DownStream">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
128 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
129 <when value="NONE">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
130 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
131 </conditional>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
132
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
133 <conditional name="OptionColinearOrAntiSens">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
134 <param name="OptionCA" type="select" label="Only provide collinear/antisens features">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
135 <option value="Colinear">Collinear</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
136 <option value="AntiSens">AntiSens</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
137 <option value="NONE" selected="true">NONE</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
138 </param>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
139 <when value="Colinear">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
140 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
141 <when value="AntiSens">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
142 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
143 <when value="NONE">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
144 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
145 </conditional>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
146
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
147 <conditional name="OptionMax">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
148 <param name="maximum" type="select" label="maximum distance between 2 elements">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
149 <option value="Yes">Yes</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
150 <option value="No" selected="true">No</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
151 </param>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
152 <when value="Yes">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
153 <param name="max" type="integer" value="0"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
154 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
155 <when value="No">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
156 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
157 </conditional>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
158
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
159 <conditional name="OptionMin">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
160 <param name="minimum" type="select" label="minimum distance between 2 elements">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
161 <option value="Yes">Yes</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
162 <option value="No" selected="true">No</option>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
163 </param>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
164 <when value="Yes">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
165 <param name="min" type="integer" value="0" />
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
166 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
167 <when value="No">
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
168 </when>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
169 </conditional>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
170
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
171 </inputs>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
172
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
173
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
174 <outputs>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
175 <data format="gff3" name="outputFile" label="[get flanking] output file"/>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
176 </outputs>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
177
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
178 <help>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
179 This tool prints the elements from the second set of genomic intervals which are closest to (in other words, are flanking) the elements from the first set. You can also play on different parameters:
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
180
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
181 - restrict the search to downstream or upstream elements, or print downstream and upstream elements,
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
182
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
183 - only consider collinear flanking elements,
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
184
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
185 - only consider anti-sense flanking elements,
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
186
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
187 - only consider elements which are close enough (using some given distance),
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
188
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
189 - only consider flanking elements which do not overlap with the reference element.
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
190
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
191 Notice that elements from the second sets may be printed at most once, whether they are the flanking element of several elements from the first or not.
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
192 </help>
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
193
2c0c0a89fad7 Uploaded
m-zytnicki
parents:
diff changeset
194 </tool>