|
13
|
1 <tool id="ggplot_point" name="Scatterplot w ggplot2 to pdf 8.10.2" version="0.1.2">
|
|
|
2 <requirements>
|
|
|
3 <requirement type="package">getopt</requirement>
|
|
|
4 <requirement type="package">ggplot2</requirement>
|
|
|
5 </requirements>
|
|
|
6 <stdio>
|
|
|
7 <exit_code range="1:" />
|
|
|
8 </stdio>
|
|
|
9 <command><![CDATA[
|
|
|
10 Rscript ggplotpointscript.R --input "$input1" --title "$title"
|
|
|
11 --theme "${theme.theme_selector}" --xplot "$xplot" --yplot "$yplot" --scaling "$scaling.Plot_scaling" --points "$points.pointoptions" --dim "$dimensions.plotdim" --factor "$factor.factoring" --transform "$transformation.transform" --xlab "$xlab" --ylab "$ylab"
|
|
|
12 --axistitlecust "$axistitlecustomization.axistitlecust" --axistextcust "$axistextcustomization.axistextcust"
|
|
|
13 --plottitlecust "$plottitlecustomization.plottitlecust" --gridlinecust "$gridlinecustomization.gridlinecust" --output "Rplot.pdf"
|
|
|
14 #if str( $factor.factoring ) == "Single":
|
|
|
15 --factorcol ${factor.factorcol}
|
|
|
16 --colors ${factor.colors}
|
|
|
17 --colororder ${factor.colororder}
|
|
|
18 #elif str( $factor.factoring ) == "Multiple":
|
|
|
19 --factorcol ${factor.factorcol}
|
|
|
20 --colors=irrelevant
|
|
|
21 --colororder=1
|
|
|
22 #else:
|
|
|
23 --factorcol=1
|
|
|
24 --colors=irrelevant
|
|
|
25 --colororder=1
|
|
|
26 #end if
|
|
|
27 #if str( $points.pointoptions ) == "Defined":
|
|
|
28 --size ${points.size}
|
|
|
29 --alpha ${points.alpha}
|
|
|
30 --pointcolor ${points.pointcolor}
|
|
|
31 #else:
|
|
|
32 --size=1
|
|
|
33 --alpha=1
|
|
|
34 --pointcolor=black
|
|
|
35 #end if
|
|
|
36 #if str( $scaling.Plot_scaling ) == "Defined":
|
|
|
37 --xaxismin=${scaling.xaxismin}
|
|
|
38 --xaxismax=${scaling.xaxismax}
|
|
|
39 --yaxismin=${scaling.yaxismin}
|
|
|
40 --yaxismax=${scaling.yaxismax}
|
|
|
41 #else:
|
|
|
42 --xaxismin=0
|
|
|
43 --xaxismax=1
|
|
|
44 --yaxismin=2
|
|
|
45 --yaxismax=3
|
|
|
46 #end if
|
|
|
47 #if str( $axistitlecustomization.axistitlecust ) == "Defined":
|
|
|
48 --axistitlesize ${axistitlecustomization.axistitlesize}
|
|
|
49 --axistitlecolor ${axistitlecustomization.axistitlecolor}
|
|
|
50 --axistitleface ${axistitlecustomization.axistitleface}
|
|
|
51 #else:
|
|
|
52 --axistitlesize=12
|
|
|
53 --axistitlecolor=black
|
|
|
54 --axistitleface=plain
|
|
|
55 #end if
|
|
|
56 #if str( $axistextcustomization.axistextcust ) == "Defined":
|
|
|
57 --axistextsize ${axistextcustomization.axistextsize}
|
|
|
58 --axistextcolor ${axistextcustomization.axistextcolor}
|
|
|
59 --axistextface ${axistextcustomization.axistextface}
|
|
|
60 #else:
|
|
|
61 --axistextsize=12
|
|
|
62 --axistextcolor=black
|
|
|
63 --axistextface=plain
|
|
|
64 #end if
|
|
|
65 #if str( $plottitlecustomization.plottitlecust ) == "Defined":
|
|
|
66 --plottitlesize ${plottitlecustomization.plottitlesize}
|
|
|
67 --plottitlecolor ${plottitlecustomization.plottitlecolor}
|
|
|
68 --plottitleface ${plottitlecustomization.plottitleface}
|
|
|
69 #else:
|
|
|
70 --plottitlesize=12
|
|
|
71 --plottitlecolor=black
|
|
|
72 --plottitleface=plain
|
|
|
73 #end if
|
|
|
74 #if str( $dimensions.plotdim ) == "Defined":
|
|
|
75 --woutputdim ${dimensions.woutputdim}
|
|
|
76 --houtputdim ${dimensions.houtputdim}
|
|
|
77 #else:
|
|
|
78 --woutputdim=7
|
|
|
79 --houtputdim=7
|
|
|
80 #end if
|
|
|
81 ]]></command>
|
|
|
82 <inputs>
|
|
|
83 <param name="input1" type="data" format="tabular" label="Input (tabular format)" />
|
|
|
84 <param name="xplot" type="integer" value="8" label="Column to plot on x-axis" />
|
|
|
85 <param name="yplot" type="integer" value="9" label="Column to plot on y-axis" />
|
|
|
86 <param name="title" size="30" type="text" value="plot title" label="Title of plot" />
|
|
|
87 <param name="xlab" size="30" type="text" value="title of x-axis" label="Label for x-axis"/>
|
|
|
88 <param name="ylab" size="30" type="text" value="title of y-axis" label="Label for y-axis"/>
|
|
|
89 <conditional name="points">
|
|
|
90 <param name="pointoptions" type="select" label="Advanced - data point options">
|
|
|
91 <option value="Default" selected="True">Default</option>
|
|
|
92 <option value="Defined">User defined point options</option>
|
|
|
93 </param>
|
|
|
94 <when value="Default">
|
|
|
95 <!--Do nothing here -->
|
|
|
96 </when>
|
|
|
97 <when value="Defined">
|
|
|
98 <param name="size" size="4" type="float" value="1" label="relative size of points" />
|
|
|
99 <param name="alpha" size="4" type="float" value="1" label="Transparency of points (On a scale of 0-1; 0=transparent, 1=default)" />
|
|
|
100 <param name="pointcolor" type="select" label="Color of data points" >
|
|
|
101 <option value="black">Black (default)</option>
|
|
|
102 <option value="red">Red</option>
|
|
|
103 <option value="white">White</option>
|
|
|
104 <option value="blue">Blue</option>
|
|
|
105 <option value="orange">Orange</option>
|
|
|
106 <option value="yellow">Yellow</option>
|
|
|
107 <option value="green">Green</option>
|
|
|
108 <option value="purple">Purple</option>
|
|
|
109 <option value="magenta">Magenta</option>
|
|
|
110 <option value="cyan">Cyan</option>
|
|
|
111 <option value="grey">Grey</option>
|
|
|
112 <option value="gold">Gold</option>
|
|
|
113 </param>
|
|
|
114 </when>
|
|
|
115 </conditional>
|
|
|
116 <conditional name="factor">
|
|
|
117 <param name="factoring" type="select" label="Advanced - plotting multiple groups" >
|
|
|
118 <option value="Default" selected="True">No thanks - just plot the data as one group</option>
|
|
|
119 <option value="Single">Plot multiple groups of data on one plot</option>
|
|
|
120 <option value="Multiple">Plot multiple groups of data on individual plots</option>
|
|
|
121 </param>
|
|
|
122 <when value="Default">
|
|
|
123 <!--Do nothing here -->
|
|
|
124 </when>
|
|
|
125 <when value="Single">
|
|
|
126 <param name="factorcol" size="4" type="integer" value="1" label="column differentiating the different groups" />
|
|
|
127 <param name="colors" type="select" label="Color schemes to differentiate your groups" >
|
|
|
128 <option value="Default">Default color scheme</option>
|
|
|
129 <option value="YlOrRd">Yellow to orange to red (discrete, max=9 colors)</option>
|
|
|
130 <option value="YlOrBr">Yellow to orange to brown (discrete, max=9 colors)</option>
|
|
|
131 <option value="YlGnBu">Yellow to green to blue (discrete, max=9 colors)</option>
|
|
|
132 <option value="YlGn">Yellow to green (discrete, max=9 colors)</option>
|
|
|
133 <option value="Reds">Shades of red from light to dark (discrete, max=9 colors)</option>
|
|
|
134 <option value="RdPu">Red to purple (discrete, max=9 colors)</option>
|
|
|
135 <option value="Purples">Shades of purple from light to dark (discrete, max=9 colors)</option>
|
|
|
136 <option value="PuRd">Purple to red (discrete, max=9 colors)</option>
|
|
|
137 <option value="PuBuGn">Purple to blue to green (discrete, max=9 colors)</option>
|
|
|
138 <option value="PuBu">Purple to blue(discrete, max=9 colors)</option>
|
|
|
139 <option value="OrRd">Orange to red (discrete, max=9 colors)</option>
|
|
|
140 <option value="Oranges">Shades of orange from light to dark (discrete, max=9 colors)</option>
|
|
|
141 <option value="Greys">Shades of grey from light to dark (discrete, max=9 colors)</option>
|
|
|
142 <option value="Greens">Shades of greens from light to dark (discrete, max=9 colors)</option>
|
|
|
143 <option value="GnBu">Green to blue (discrete, max=9 colors)</option>
|
|
|
144 <option value="BuPu">Blue to purple (discrete, max=9 colors)</option>
|
|
|
145 <option value="BuGn">Blue to green (discrete, max=9 colors)</option>
|
|
|
146 <option value="Blues">Shades of blue from light to dark (discrete, max=9 colors)</option>
|
|
|
147 <option value="Set1">Set 1 - predefined color pallete (discrete, max=9 colors)</option>
|
|
|
148 <option value="Set2">Set 2 - predefined color pallete (discrete, max=8 colors)</option>
|
|
|
149 <option value="Set3">Set 3 - predefined color pallete (discrete, max=12 colors)</option>
|
|
|
150 <option value="Pastel1">Pastel 1 - predefined pastel color pallete (discrete, max=9 colors)</option>
|
|
|
151 <option value="Pastel2">Pastel 2 - predefined pastel color pallete (discrete, max=8 colors)</option>
|
|
|
152 <option value="Paired">Paired - predefined color pallete (discrete, max=12 colors)</option>
|
|
|
153 <option value="Dark2">Dark 2 - predefined color pallete (discrete, max=12 colors)</option>
|
|
|
154 <option value="Accent">Accent - predefined color pallete (discrete, max=12 colors)</option>
|
|
|
155 <option value="Spectral">Spectral - Red to yellow to purple (discrete, max=11 colors)</option>
|
|
|
156 <option value="RdYlGn">Red to yellow to green (discrete, max=11 colors)</option>
|
|
|
157 <option value="RdYlBu">Red to yellow to blue (discrete, max=11 colors)</option>
|
|
|
158 <option value="RdGy">Red to grey (discrete, max=11 colors)</option>
|
|
|
159 <option value="RdBu">Red to blue (discrete, max=11 colors)</option>
|
|
|
160 <option value="PuOr">Purple to orange (discrete, max=11 colors)</option>
|
|
|
161 <option value="PRGn">Purple to green (discrete, max=11 colors)</option>
|
|
|
162 <option value="BrBG">Brown to teal (discrete, max=11 colors)</option>
|
|
|
163 </param>
|
|
|
164 <param name="colororder" type="select" label="Reverse color scheme" >
|
|
|
165 <option value="1">Default order of color scheme</option>
|
|
|
166 <option value="-1">Reverse the order of my color scheme</option>
|
|
|
167 </param>
|
|
|
168 </when>
|
|
|
169 <when value="Multiple">
|
|
|
170 <param name="factorcol" size="4" type="integer" value="1" label="column differentiating the different groups" />
|
|
|
171 </when>
|
|
|
172 </conditional>
|
|
|
173 <conditional name="transformation">
|
|
|
174 <param name="transform" type="select" label="Advanced - log transformation">
|
|
|
175 <option value="none">Plot the data as it is</option>
|
|
|
176 <option value="log2">Log2(value) transform my data</option>
|
|
|
177 <option value="log2plus1">Log2(value+1) transform my data</option>
|
|
|
178 <option value="log10">Log10(value) transform my data</option>
|
|
|
179 <option value="log10plus1">Log10(value+1) transform my data</option>
|
|
|
180 </param>
|
|
|
181 <when value="none">
|
|
|
182 <!--Do nothing here -->
|
|
|
183 </when>
|
|
|
184 <when value="log2">
|
|
|
185 <!--Do nothing here -->
|
|
|
186 </when>
|
|
|
187 <when value="log2plus1">
|
|
|
188 <!--Do nothing here -->
|
|
|
189 </when>
|
|
|
190 <when value="log10">
|
|
|
191 <!--Do nothing here -->
|
|
|
192 </when>
|
|
|
193 <when value="log10plus1">
|
|
|
194 <!--Do nothing here -->
|
|
|
195 </when>
|
|
|
196 </conditional>
|
|
|
197 <conditional name="scaling">
|
|
|
198 <param name="Plot_scaling" type="select" label="Advanced - axis scaling">
|
|
|
199 <option value="Automatic" selected="True">Automatic axis scaling</option>
|
|
|
200 <option value="Defined">User defined axis scales</option>
|
|
|
201 </param>
|
|
|
202 <when value="Automatic">
|
|
|
203 <!--Do nothing here -->
|
|
|
204 </when>
|
|
|
205 <when value="Defined">
|
|
|
206 <param name="xaxismin" size="4" type="integer" value="0" label="minimal range of x-axis" />
|
|
|
207 <param name="xaxismax" size="4" type="integer" value="3" label="maximal range of x-axis" />
|
|
|
208 <param name="yaxismin" size="4" type="integer" value="0" label="minimal range of y-axis" />
|
|
|
209 <param name="yaxismax" size="4" type="integer" value="3" label="maximal range of y-axis" />
|
|
|
210 </when>
|
|
|
211 </conditional>
|
|
|
212 <conditional name="theme">
|
|
|
213 <param name="theme_selector" type="select" label="Advanced - backgound theme for plot">
|
|
|
214 <option value="bw">Black and white</option>
|
|
|
215 <option value="Default">Default (grey)</option>
|
|
|
216 </param>
|
|
|
217 <when value="bw"/>
|
|
|
218 <when value="Default"></when>
|
|
|
219 </conditional>
|
|
|
220 <conditional name="axistitlecustomization">
|
|
|
221 <param name="axistitlecust" type="select" label="Advanced - axis label options">
|
|
|
222 <option value="Default" selected="True">Default</option>
|
|
|
223 <option value="Defined">User defined label options</option>
|
|
|
224 </param>
|
|
|
225 <when value="Default">
|
|
|
226 <!--Do nothing here -->
|
|
|
227 </when>
|
|
|
228 <when value="Defined">
|
|
|
229 <param name="axistitlesize" size="4" type="float" value="12" label="Axis label size (default = 12)"/>
|
|
|
230 <param name="axistitlecolor" type="select" label="Color of axis label">
|
|
|
231 <option value="black">Black (default)</option>
|
|
|
232 <option value="red">Red</option>
|
|
|
233 <option value="white">White</option>
|
|
|
234 <option value="blue">Blue</option>
|
|
|
235 <option value="orange">Orange</option>
|
|
|
236 <option value="yellow">Yellow</option>
|
|
|
237 <option value="green">Green</option>
|
|
|
238 <option value="purple">Purple</option>
|
|
|
239 <option value="magenta">Magenta</option>
|
|
|
240 <option value="cyan">Cyan</option>
|
|
|
241 <option value="grey">Grey</option>
|
|
|
242 <option value="gold">Gold</option>
|
|
|
243 </param>
|
|
|
244 <param name="axistitleface" size="4" type="select" label="Font effect of axis label">
|
|
|
245 <option value="plain">Normal (default)</option>
|
|
|
246 <option value="bold">Bold</option>
|
|
|
247 <option value="italic">Italic</option>
|
|
|
248 </param>
|
|
|
249 </when>
|
|
|
250 </conditional>
|
|
|
251 <conditional name="axistextcustomization">
|
|
|
252 <param name="axistextcust" type="select" label="Advanced - axis text options">
|
|
|
253 <option value="Default" selected="True">Default</option>
|
|
|
254 <option value="Defined">User defined axis text options</option>
|
|
|
255 </param>
|
|
|
256 <when value="Default">
|
|
|
257 <!--Do nothing here -->
|
|
|
258 </when>
|
|
|
259 <when value="Defined">
|
|
|
260 <param name="axistextsize" size="4" type="float" value="12" label="Axis text size (default = 12)"/>
|
|
|
261 <param name="axistextcolor" type="select" label="Color of axis text">
|
|
|
262 <option value="black">Black (default)</option>
|
|
|
263 <option value="red">Red</option>
|
|
|
264 <option value="white">White</option>
|
|
|
265 <option value="blue">Blue</option>
|
|
|
266 <option value="orange">Orange</option>
|
|
|
267 <option value="yellow">Yellow</option>
|
|
|
268 <option value="green">Green</option>
|
|
|
269 <option value="purple">Purple</option>
|
|
|
270 <option value="magenta">Magenta</option>
|
|
|
271 <option value="cyan">Cyan</option>
|
|
|
272 <option value="grey">Grey</option>
|
|
|
273 <option value="gold">Gold</option>
|
|
|
274 </param>
|
|
|
275 <param name="axistextface" size="4" type="select" label="Font effect of axis text">
|
|
|
276 <option value="plain">Normal (default)</option>
|
|
|
277 <option value="bold">Bold</option>
|
|
|
278 <option value="italic">Italic</option>
|
|
|
279 </param>
|
|
|
280 </when>
|
|
|
281 </conditional>
|
|
|
282 <conditional name="plottitlecustomization">
|
|
|
283 <param name="plottitlecust" type="select" label="Advanced - Plot title options">
|
|
|
284 <option value="Default" selected="True">Default</option>
|
|
|
285 <option value="Defined">User defined plot title options</option>
|
|
|
286 </param>
|
|
|
287 <when value="Default">
|
|
|
288 <!--Do nothing here -->
|
|
|
289 </when>
|
|
|
290 <when value="Defined">
|
|
|
291 <param name="plottitlesize" size="4" type="float" value="12" label="Plot title size (default = 12)"/>
|
|
|
292 <param name="plottitlecolor" type="select" label="Color of plot title">
|
|
|
293 <option value="black">Black (default)</option>
|
|
|
294 <option value="red">Red</option>
|
|
|
295 <option value="white">White</option>
|
|
|
296 <option value="blue">Blue</option>
|
|
|
297 <option value="orange">Orange</option>
|
|
|
298 <option value="yellow">Yellow</option>
|
|
|
299 <option value="green">Green</option>
|
|
|
300 <option value="purple">Purple</option>
|
|
|
301 <option value="magenta">Magenta</option>
|
|
|
302 <option value="cyan">Cyan</option>
|
|
|
303 <option value="grey">Grey</option>
|
|
|
304 <option value="gold">Gold</option>
|
|
|
305 </param>
|
|
|
306 <param name="plottitleface" size="4" type="select" label="Font effect of plot title">
|
|
|
307 <option value="plain">Normal (default)</option>
|
|
|
308 <option value="bold">Bold</option>
|
|
|
309 <option value="italic">Italic</option>
|
|
|
310 </param>
|
|
|
311 </when>
|
|
|
312 </conditional>
|
|
|
313 <conditional name="gridlinecustomization">
|
|
|
314 <param name="gridlinecust" type="select" label="Advanced - grid lines">
|
|
|
315 <option value="Default">Default grid lines</option>
|
|
|
316 <option value="hidemajor">Hide major grid lines</option>
|
|
|
317 <option value="hideminor">Hide minor grid lines</option>
|
|
|
318 <option value="hideboth">Hide major and minor grid lines</option>
|
|
|
319 </param>
|
|
|
320 <when value="Default">
|
|
|
321 <!--Do nothing here -->
|
|
|
322 </when>
|
|
|
323 <when value="hidemajor">
|
|
|
324 <!--Do nothing here -->
|
|
|
325 </when>
|
|
|
326 <when value="hideminor">
|
|
|
327 <!--Do nothing here -->
|
|
|
328 </when>
|
|
|
329 <when value="hideboth">
|
|
|
330 <!--Do nothing here -->
|
|
|
331 </when>
|
|
|
332 </conditional>
|
|
|
333 <conditional name="dimensions">
|
|
|
334 <param name="plotdim" type="select" label="Advanced - output dimensions">
|
|
|
335 <option value="Default" selected="True">Default</option>
|
|
|
336 <option value="Defined">User defined output dimensions</option>
|
|
|
337 </param>
|
|
|
338 <when value="Default">
|
|
|
339 <!--Do nothing here -->
|
|
|
340 </when>
|
|
|
341 <when value="Defined">
|
|
|
342 <param name="woutputdim" size="4" type="float" value="7" label="width of output (inches)" />
|
|
|
343 <param name="houtputdim" size="4" type="float" value="7" label="height of output (inches)" />
|
|
|
344 </when>
|
|
|
345 </conditional>
|
|
|
346 </inputs>
|
|
|
347 <outputs>
|
|
|
348 <!-- <data name="output1" format="png" from_work_dir="Rplot.png"/> -->
|
|
|
349 <data name="output1" format="pdf" from_work_dir="Rplot.pdf"/>
|
|
|
350 </outputs>
|
|
|
351 <tests>
|
|
|
352 <test>
|
|
|
353 <param name="input1" value="input.txt"/>
|
|
|
354 <output name="output1" file="Rplot.pdf"/>
|
|
|
355 </test>
|
|
|
356 </tests>
|
|
|
357 <help><![CDATA[
|
|
|
358 This tool will generate a scatterplot representing data from two groups/conditions.
|
|
|
359 The input data should be in tabular format and the user can determine which groups (columns) to plot.
|
|
|
360 Multiple groups can be plotted on the same or multiple plots by providing a column with a group identifier under "Advanced - plotting multiple groups".
|
|
|
361 Feel free to explore the (many) advanced options to customize your plot. Galaxy makes this type optimization easy for the user!
|
|
|
362 The ouput is a pdf file with your scatterplot. The dimensions of this file can be modified under "Advanced - output dimensions"
|
|
|
363 Please report issues at: https://github.com/MoHeydarian/Galaxy-wrapper-for-ggplot2-scatterplot
|
|
|
364 ]]></help>
|
|
|
365 <citations>
|
|
|
366 <citation type="bibtex">
|
|
|
367 @misc{renameTODO,
|
|
|
368 author = {8.5.2016, FirstTODO},
|
|
|
369 year = {TODO},
|
|
|
370 title = {TODO},
|
|
|
371 url = {http://docs.ggplot2.org/current/geom_point.html},
|
|
|
372 }</citation>
|
|
|
373 </citations>
|
|
|
374 </tool>
|