13
|
1 <?xml version="1.0" encoding="UTF-8" ?>
|
34
|
2 <tool id="mda_heatmap_gen" name="NG-CHM Generator" version="2.3">
|
|
3 <requirements>
|
|
4 <requirement type="package" version="3.4.1">r-base</requirement>
|
|
5 </requirements>
|
|
6 <description>Create Clustered Heat Maps</description>
|
|
7 <command interpreter="bash" detect_errors="aggressive">$__tool_directory__/heatmap.sh "standard" "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__;$__tool_data_path__/' 0 0 labels labels 'None'
|
13
|
8 #for $op in $operations
|
|
9 ${op.class_name}
|
|
10 ${op.repeatinput.file_name}
|
|
11 ${op.cat}
|
|
12 #end for
|
|
13 '$output'
|
|
14 </command>
|
|
15 <stdio>
|
|
16 <exit_code range="1:" level="fatal" />
|
|
17 </stdio>
|
|
18 <inputs>
|
33
|
19 <param name="inputmatrix" type="data" format="Tabular" label="Input Data Matrix" help="Tab delimited text file with row labels, column labels, and data." />
|
34
|
20 <param name="hmname" size="40" type="text" value="Heat_Map_name" label="Heat Map Name" help="Short Name for heat map (no spaces)."/>
|
|
21 <sanitizer>
|
|
22 <valid>
|
|
23 <add preset="string.printable"/>
|
|
24 <!-- <add value="string.letters"/>
|
|
25 <add value="string.digits"/>
|
|
26 <add value="-"/>
|
|
27 <add value="_"/>
|
|
28 -->
|
|
29 <remove value="""/>
|
|
30 <remove value="'"/>
|
|
31 <remove value=" "/>
|
|
32 </valid>
|
|
33 </sanitizer>
|
33
|
34 <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."/>
|
34
|
35 <sanitizer>
|
|
36 <valid>
|
|
37 <add preset="string.printable"/>
|
|
38 <add value="string.letters"/>
|
|
39 <add value="string.digits"/>
|
|
40 <add value="-"/>
|
|
41 <add value="_"/>
|
|
42 <remove value="""/>
|
|
43 <remove value="'"/>
|
|
44 <remove value=" "/>
|
|
45 </valid>
|
|
46 </sanitizer>
|
33
|
47 <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.">
|
32
|
48 <option value="average">Average</option>
|
|
49 <option value="sample">Sample</option>
|
|
50 <option value="mode">Mode</option>
|
13
|
51 </param>
|
33
|
52 <conditional name="d_rows">
|
|
53 <param name="rowOrderMethod" type="select" label="Row ordering method" help="Determine if rows should be clustered, randomized, or remain as is.">
|
13
|
54 <option value="Hierarchical">Hierarchical Clustering</option>
|
|
55 <option value="Original">Original Order</option>
|
|
56 <option value="Random">Random</option>
|
|
57 </param>
|
|
58 <when value="Hierarchical">
|
33
|
59 <param name="rowDistanceMeasure" type="select" label="Row Distance Metric" help="For clustering, select the method of determining distance between rows">
|
32
|
60 <option value="euclidean">Euclidean</option>
|
|
61 <option value="binary">Binary</option>
|
|
62 <option value="manhattan">Manhattan</option>
|
|
63 <option value="maximum">Maximum</option>
|
|
64 <option value="canberra">Canberra</option>
|
|
65 <option value="minkowski">Minkowski</option>
|
|
66 <option value="correlation">Correlation</option>
|
|
67 </param>
|
33
|
68 <param name="rowAgglomerationMethod" type="select" label="Row Clustering Method" help="For clustering, select algorithm for building clusters.">
|
32
|
69 <option value="average">Average Linkage</option>
|
|
70 <option value="complete">Complete Linkage</option>
|
|
71 <option value="single">Single Linkage</option>
|
|
72 <option value="ward" selected="true">Ward</option>
|
|
73 <option value="mcquitty">Mcquitty</option>
|
|
74 <option value="median">Median</option>
|
|
75 <option value="centroid">Centroid</option>
|
|
76 </param>
|
13
|
77 </when>
|
|
78 <when value="Original">
|
32
|
79 <param name="rowDistanceMeasure" type="text" size="0" hidden="true" value="n/a"/>
|
|
80 <param name="rowAgglomerationMethod" type="text" size="0" hidden="true" value="n/a"/>
|
13
|
81 </when>
|
|
82 <when value="Random">
|
32
|
83 <param name="rowDistanceMeasure" type="text" size="0" hidden="true" value="n/a"/>
|
|
84 <param name="rowAgglomerationMethod" type="text" size="0" hidden="true" value="n/a"/>
|
13
|
85 </when>
|
|
86 </conditional>
|
|
87 <conditional name="d_cols">
|
33
|
88 <param name="columnOrderMethod" type="select" label="Column ordering method" help="Determine if columns should be clustered, randomized, or remain as is.">
|
13
|
89 <option value="Hierarchical">Hierarchical Clustering</option>
|
|
90 <option value="Original">Original Order</option>
|
|
91 <option value="Random">Random</option>
|
|
92 </param>
|
|
93 <when value="Hierarchical">
|
33
|
94 <param name="columnDistanceMeasure" type="select" label="Column Distance Metric" help="For clustering, select the method of determining distance between columns">
|
32
|
95 <option value="euclidean">Euclidean</option>
|
|
96 <option value="binary">Binary</option>
|
|
97 <option value="manhattan">Manhattan</option>
|
|
98 <option value="maximum">Maximum</option>
|
|
99 <option value="canberra">Canberra</option>
|
|
100 <option value="minkowski">Minkowski</option>
|
|
101 <option value="correlation">Correlation</option>
|
|
102 </param>
|
33
|
103 <param name="columnAgglomerationMethod" type="select" label="Column Clustering Method" help="For clustering, select algorithm for building clusters.">
|
32
|
104 <option value="average">Average Linkage</option>
|
|
105 <option value="complete">Complete Linkage</option>
|
|
106 <option value="single">Single Linkage</option>
|
|
107 <option value="ward" selected="true">Ward</option>
|
|
108 <option value="mcquitty">Mcquitty</option>
|
|
109 <option value="median">Median</option>
|
|
110 <option value="centroid">Centroid</option>
|
|
111 </param>
|
13
|
112 </when>
|
|
113 <when value="Original">
|
32
|
114 <param name="columnDistanceMeasure" type="text" size="0" hidden="true" value="n/a"/>
|
|
115 <param name="columnAgglomerationMethod" type="text" size="0" hidden="true" value="n/a"/>
|
13
|
116 </when>
|
|
117 <when value="Random">
|
32
|
118 <param name="columnDistanceMeasure" type="text" size="0" hidden="true" value="n/a"/>
|
|
119 <param name="columnAgglomerationMethod" type="text" size="0" hidden="true" value="n/a"/>
|
13
|
120 </when>
|
|
121 </conditional>
|
|
122 <repeat name="operations" title="Covariate Bars">
|
34
|
123 <param name="class_name" size="25" type="text" value="" label="Covariate Name" help="Covariate heat map display label.">
|
|
124 <sanitizer>
|
|
125 <valid>
|
|
126 <add preset="string.printable"/>
|
|
127 <remove value="""/>
|
|
128 <remove value="'"/>
|
|
129 <remove value=" "/>
|
13
|
130 </valid>
|
|
131 </sanitizer>
|
|
132 </param>
|
34
|
133 <param name="repeatinput" type="data" format="Tabular" label="Covariate File" help="Tab delimited text file with row or column label and covariate value on each line."/>
|
33
|
134 <param name="cat" type="select" label="Axis Covariate Type" help="Identify the covariate as belonging to rows or columns and containing categorical or continuous values.">
|
32
|
135 <option value="row_categorical" >Row Categorical</option>
|
|
136 <option value="row_continuous" >Row Continuous</option>
|
|
137 <option value="column_categorical" >Column Categorical</option>
|
|
138 <option value="column_continuous" >Column Continuous</option>
|
13
|
139 </param>
|
|
140 </repeat>
|
|
141 </inputs>
|
|
142 <outputs>
|
32
|
143 <data name="output" label='Heat_Map_$hmname' format="ngchm"/>
|
13
|
144 </outputs>
|
|
145 <tests>
|
|
146 <test>
|
|
147 <param name="inputmatrix" value="400x400.txt" />
|
|
148 <param name="hmname" value="testRun" />
|
|
149 <param name="$hmdesc" value="validateTool" />
|
32
|
150 <param name="summarymethod" value="Average" />
|
13
|
151 <param name="rowOrderMethod" value="Hierarchical" />
|
32
|
152 <param name="rowDistanceMeasure" value="Manhattan" />
|
|
153 <param name="rowAgglomerationMethod" value="Ward" />
|
13
|
154 <param name="columnOrderMethod" value="Hierarchical" />
|
32
|
155 <param name="columnDistanceMeasure" value="Manhattan" />
|
|
156 <param name="columnAgglomerationMethod" value="Ward" />
|
13
|
157 <output name="output" file="Galaxy400x400-noCovariates.ngchm" lines_diff="10" />
|
|
158
|
|
159 </test>
|
|
160 <!-- galaxy/test-data/ dir where the input and output file that should match tool output will be copied -->
|
|
161 </tests>
|
|
162 </tool>
|