comparison ggplot_histogram.xml @ 0:d0945de2fc3a draft

Uploaded
author moheydarian
date Wed, 22 Feb 2017 15:48:52 -0500
parents
children 9e94d349b5c4
comparison
equal deleted inserted replaced
-1:000000000000 0:d0945de2fc3a
1 <tool id="ggplot_histogram" name="Histogram w ggplot2" version="0.1.1">
2 <requirements>
3 <requirement type="package">r-getopt</requirement>
4 <requirement type="package">r-ggplot2</requirement>
5 <requirement type="package">r-reshape2</requirement>
6 </requirements>
7 <stdio>
8 <exit_code range="1:" />
9 </stdio>
10 <command><![CDATA[
11 Rscript ${__tool_directory__}/ggplotscripthistogram.R --input "$input1" --title "$title" --xlab "$xlab" --ylab "$ylab" --transform "$transformation.transform" --scaling "$scaling.Plot_scaling" --colorscheme "$coloring.colorscheme" --dim "$dimensions.plotdim" --facet "$group.facet" --size "$size" --binwidth "$binwidth" --output "Rplot.pdf"
12 #if str( $coloring.colorscheme ) == "Defined":
13 --colors ${coloring.colors}
14 --colororder ${coloring.colororder}
15 #else:
16 --colors=irrelevant
17 --colororder=1
18 #end if
19
20 #if str( $scaling.Plot_scaling ) == "Defined":
21 --xaxismin=${scaling.xaxismin}
22 --xaxismax=${scaling.xaxismax}
23 --yaxismin=${scaling.yaxismin}
24 --yaxismax=${scaling.yaxismax}
25 #else:
26 --xaxismin=0
27 --xaxismax=1
28 --yaxismin=2
29 --yaxismax=3
30 #end if
31
32 #if str( $dimensions.plotdim ) == "Defined":
33 --woutputdim ${dimensions.woutputdim}
34 --houtputdim ${dimensions.houtputdim}
35 #else:
36 --woutputdim=7
37 --houtputdim=7
38 #end if
39
40 ]]></command>
41 <inputs>
42 <param name="input1" type="data" format="tabular" label="Input should have column headers - these will be the columns that are plotted"/>
43 <param name="title" size="30" type="text" format="txt"/>
44 <param name="xlab" size="30" type="text" value="title of x-axis" label="Label for x axis"/>
45 <param name="ylab" size="30" type="text" value="title of y-axis" label="Label for x axis"/>
46 <param name="size" size="4" type="float" value="1" label="relative line width" />
47 <param name="binwidth" size="4" type="float" value="0.5" label="Bin width for plotting"/>
48 <conditional name="transformation">
49 <param name="transform" type="select" label="Advanced - log transformation">
50 <option value="none">Plot the data as it is</option>
51 <option value="log2">Log2(value) transform my data</option>
52 <option value="log2plus1">Log2(value+1) transform my data</option>
53 <option value="log10">Log10(value) transform my data</option>
54 <option value="log10plus1">Log10(value+1) transform my data</option>
55 </param>
56 </conditional>
57 <conditional name="group">
58 <param name="facet" type="select" label="Advanced - faceting">
59 <option value="none">Plot my groups on one plot</option>
60 <option value="facet">Plot my groups on individual plots</option>
61 </param>
62 </conditional>
63 <conditional name="coloring">
64 <param name="colorscheme" type="select" label="Advanced - coloring groups" >
65 <option value="Default" selected="True">No thanks - just use the default scheme to color code my groups (columns)</option>
66 <option value="Defined">I want to use defined color palettes to differentiate my groups (columns) </option>
67 </param>
68 <when value="Default">
69 </when>
70 <when value="Defined">
71 <param name="colors" type="select" label="Color schemes to differentiate your groups" >
72 <option value="Default">Default color scheme</option>
73 <option value="YlOrRd">Yellow to orange to red (discrete, max=9 colors)</option>
74 <option value="YlOrBr">Yellow to orange to brown (discrete, max=9 colors)</option>
75 <option value="YlGnBu">Yellow to green to blue (discrete, max=9 colors)</option>
76 <option value="YlGn">Yellow to green (discrete, max=9 colors)</option>
77 <option value="Reds">Shades of red from light to dark (discrete, max=9 colors)</option>
78 <option value="RdPu">Red to purple (discrete, max=9 colors)</option>
79 <option value="Purples">Shades of purple from light to dark (discrete, max=9 colors)</option>
80 <option value="PuRd">Purple to red (discrete, max=9 colors)</option>
81 <option value="PuBuGn">Purple to blue to green (discrete, max=9 colors)</option>
82 <option value="PuBu">Purple to blue(discrete, max=9 colors)</option>
83 <option value="OrRd">Orange to red (discrete, max=9 colors)</option>
84 <option value="Oranges">Shades of orange from light to dark (discrete, max=9 colors)</option>
85 <option value="Greys">Shades of grey from light to dark (discrete, max=9 colors)</option>
86 <option value="Greens">Shades of greens from light to dark (discrete, max=9 colors)</option>
87 <option value="GnBu">Green to blue (discrete, max=9 colors)</option>
88 <option value="BuPu">Blue to purple (discrete, max=9 colors)</option>
89 <option value="BuGn">Blue to green (discrete, max=9 colors)</option>
90 <option value="Blues">Shades of blue from light to dark (discrete, max=9 colors)</option>
91 <option value="Set1">Set 1 - predefined color pallete (discrete, max=9 colors)</option>
92 <option value="Set2">Set 2 - predefined color pallete (discrete, max=8 colors)</option>
93 <option value="Set3">Set 3 - predefined color pallete (discrete, max=12 colors)</option>
94 <option value="Pastel1">Pastel 1 - predefined pastel color pallete (discrete, max=9 colors)</option>
95 <option value="Pastel2">Pastel 2 - predefined pastel color pallete (discrete, max=8 colors)</option>
96 <option value="Paired">Paired - predefined color pallete (discrete, max=12 colors)</option>
97 <option value="Dark2">Dark 2 - predefined color pallete (discrete, max=12 colors)</option>
98 <option value="Accent">Accent - predefined color pallete (discrete, max=12 colors)</option>
99 <option value="Spectral">Spectral - Red to yellow to purple (discrete, max=11 colors)</option>
100 <option value="RdYlGn">Red to yellow to green (discrete, max=11 colors)</option>
101 <option value="RdYlBu">Red to yellow to blue (discrete, max=11 colors)</option>
102 <option value="RdGy">Red to grey (discrete, max=11 colors)</option>
103 <option value="RdBu">Red to blue (discrete, max=11 colors)</option>
104 <option value="PuOr">Purple to orange (discrete, max=11 colors)</option>
105 <option value="PRGn">Purple to green (discrete, max=11 colors)</option>
106 <option value="BrBG">Brown to teal (discrete, max=11 colors)</option>
107 </param>
108 <param name="colororder" type="select" label="Reverse color scheme" >
109 <option value="1">Default order of color scheme</option>
110 <option value="-1">Reverse the order of my color scheme</option>
111 </param>
112 </when>
113 </conditional>
114 <conditional name="scaling">
115 <param name="Plot_scaling" type="select" label="Advanced - Axis scaling">
116 <option value="Automatic" selected="True">Automatic axis scaling</option>
117 <option value="Defined">User deined axis scales</option>
118 </param>
119 <when value="Automatic">
120 <!--Do nothing here -->
121 </when>
122 <when value="Defined">
123 <param name="xaxismin" size="4" type="integer" value="0" label="minimal range of x-axis" />
124 <param name="xaxismax" size="4" type="integer" value="3" label="maximal range of x-axis" />
125 <param name="yaxismin" size="4" type="integer" value="0" label="minimal range of y-axis" />
126 <param name="yaxismax" size="4" type="integer" value="3" label="maximal range of y-axis" />
127 </when>
128 </conditional>
129 <conditional name="dimensions">
130 <param name="plotdim" type="select" label="Advanced - output dimensions">
131 <option value="Default" selected="True">Default</option>
132 <option value="Defined">User deined output dimensions</option>
133 </param>
134 <when value="Default">
135 <!--Do nothing here -->
136 </when>
137 <when value="Defined">
138 <param name="woutputdim" size="4" type="float" value="7" label="width of output (inches)" />
139 <param name="houtputdim" size="4" type="float" value="7" label="height of output (inches)" />
140 </when>
141 </conditional>
142 </inputs>
143 <outputs>
144 <!-- <data name="output1" format="png" from_work_dir="Rplot.png"/> -->
145 <data name="output1" format="pdf" from_work_dir="Rplot.pdf"/>
146 </outputs>
147 <tests>
148 <test>
149 <param name="input1" value="input.txt"/>
150 <output name="output1" file="Rplot.pdf"/>
151 </test>
152 </tests>
153 <help><![CDATA[
154 /bin/sh: uh: command not found
155
156 ]]></help>
157 <citations>
158 <citation type="bibtex">
159 @misc{renameTODO,
160 author = {Michelle Clinton, FirstTODO},
161 year = {TODO},
162 title = {TODO},
163 url = {under construction},
164 }</citation>
165 </citations>
166 </tool>