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