annotate mda_heatmap_gen.xml @ 43:2aa91f21a24e draft default tip

Uploaded
author insilico-bob
date Thu, 29 Apr 2021 17:17:24 +0000
parents 2f57ac512f46
children
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" ?>
43
2aa91f21a24e Uploaded
insilico-bob
parents: 42
diff changeset
2 <tool id="mda_heatmap_gen" name="NG-CHM Generator" version="2.14.0">
40
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." />
41
8acca16f3921 Uploaded
insilico-bob
parents: 40
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)." optional="false"/>
8acca16f3921 Uploaded
insilico-bob
parents: 40
diff changeset
23 <sanitizer>
8acca16f3921 Uploaded
insilico-bob
parents: 40
diff changeset
24 <valid initial="string.printable">
40
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
25 <remove value="&quot;"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
26 <remove value="&apos;"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
27 </valid>
41
8acca16f3921 Uploaded
insilico-bob
parents: 40
diff changeset
28 </sanitizer>
8acca16f3921 Uploaded
insilico-bob
parents: 40
diff changeset
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."/>
8acca16f3921 Uploaded
insilico-bob
parents: 40
diff changeset
30 <sanitizer>
8acca16f3921 Uploaded
insilico-bob
parents: 40
diff changeset
31 <valid initial="string.printable">
40
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
32 <remove value="&quot;"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
33 <remove value="&apos;"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
34 </valid>
41
8acca16f3921 Uploaded
insilico-bob
parents: 40
diff changeset
35 </sanitizer>
40
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
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.">
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
37 <option value="average">Average</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
38 <option value="sample">Sample</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
39 <option value="mode">Mode</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
40 </param>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
41 <conditional name="d_rows">
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
42 <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
43 <option value="Hierarchical">Hierarchical Clustering</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
44 <option value="Original">Original Order</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
45 <option value="Random">Random</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
46 </param>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
47 <when value="Hierarchical">
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
48 <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
49 <option value="euclidean">Euclidean</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
50 <!-- <option value="binary">Binary</option> ** breaks dendrogram -->
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
51 <option value="manhattan">Manhattan</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
52 <option value="maximum">Maximum</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
53 <!-- <option value="canberra">Canberra</option> ** breaks dendrogram -->
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
54 <option value="minkowski">Minkowski</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
55 <!-- <option value="correlation">Correlation</option> ** breaks dendrogram -->
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
56 </param>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
57 <param name="rowAgglomerationMethod" type="select" label="Row Clustering Method" help="For clustering, select algorithm for building clusters.">
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
58 <option value="average">Average Linkage</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
59 <option value="complete">Complete Linkage</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
60 <option value="single">Single Linkage</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
61 <option value="ward" selected="true">Ward</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
62 <option value="mcquitty">Mcquitty</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
63 <!-- <option value="median">Median</option> ** breaks dendrogram
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
64 <option value="centroid">Centroid</option> ** breaks dendrogram -->
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
65 </param>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
66 </when>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
67 <when value="Original">
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
68 <param name="rowDistanceMeasure" type="text" size="0" hidden="true" value="n/a"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
69 <param name="rowAgglomerationMethod" type="text" size="0" hidden="true" value="n/a"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
70 </when>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
71 <when value="Random">
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
72 <param name="rowDistanceMeasure" type="text" size="0" hidden="true" value="n/a"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
73 <param name="rowAgglomerationMethod" type="text" size="0" hidden="true" value="n/a"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
74 </when>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
75 </conditional>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
76 <conditional name="d_cols">
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
77 <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
78 <option value="Hierarchical">Hierarchical Clustering</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
79 <option value="Original">Original Order</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
80 <option value="Random">Random</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
81 </param>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
82 <when value="Hierarchical">
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
83 <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
84 <option value="euclidean">Euclidean</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
85 <!-- <option value="binary">Binary</option> ** breaks dendrogram -->
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
86 <option value="manhattan">Manhattan</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
87 <option value="maximum">Maximum</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
88 <!-- <option value="canberra">Canberra</option> ** breaks dendrogram -->
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
89 <option value="minkowski">Minkowski</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
90 <!-- <option value="correlation">Correlation</option> ** breaks dendrogram -->
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
91 </param>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
92 <param name="columnAgglomerationMethod" type="select" label="Column Clustering Method" help="For clustering, select algorithm for building clusters.">
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
93 <option value="average">Average Linkage</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
94 <option value="complete">Complete Linkage</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
95 <option value="single">Single Linkage</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
96 <option value="ward" selected="true">Ward</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
97 <option value="mcquitty">Mcquitty</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
98 <!-- <option value="median">Median</option> ** breaks dendrogram
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
99 <option value="centroid">Centroid</option> ** breaks dendrogram -->
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
100 </param>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
101 </when>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
102 <when value="Original">
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
103 <param name="columnDistanceMeasure" type="text" size="0" hidden="true" value="n/a"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
104 <param name="columnAgglomerationMethod" type="text" size="0" hidden="true" value="n/a"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
105 </when>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
106 <when value="Random">
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
107 <param name="columnDistanceMeasure" type="text" size="0" hidden="true" value="n/a"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
108 <param name="columnAgglomerationMethod" type="text" size="0" hidden="true" value="n/a"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
109 </when>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
110 </conditional>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
111 <repeat name="operations" title="Covariate Bars">
41
8acca16f3921 Uploaded
insilico-bob
parents: 40
diff changeset
112 <param name="class_name" size="25" type="text" value="" label="Covariate Name" optional="false" help="Covariate heat map display label.">
8acca16f3921 Uploaded
insilico-bob
parents: 40
diff changeset
113 <sanitizer>
8acca16f3921 Uploaded
insilico-bob
parents: 40
diff changeset
114 <valid initial="string.printable">
40
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
115 <remove value="&quot;"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
116 <remove value="&apos;"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
117 </valid>
41
8acca16f3921 Uploaded
insilico-bob
parents: 40
diff changeset
118 </sanitizer>
40
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
119 </param>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
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."/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
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.">
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
122 <option value="row_discrete" >Row Categorical</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
123 <option value="row_continuous" >Row Continuous</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
124 <option value="column_discrete" >Column Categorical</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
125 <option value="column_continuous" >Column Continuous</option>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
126 </param>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
127 </repeat>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
128 </inputs>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
129 <outputs>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
130 <data name="output" label='Heat_Map_$hmname' format="ngchm"/>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
131 </outputs>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
132 <tests>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
133 <test>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
134 <param name="inputmatrix" value="400x400.txt" />
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
135 <param name="hmname" value="testRun" />
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
136 <param name="$hmdesc" value="validateTool" />
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
137 <param name="summarymethod" value="Average" />
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
138 <param name="rowOrderMethod" value="Hierarchical" />
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
139 <param name="rowDistanceMeasure" value="Manhattan" />
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
140 <param name="rowAgglomerationMethod" value="Ward" />
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
141 <param name="columnOrderMethod" value="Hierarchical" />
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
142 <param name="columnDistanceMeasure" value="Manhattan" />
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
143 <param name="columnAgglomerationMethod" value="Ward" />
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
144 <output name="output" file="Galaxy400x400-noCovariates.ngchm" lines_diff="10" />
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
145
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
146 </test>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
147 <!-- 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
148 </tests>
8f8ab332a050 Uploaded
insilico-bob
parents:
diff changeset
149 </tool>