1
|
1 <?xml version="1.0" encoding="UTF-8" ?>
|
|
2 <tool id="mda_advanced_heatmap_gen" name="Advanced NG-CHM Generator" version="2.1.1">
|
|
3 <description> Create Clustered Heat Maps</description>
|
|
4 <!-- command interpreter="python" detect_errors="aggressive">$__tool_directory__/mad_advanced_heatmap_gen.py 'Heat_Map_$hmname' '$hmdesc' '$inputmatrix' ${d_rows.rowOrderMethod} ${d_rows.rowDistanceMeasure} ${d_rows.rowAgglomerationMethod} ${d_cols.columnOrderMethod} ${d_cols.columnDistanceMeasure} ${d_cols.columnAgglomerationMethod} $summarymethod '$__tool_directory__' ${d_rows.rowDendroCut} ${d_cols.colDendroCut} $rowDataType $colDataType -->
|
|
5 <command interpreter="bash" detect_errors="aggressive">$__tool_directory__/heatmap_advanced.sh 'advanced' 'Heat_Map_$hmname' '$hmdesc' '$inputmatrix' ${d_rows.rowOrderMethod} ${d_rows.rowDistanceMeasure} ${d_rows.rowAgglomerationMethod} ${d_cols.columnOrderMethod} ${d_cols.columnDistanceMeasure} ${d_cols.columnAgglomerationMethod} $summarymethod '$__tool_directory__' ${d_rows.rowDendroCut} ${d_cols.colDendroCut} $rowDataType $colDataType 'c_${d_rows.rcutrows.rowDendroTreeCut}' 'c_${d_cols.ccutrows.colDendroTreeCut}' 't_$rowTopItems' 't_$colTopItems'
|
|
6
|
|
7 "
|
|
8 #for $attr in $hm_attribute
|
|
9 ${attr.attrbute_key}:${attr.attrbute_value};
|
|
10 #end for
|
|
11 "
|
|
12
|
|
13 #for $op in $operations
|
|
14 ${op.class_name}
|
|
15 ${op.repeatinput.file_name}
|
|
16 ${op.cattype.cat}
|
|
17 ${op.cattype.bartype}
|
|
18 #end for
|
|
19 '$output'
|
|
20 </command>
|
|
21 <stdio>
|
|
22 <exit_code range="1:" level="fatal" />
|
|
23 </stdio>
|
|
24 <inputs>
|
|
25 <param name="inputmatrix" type="data" format="Tabular" label="Input Data Matrix" help="Tab delimited text file with row labels, column labels, and data."/>
|
|
26 <param name="hmname" size="20" type="text" value="Heat_Map_name" label="Heat Map Name" help="Short Name for heat map (no spaces)."/>
|
|
27 <param name="hmdesc" size="100" optional="true" type="text" value="Heat_Map_description" label="Heat Map Description" help="Longer description of the heat map contents."/>
|
|
28 <param name="summarymethod" type="select" label="Data Summarization Method" help="For large matrices, the selected method is used to aggregate data values in the summary view.">
|
|
29 <option value="average">Average</option>
|
|
30 <option value="sample">Sample</option>
|
|
31 <option value="mode">Mode</option>
|
|
32 </param>
|
|
33 <conditional name="d_rows">
|
|
34 <param name="rowOrderMethod" type="select" label="Row ordering method" help="Determine if rows should be clustered, randomized, or remain as is.">
|
|
35 <option value="Hierarchical">Hierarchical Clustering</option>
|
|
36 <option value="Original">Original Order</option>
|
|
37 <option value="Random">Random</option>
|
|
38 </param>
|
|
39 <when value="Hierarchical">
|
|
40 <param name="rowDistanceMeasure" type="select" label="Row Distance Metric" help="For clustering, select the method of determining distance between rows.">
|
|
41 <option value="euclidean">Euclidean</option>
|
|
42 <option value="binary">Binary</option>
|
|
43 <option value="manhattan">Manhattan</option>
|
|
44 <option value="maximum">Maximum</option>
|
|
45 <option value="canberra">Canberra</option>
|
|
46 <option value="minkowski">Minkowski</option>
|
|
47 <option value="correlation">Correlation</option>
|
|
48 </param>
|
|
49 <param name="rowAgglomerationMethod" type="select" label="Row Clustering Method" help="For clustering, select algorithm for building clusters.">
|
|
50 <option value="average">Average Linkage</option>
|
|
51 <option value="complete">Complete Linkage</option>
|
|
52 <option value="single">Single Linkage</option>
|
|
53 <option value="ward" selected="true">Ward</option>
|
|
54 <option value="mcquitty">Mcquitty</option>
|
|
55 <option value="median">Median</option>
|
|
56 <option value="centroid">Centroid</option>
|
|
57 </param>
|
|
58 <param name="rowDendroCut" type="select" label="Row Cluster Covariate Bar" help="To generate a row covariate bar based on clusters, select the number of clusters(classes) to use.">
|
|
59 <option value="0" selected="true" >None</option>
|
|
60 <option value="2" >2</option>
|
|
61 <option value="3" >3</option>
|
|
62 <option value="4" >4</option>
|
|
63 <option value="5" >5</option>
|
|
64 <option value="6" >6</option>
|
|
65 <option value="7" >7</option>
|
|
66 <option value="8" >8</option>
|
|
67 <option value="9" >9</option>
|
|
68 <option value="10" >10</option>
|
|
69 </param>
|
|
70 <conditional name="rcutrows">
|
|
71 <param name="raddcuts" type="select" label="Add row gap(s)" help="To separate portions of the heat map with gaps, select a gap method.">
|
|
72 <option value="none">None</option>
|
|
73 <option value="treecuts">Cluster-Based Gaps</option>
|
|
74 <option value="positional">Fixed Gaps</option>
|
|
75 </param>
|
|
76 <when value="none">
|
|
77 <param name="rowDendroTreeCut" type="text" size="0" hidden="true" value="0"/>
|
|
78 </when>
|
|
79 <when value="treecuts">
|
|
80 <param name="rowDendroTreeCut" type="select" label="Cluster-Based Gap" help="Gaps will be placed between clusters. Select the number of clusters." >
|
|
81 <option value="0t" selected="true" >None</option>
|
|
82 <option value="2t" >2</option>
|
|
83 <option value="3t" >3</option>
|
|
84 <option value="4t" >4</option>
|
|
85 <option value="5t" >5</option>
|
|
86 <option value="6t" >6</option>
|
|
87 <option value="7t" >7</option>
|
|
88 <option value="8t" >8</option>
|
|
89 <option value="9t" >9</option>
|
|
90 <option value="10t" >10</option>
|
|
91 </param>
|
|
92 </when>
|
|
93 <when value="positional">
|
|
94 <param name="rowDendroTreeCut" type="text" size="100" value="None" label="Fixed Gap Location(s)" help="Enter a comma delimited list of row numbers where gaps should be created."/>
|
|
95 </when>
|
|
96 </conditional>
|
|
97 </when>
|
|
98 <when value="Original">
|
|
99 <param name="rowDistanceMeasure" type="text" size="0" hidden="true" value="n/a"/>
|
|
100 <param name="rowAgglomerationMethod" type="text" size="0" hidden="true" value="n/a"/>
|
|
101 <param name="rowDendroCut" type="text" size="0" hidden="true" value="0"/>
|
|
102 <conditional name="rcutrows">
|
|
103 <param name="raddcuts" type="select" label="Add row gap(s)" help="To separate portions of the heat map with gaps, select a gap method.">
|
|
104 <option value="none">None</option>
|
|
105 <option value="positional">Fixed Gaps</option>
|
|
106 </param>
|
|
107 <when value="none">
|
|
108 <param name="rowDendroTreeCut" type="text" size="100" value="None" hidden="true"/>
|
|
109 </when>
|
|
110 <when value="positional">
|
|
111 <param name="rowDendroTreeCut" type="text" size="100" value="None" label="Fixed Gap Location(s)" help="Enter a comma delimited list of row numbers where gaps should be created."/>
|
|
112 </when>
|
|
113 </conditional>
|
|
114 </when>
|
|
115 <when value="Random">
|
|
116 <param name="rowDistanceMeasure" type="text" size="0" hidden="true" value="n/a"/>
|
|
117 <param name="rowAgglomerationMethod" type="text" size="0" hidden="true" value="n/a"/>
|
|
118 <param name="rowDendroCut" type="text" size="0" hidden="true" value="0"/>
|
|
119 <conditional name="rcutrows">
|
|
120 <param name="raddcuts" type="select" label="Add row gap(s)" help="To separate portions of the heat map with gaps, select a gap method.">
|
|
121 <option value="none">None</option>
|
|
122 <option value="positional">Fixed Gaps</option>
|
|
123 </param>
|
|
124 <when value="none">
|
|
125 <param name="rowDendroTreeCut" type="text" size="100" value="None" hidden="true"/>
|
|
126 </when>
|
|
127 <when value="positional">
|
|
128 <param name="rowDendroTreeCut" type="text" size="100" value="None" label="Fixed Gap Location(s)" help="Enter a comma delimited list of row numbers where gaps should be created."/>
|
|
129 </when>
|
|
130 </conditional>
|
|
131 </when>
|
|
132 </conditional>
|
|
133 <param name="rowTopItems" size="100" type="text" value="None" label="Row Top Items" help="A few rows can be labeled in the full summary heat map. To do so provide a comma delimited list of row labels."/>
|
|
134 <param name="rowDataType" type="select" label="Row Label Type" help="Enable label driven link-outs by specifying the type of row labels.">
|
|
135 <option value="labels" selected="true" >None</option>
|
|
136 <option value="bio.probe.affymetrix" >Affymetrix Probe Id</option>
|
|
137 <option value="bio.feature.agilent" >Agilent Id</option>
|
|
138 <option value="bio.sample.cbioportal" >cBioPortal sample Id</option>
|
|
139 <option value="bio.transcript.ensemble" >Ensemble transcript Id</option>
|
|
140 <option value="bio.gene.entrez" >Gene Entrez Id</option>
|
|
141 <option value="bio.gene.hugo" >Gene HUGO symbol</option>
|
|
142 <option value="bio.go" >Gene Ontology (GO) Id</option>
|
|
143 <option value="bio.geo.acc" >GEO Accession Id</option>
|
|
144 <option value="bio.probe.illumina" >Illumina Probe Id</option>
|
|
145 <option value="bio.probe.infinium" >Infinium Probe Id</option>
|
|
146 <option value="bio.pathway.mdanderson" >MD Anderson pathway Id</option>
|
|
147 <option value="bio.mirna" >miRNA Id</option>
|
|
148 <option value="bio.mirna.mimat" >miRNA MIMAT Id</option>
|
|
149 <option value="bio.pubmed" >Pubmed Id</option>
|
|
150 <option value="bio.pubmed.search" >Pubmed Search Term</option>
|
|
151 <option value="scholar" >Scholarly term</option>
|
|
152 <option value="bio.gene.unigene" >Unigene CId</option>
|
|
153 <option value="bio.protein.uniprot" >UniProt Id</option>
|
|
154 </param>
|
|
155 <conditional name="d_cols">
|
|
156 <param name="columnOrderMethod" type="select" label="Column ordering method" help="Determine if columns should be clustered, randomized, or remain as is.">
|
|
157 <option value="Hierarchical">Hierarchical Clustering</option>
|
|
158 <option value="Original">Original Order</option>
|
|
159 <option value="Random">Random</option>
|
|
160 </param>
|
|
161 <when value="Hierarchical">
|
|
162 <param name="columnDistanceMeasure" type="select" label="Column Distance Metric" help="For clustering, select the method of determining distance between columns.">
|
|
163 <option value="euclidean">Euclidean</option>
|
|
164 <option value="binary">Binary</option>
|
|
165 <option value="manhattan">Manhattan</option>
|
|
166 <option value="maximum">Maximum</option>
|
|
167 <option value="canberra">Canberra</option>
|
|
168 <option value="minkowski">Minkowski</option>
|
|
169 <option value="correlation">Correlation</option>
|
|
170 </param>
|
|
171 <param name="columnAgglomerationMethod" type="select" label="Column Clustering Method" help="For clustering, select algorithm for building clusters.">
|
|
172 <option value="average">Average Linkage</option>
|
|
173 <option value="complete">Complete Linkage</option>
|
|
174 <option value="single">Single Linkage</option>
|
|
175 <option value="ward" selected="true">Ward</option>
|
|
176 <option value="mcquitty">Mcquitty</option>
|
|
177 <option value="median">Median</option>
|
|
178 <option value="centroid">Centroid</option>
|
|
179 </param>
|
|
180 <param name="colDendroCut" type="select" label="Column Cluster Covariate Bar" help="To generate a column covariate bar based on clusters, select the number of clusters(classes) to use.">
|
|
181 <option value="0" selected="true" >None</option>
|
|
182 <option value="2" >2</option>
|
|
183 <option value="3" >3</option>
|
|
184 <option value="4" >4</option>
|
|
185 <option value="5" >5</option>
|
|
186 <option value="6" >6</option>
|
|
187 <option value="7" >7</option>
|
|
188 <option value="8" >8</option>
|
|
189 <option value="9" >9</option>
|
|
190 <option value="10" >10</option>
|
|
191 </param>
|
|
192 <conditional name="ccutrows">
|
|
193 <param name="caddcuts" type="select" label="Add column gap(s)" help="To separate portions of the heat map with gaps, select a gap method.">
|
|
194 <option value="none">None</option>
|
|
195 <option value="treecuts">Cluster-Based Gaps</option>
|
|
196 <option value="positional">Fixed Gaps</option>
|
|
197 </param>
|
|
198 <when value="none">
|
|
199 <param name="colDendroTreeCut" type="text" size="0" hidden="true" value="0"/>
|
|
200 </when>
|
|
201 <when value="treecuts">
|
|
202 <param name="colDendroTreeCut" type="select" label="Cluster-Based Gap" help="Gaps will be placed between clusters. Select the number of clusters.">
|
|
203 <option value="0t" selected="true" >None</option>
|
|
204 <option value="2t" >2</option>
|
|
205 <option value="3t" >3</option>
|
|
206 <option value="4t" >4</option>
|
|
207 <option value="5t" >5</option>
|
|
208 <option value="6t" >6</option>
|
|
209 <option value="7t" >7</option>
|
|
210 <option value="8t" >8</option>
|
|
211 <option value="9t" >9</option>
|
|
212 <option value="10t" >10</option>
|
|
213 </param>
|
|
214 </when>
|
|
215 <when value="positional">
|
|
216 <param name="colDendroTreeCut" type="text" size="100" value="None" label="Fixed Gap Location(s)" help="Enter a comma delimited list of row numbers where gaps should be created."/>
|
|
217 </when>
|
|
218 </conditional>
|
|
219 </when>
|
|
220 <when value="Original">
|
|
221 <param name="columnDistanceMeasure" type="text" size="0" hidden="true" value="n/a"/>
|
|
222 <param name="columnAgglomerationMethod" type="text" size="0" hidden="true" value="n/a"/>
|
|
223 <param name="colDendroCut" type="text" size="0" hidden="true" value="0"/>
|
|
224 <conditional name="ccutrows">
|
|
225 <param name="caddcuts" type="select" label="Add column gap(s)" help="To separate portions of the heat map with gaps, select a gap method.">
|
|
226 <option value="none">None</option>
|
|
227 <option value="positional">Fixed Gaps</option>
|
|
228 </param>
|
|
229 <when value="none">
|
|
230 <param name="colDendroTreeCut" type="text" size="100" value="None" hidden="true"/>
|
|
231 </when>
|
|
232 <when value="positional">
|
|
233 <param name="colDendroTreeCut" type="text" size="100" value="None" label="Fixed Gap Location(s)" help="Enter a comma delimited list of row numbers where gaps should be created."/>
|
|
234 </when>
|
|
235 </conditional>
|
|
236 </when>
|
|
237 <when value="Random">
|
|
238 <param name="columnDistanceMeasure" type="text" size="0" hidden="true" value="n/a"/>
|
|
239 <param name="columnAgglomerationMethod" type="text" size="0" hidden="true" value="n/a"/>
|
|
240 <param name="colDendroCut" type="text" size="0" hidden="true" value="0"/>
|
|
241 <conditional name="ccutrows">
|
|
242 <param name="caddcuts" type="select" label="Add column gap(s)" help="To separate portions of the heat map with gaps, select a gap method.">
|
|
243 <option value="none">None</option>
|
|
244 <option value="positional">Fixed Gaps</option>
|
|
245 </param>
|
|
246 <when value="none">
|
|
247 <param name="colDendroTreeCut" type="text" size="100" value="None" hidden="true"/>
|
|
248 </when>
|
|
249 <when value="positional">
|
|
250 <param name="colDendroTreeCut" type="text" size="100" value="None" label="Fixed Gap Location(s)" help="Enter a comma delimited list of row numbers where gaps should be created."/>
|
|
251 </when>
|
|
252 </conditional>
|
|
253 </when>
|
|
254 </conditional>
|
|
255 <param name="colTopItems" size="100" type="text" value="None" label="Column Top Items" help="A few columns can be labeled in the full summary heat map. To do so provide a comma delimited list of column labels."/>
|
|
256 <param name="colDataType" type="select" label="Column Label Type" help="Enable label driven link-outs by specifying the type of column labels.">
|
|
257 <option value="labels" selected="true" >None</option>
|
|
258 <option value="bio.probe.affymetrix" >Affymetrix Probe Id</option>
|
|
259 <option value="bio.feature.agilent" >Agilent Id</option>
|
|
260 <option value="bio.sample.cbioportal" >cBioPortal sample Id</option>
|
|
261 <option value="bio.transcript.ensemble" >Ensemble transcript Id</option>
|
|
262 <option value="bio.gene.entrez" >Gene Entrez Id</option>
|
|
263 <option value="bio.gene.hugo" >Gene HUGO symbol</option>
|
|
264 <option value="bio.go" >Gene Ontology (GO) Id</option>
|
|
265 <option value="bio.geo.acc" >GEO Accession Id</option>
|
|
266 <option value="bio.probe.illumina" >Illumina Probe Id</option>
|
|
267 <option value="bio.probe.infinium" >Infinium Probe Id</option>
|
|
268 <option value="bio.pathway.mdanderson" >MD Anderson pathway Id</option>
|
|
269 <option value="bio.mirna" >miRNA Id</option>
|
|
270 <option value="bio.mirna.mimat" >miRNA MIMAT Id</option>
|
|
271 <option value="bio.pubmed" >Pubmed Id</option>
|
|
272 <option value="bio.pubmed.search" >Pubmed Search Term</option>
|
|
273 <option value="scholar" >Scholarly term</option>
|
|
274 <option value="bio.gene.unigene" >Unigene CId</option>
|
|
275 <option value="bio.protein.uniprot" >UniProt Id</option>
|
|
276 </param>
|
|
277 <repeat name="operations" title="Covariate Bars">
|
|
278 <param name="class_name" size="20" type="text" value="" label="Covariate Name" help="Label for the covariate to display in the heat map.">
|
|
279 <sanitizer invalid_char="_">
|
|
280 <valid initial="none">
|
|
281 <add preset="string.letters"/>
|
|
282 <add preset="string.digits"/>
|
|
283 </valid>
|
|
284 <mapping initial="none">
|
|
285 </mapping>
|
|
286 </sanitizer>
|
|
287 </param>
|
|
288 <param name="repeatinput" type="data" format="text" label="Covariate File" help="Tab delimited text file with row or column label and covariate value on each line."/>
|
|
289 <conditional name="cattype">
|
|
290 <param name="cat" type="select" label="Covariate Type" help="Identify the covariate as belonging to rows or columns and containing categorical or continuous values.">
|
|
291 <option value="row_categorical" >Row Categorical</option>
|
|
292 <option value="row_continuous" >Row Continuous</option>
|
|
293 <option value="column_categorical" >Column Categorical</option>
|
|
294 <option value="column_continuous" >Column Continuous</option>
|
|
295 </param>
|
|
296 <when value="row_continuous">
|
|
297 <param name="bartype" type="select" label="Display Type">
|
|
298 <option value="color_plot" >Standard</option>
|
|
299 <option value="bar_plot" >Bar Plot</option>
|
|
300 <option value="scatter_plot" >Scatter Plot</option>
|
|
301 </param>
|
|
302 </when>
|
|
303 <when value="column_continuous">
|
|
304 <param name="bartype" type="select" label="Display Type">
|
|
305 <option value="color_plot" >Standard</option>
|
|
306 <option value="bar_plot" >Bar Plot</option>
|
|
307 <option value="scatter_plot" >Scatter Plot</option>
|
|
308 </param>
|
|
309 </when>
|
|
310 <when value="column_categorical">
|
|
311 <param name="bartype" type="text" hidden="true" value="color_plot"/>
|
|
312 </when>
|
|
313 <when value="row_categorical">
|
|
314 <param name="bartype" type="text" hidden="true" value="color_plot"/>
|
|
315 </when>
|
|
316 </conditional>
|
|
317 </repeat>
|
|
318 <repeat name="hm_attribute" title="Heat Map Attributes">
|
|
319 <param name="attrbute_key" size="50" type="text" value="" label="Heat Map Attribute Key" help="For map level attributes. Enter the key (no spaces).">
|
|
320 <sanitizer invalid_char="_">
|
|
321 <valid initial="">
|
|
322 <add preset="string.letters"/>
|
|
323 <add preset="string.digits"/>
|
|
324 </valid>
|
|
325 <mapping initial="">
|
|
326 </mapping>
|
|
327 </sanitizer>
|
|
328 </param>
|
|
329 <param name="attrbute_value" size="50" type="text" label="Heat Map Attributes Value" help="For map level attributes. Enter the value (no spaces).">
|
|
330 <sanitizer invalid_char="_">
|
|
331 <valid initial="">
|
|
332 <add preset="string.letters"/>
|
|
333 <add preset="string.digits"/>
|
|
334 </valid>
|
|
335 <mapping initial="">
|
|
336 </mapping>
|
|
337 </sanitizer>
|
|
338 </param>
|
|
339 </repeat>
|
|
340 </inputs>
|
|
341 <outputs>
|
|
342 <data name="output" label='Heat_Map_$hmname' format="ngchm"/>
|
|
343 </outputs>
|
|
344 <tests>
|
|
345 <test>
|
|
346 <param name="inputmatrix" value="400x400.txt" />
|
|
347 <param name="hmname" value="testRun" />
|
|
348 <param name="$hmdesc" value="validateTool" />
|
|
349 <param name="summarymethod" value="Average" />
|
|
350 <param name="rowOrderMethod" value="Hierarchical" />
|
|
351 <param name="rowDistanceMeasure" value="Manhattan" />
|
|
352 <param name="rowAgglomerationMethod" value="Ward" />
|
|
353 <param name="columnOrderMethod" value="Hierarchical" />
|
|
354 <param name="columnDistanceMeasure" value="Manhattan" />
|
|
355 <param name="columnAgglomerationMethod" value="Ward" />
|
|
356 <output name="output" file="Galaxy400x400-noCovariates.ngchm" lines_diff="10" />
|
|
357
|
|
358 </test>
|
|
359 <!-- galaxy/test-data/ dir where the input and output file that should match tool output will be copied -->
|
|
360 </tests>
|
|
361 </tool>
|