annotate mda_heatmap_gen.xml @ 40:8f8ab332a050 draft

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