comparison high_dim_visu.xml @ 5:569334568afa draft

"planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/gsc_high_dimension_visualization commit 1b98c85982a2a9f9df4b318f672b9b68cff66a93"
author artbio
date Mon, 02 Sep 2019 04:39:20 -0400
parents 8e17c31c536a
children 19bef589f876
comparison
equal deleted inserted replaced
4:8e17c31c536a 5:569334568afa
1 <tool id="high_dimensions_visualisation" name="Generate PCA, tSNE and HCPC" version="0.9.4"> 1 <tool id="high_dimensions_visualisation" name="Generate PCA, tSNE and HCPC" version="0.9.5">
2 <description>from highly dimensional expression data</description> 2 <description>from highly dimensional expression data</description>
3 <requirements> 3 <requirements>
4 <requirement type="package" version="1.6.2=r35h6115d3f_0">r-optparse</requirement> 4 <requirement type="package" version="1.6.2=r35h6115d3f_0">r-optparse</requirement>
5 <requirement type="package" version="1.42=r35h6115d3f_0">r-factominer</requirement> 5 <requirement type="package" version="1.42=r35h6115d3f_0">r-factominer</requirement>
6 <requirement type="package" version="1.0.5">r-factoextra</requirement> 6 <requirement type="package" version="1.0.5">r-factoextra</requirement>
7 <requirement type="package" version="0.15=r351he1b5a44_0">r-rtsne</requirement> 7 <requirement type="package" version="0.15=r351he1b5a44_0">r-rtsne</requirement>
8 <requirement type="package" version="0.4.7=r351h6115d3f_0">r-ggfortify</requirement> 8 <requirement type="package" version="0.4.7=r351h6115d3f_0">r-ggfortify</requirement>
9 <requirement type="package" version="1.1.9=r351h0357c0b_0">r-clusterr</requirement> 9 <requirement type="package" version="1.1.9=r351h0357c0b_0">r-clusterr</requirement>
10 <!--<requirement type="package" version="1.11.6=r351hc070d10_0">r-data.table</requirement>-->
10 </requirements> 11 </requirements>
11 <stdio> 12 <stdio>
12 <exit_code range="1:" level="fatal" description="Tool exception" /> 13 <exit_code range="1:" level="fatal" description="Tool exception" />
13 </stdio> 14 </stdio>
14 <command detect_errors="exit_code"><![CDATA[ 15 <command detect_errors="exit_code"><![CDATA[
51 --HCPC_itermax '$visualisation.HCPC_itermax' 52 --HCPC_itermax '$visualisation.HCPC_itermax'
52 --HCPC_min '$visualisation.HCPC_min' 53 --HCPC_min '$visualisation.HCPC_min'
53 --HCPC_max '$visualisation.HCPC_max' 54 --HCPC_max '$visualisation.HCPC_max'
54 --HCPC_clusterCA '$visualisation.HCPC_clusterCA' 55 --HCPC_clusterCA '$visualisation.HCPC_clusterCA'
55 --HCPC_kk '$visualisation.HCPC_kk' 56 --HCPC_kk '$visualisation.HCPC_kk'
57 --HCPC_cluster_description '$HCPC_cluster_description'
56 #if $visualisation.res_clustering == "yes": 58 #if $visualisation.res_clustering == "yes":
57 --HCPC_clust '$HCPC_clust' 59 --HCPC_clust '$HCPC_clust'
58 #end if 60 #end if
59 #end if 61 #end if
60 62
63 --PCA_x_axis '$visualisation.PCA_x_axis' 65 --PCA_x_axis '$visualisation.PCA_x_axis'
64 --PCA_y_axis '$visualisation.PCA_y_axis' 66 --PCA_y_axis '$visualisation.PCA_y_axis'
65 #end if 67 #end if
66 68
67 #if $visualisation.visu_choice == "HCPC" and $factor_condition.factor_choice == "Yes": 69 #if $visualisation.visu_choice == "HCPC" and $factor_condition.factor_choice == "Yes":
68 --mutual_info '$mutual_info' 70 --HCPC_mutual_info '$HCPC_mutual_info'
69 #end if 71 #end if
70 72
71 --pdf_out '$pdf_out' 73 --pdf_out '$pdf_out'
72 74
73 ]]></command> 75 ]]></command>
132 </when> 134 </when>
133 <when value="HCPC"> 135 <when value="HCPC">
134 <param name="HCPC_npc" value="5" type="integer" label="Number of principal components to keep" 136 <param name="HCPC_npc" value="5" type="integer" label="Number of principal components to keep"
135 help="The number of dimensions which are kept for HCPC analysis (default=5)" /> 137 help="The number of dimensions which are kept for HCPC analysis (default=5)" />
136 <param name="HCPC_ncluster" value="-1" type="integer" label="Number of clusters in Hierar. Clustering" 138 <param name="HCPC_ncluster" value="-1" type="integer" label="Number of clusters in Hierar. Clustering"
137 help="nb.clust, the number of clusters to consider in the hierarchical clustering. (default : -1, let HCPC to optimize the number)" /> 139 help="nb.clust - an integer. If 0, the tree is cut at the level the user clicks on (not working in Galaxy). If -1, the tree is
138 <param name="HCPC_metric" type="select" label="Dissimilarity metric" help="Metric to be used for calculating dissimilarities between observations, available 'euclidian' or 'manhattan'? " > 140 automatically cut at the suggested level (see details). If a (positive) integer, the tree is cut with nb.cluters clusters." />
139 <option value="euclidian" selected="true">euclidian</option> 141 <param name="HCPC_metric" type="select" label="Dissimilarity metric" help="Metric to be used for calculating dissimilarities between observations, can be 'euclidean' or 'manhattan' " >
142 <option value="euclidean" selected="true">euclidean</option>
140 <option value="manhattan">manhattan</option> 143 <option value="manhattan">manhattan</option>
141 </param> 144 </param>
142 <param name="HCPC_method" type="select" label="Clustering method" help="Clustering method between 'ward', 'average', 'single', 'complete', 'weighted' " > 145 <param name="HCPC_method" type="select" label="Clustering method" help="character string defining the clustering method.
146 The four methods implemented are 'average' ([unweighted pair-]group [arithMetic] average method, aka ‘UPGMA’),
147 'single' (single linkage), 'complete' (complete linkage), and 'ward' (Ward's method).
148 The default with this Galaxy tool is is 'ward'." >
143 <option value="ward" selected="true">ward</option> 149 <option value="ward" selected="true">ward</option>
144 <option value="average">average</option> 150 <option value="average">average</option>
145 <option value="single">single</option> 151 <option value="single">single</option>
146 <option value="complete">complete</option> 152 <option value="complete">complete</option>
147 <option value="weighted">weighted</option> 153 </param>
148 </param> 154 <param name="HCPC_consol" type="select" label="k-means consolidation" help="a boolean. If TRUE, a k-means consolidation is performed
149 <param name="HCPC_consol" type="select" label="k-means consolidation" help="If TRUE, a k-means consolidation is performed" > 155 (consolidation cannot be performed if kk is used and equals a number)." >
150 <option value="TRUE" selected="true">Yes</option> 156 <option value="TRUE" selected="true">Yes</option>
151 <option value="FALSE">False</option> 157 <option value="FALSE">False</option>
152 </param> 158 </param>
153 <param name="HCPC_itermax" value="10" type="integer" label="Maximum number of iterations for consolidation" 159 <param name="HCPC_itermax" value="10" type="integer" label="Maximum number of iterations for consolidation"
154 help=" (default=10)" /> 160 help="An integer. The maximum number of iterations for the consolidation. (default=10)" />
155 <param name="HCPC_min" value="3" type="integer" label="min number of clusters" 161 <param name="HCPC_min" value="3" type="integer" label="min number of clusters"
156 help=" The least possible number of clusters suggested (default=3)" /> 162 help="an integer. The least possible number of clusters suggested. (default=3)" />
157 <param name="HCPC_max" value="-1" type="text" label="max number of clusters" 163 <param name="HCPC_max" value="-1" type="text" label="max number of clusters"
158 help=" The higher possible number of clusters suggested, by default the minimum between 10 and the number of individuals divided by 2. (default=-1)" /> 164 help="The higher possible number of clusters suggested, by default the minimum between 10 and the number of individuals divided by 2. (default=-1)" />
159 <param name="HCPC_clusterCA" type="select" label="clusterCA, Clustering against rows or columns" help="default(rows)" > 165 <param name="HCPC_clusterCA" type="select" label="cluster.CA, Clustering against rows or columns"
166 help="A string equals to 'rows' or 'columns' for the clustering of Correspondence Analysis results.default(rows)">
160 <option value="rows" selected="true">Rows</option> 167 <option value="rows" selected="true">Rows</option>
161 <option value="cols">Columns</option> 168 <option value="cols">Columns</option>
162 </param> 169 </param>
163 <param name="HCPC_kk" value="-1" type="text" label="kk, Number of clusters used in a Kmeans preprocessing " 170 <param name="HCPC_kk" value="Inf" type="text" label="kk, Number of clusters used in a Kmeans preprocessing "
164 help="No k-means consolidation is done if a kk value is provided (default=-1)" /> 171 help="An integer corresponding to the number of clusters used in a Kmeans preprocessing before the
172 hierarchical clustering; the top of the hierarchical tree is then constructed from this partition.
173 This is very useful if the number of individuals is high. Note that consolidation cannot be performed
174 if kk is different from Inf and some graphics are not drawn. Inf is used by default and no preprocessing
175 is done, all the graphical outputs are then given." />
165 <param label="Return HCPC clustering table" name="res_clustering" type="select"> 176 <param label="Return HCPC clustering table" name="res_clustering" type="select">
166 <option value="no" selected="True">No</option> 177 <option value="no" selected="True">No</option>
167 <option value="yes">Yes</option> 178 <option value="yes">Yes</option>
168 </param> 179 </param>
169 </when> 180 </when>
182 <outputs> 193 <outputs>
183 <data name="pdf_out" format="pdf" label="${visualisation.visu_choice} of ${on_string}" /> 194 <data name="pdf_out" format="pdf" label="${visualisation.visu_choice} of ${on_string}" />
184 <data name="table_coordinates" format="tabular" label="Scatter plot coordinates from ${visualisation.visu_choice} of ${on_string}" > 195 <data name="table_coordinates" format="tabular" label="Scatter plot coordinates from ${visualisation.visu_choice} of ${on_string}" >
185 <filter>coord == 'yes'</filter> 196 <filter>coord == 'yes'</filter>
186 </data> 197 </data>
187 <data name="mutual_info" format="txt" label="External validation of clustering from ${visualisation.visu_choice} of ${on_string}" > 198 <data name="HCPC_mutual_info" format="txt" label="External validation of clustering from ${visualisation.visu_choice} of ${on_string}" >
188 <filter>visualisation['visu_choice'] == 'HCPC' and factor_condition['factor_choice'] == 'Yes'</filter> 199 <filter>visualisation['visu_choice'] == 'HCPC' and factor_condition['factor_choice'] == 'Yes'</filter>
189 </data> 200 </data>
190 <data name="HCPC_clust" format="tabular" label="Clustering table from ${visualisation.visu_choice} of ${on_string}" > 201 <data name="HCPC_clust" format="tabular" label="Clustering table from ${visualisation.visu_choice} of ${on_string}" >
191 <filter>visualisation['visu_choice'] == 'HCPC' and visualisation['res_clustering'] == 'yes'</filter> 202 <filter>visualisation['visu_choice'] == 'HCPC' and visualisation['res_clustering'] == 'yes'</filter>
192 </data> 203 </data>
204 <data name="HCPC_cluster_description" format="tabular" label="Cluster information from ${visualisation.visu_choice}" >
205 <filter>visualisation['visu_choice'] == 'HCPC' </filter>
206 </data>
193 </outputs> 207 </outputs>
194 <tests> 208 <tests>
209 <!-- test first (for developpers) -->
195 <!-- test PCA --> 210 <!-- test PCA -->
196 <test> 211 <test>
197 <param name="input" value="cpm_input.tsv" ftype="txt"/> 212 <param name="input" value="cpm_input.tsv" ftype="txt"/>
198 <param name="labels" value="yes" /> 213 <param name="labels" value="yes" />
199 <param name="visu_choice" value="PCA" /> 214 <param name="visu_choice" value="PCA" />
269 <param name="labels" value="yes" /> 284 <param name="labels" value="yes" />
270 <param name="visu_choice" value="HCPC" /> 285 <param name="visu_choice" value="HCPC" />
271 <param name="HCPC_npc" value="5"/> 286 <param name="HCPC_npc" value="5"/>
272 <param name="HCPC_ncluster" value="-1"/> 287 <param name="HCPC_ncluster" value="-1"/>
273 <output name="pdf_out" file="hcpc.labels.pdf" compare="sim_size" ftype="pdf"/> 288 <output name="pdf_out" file="hcpc.labels.pdf" compare="sim_size" ftype="pdf"/>
289 <output name="HCPC_cluster_description" file="hcpc.cluster_description.1.tab" ftype="tabular"/>
274 </test> 290 </test>
275 <!-- test factor contrasting on HCPC --> 291 <!-- test factor contrasting on HCPC -->
276 <test> 292 <test>
277 <param name="input" value="cpm_input.tsv" ftype="txt"/> 293 <param name="input" value="cpm_input.tsv" ftype="txt"/>
278 <param name="labels" value="no" /> 294 <param name="labels" value="no" />
281 <param name="HCPC_ncluster" value="-1"/> 297 <param name="HCPC_ncluster" value="-1"/>
282 <param name="res_clustering" value="yes"/> 298 <param name="res_clustering" value="yes"/>
283 <param name="factor_choice" value="Yes" /> 299 <param name="factor_choice" value="Yes" />
284 <param name="factor" value="factor.tsv" ftype="txt"/> 300 <param name="factor" value="factor.tsv" ftype="txt"/>
285 <output name="pdf_out" file="hcpc.nolabels.factor.pdf" compare="sim_size" ftype="pdf"/> 301 <output name="pdf_out" file="hcpc.nolabels.factor.pdf" compare="sim_size" ftype="pdf"/>
286 <output name="mutual_info" file="hcpc.factor.extval.txt" ftype="txt"/> 302 <output name="HCPC_mutual_info" file="hcpc.factor.extval.txt" ftype="txt"/>
287 <output name="HCPC_clust" file="hcpc.clusters.tab" ftype="tabular"/> 303 <output name="HCPC_clust" file="hcpc.clusters.tab" ftype="tabular"/>
304 <output name="HCPC_cluster_description" file="hcpc.cluster_description.1.tab" ftype="tabular"/>
288 </test> 305 </test>
289 <test> 306 <test>
290 <param name="input" value="cpm_input.tsv" ftype="txt"/> 307 <param name="input" value="cpm_input.tsv" ftype="txt"/>
291 <param name="labels" value="no" /> 308 <param name="labels" value="no" />
292 <param name="HCPC_npc" value="5"/> 309 <param name="HCPC_npc" value="5"/>
293 <param name="HCPC_ncluster" value="-1"/> 310 <param name="HCPC_ncluster" value="-1"/>
294 <param name="visu_choice" value="HCPC" /> 311 <param name="visu_choice" value="HCPC" />
295 <output name="pdf_out" file="hcpc.nolabels.pdf" compare="sim_size" ftype="pdf"/> 312 <output name="pdf_out" file="hcpc.nolabels.pdf" compare="sim_size" ftype="pdf"/>
313 <output name="HCPC_cluster_description" file="hcpc.cluster_description.1.tab" ftype="tabular"/>
296 </test> 314 </test>
297 <test> 315 <test>
298 <param name="input" value="cpm_input.tsv" ftype="txt"/> 316 <param name="input" value="cpm_input.tsv" ftype="txt"/>
299 <param name="labels" value="yes" /> 317 <param name="labels" value="yes" />
300 <param name="visu_choice" value="HCPC" /> 318 <param name="visu_choice" value="HCPC" />
302 <param name="HCPC_method" value="average"/> 320 <param name="HCPC_method" value="average"/>
303 <param name="HCPC_metric" value="manhattan"/> 321 <param name="HCPC_metric" value="manhattan"/>
304 <param name="HCPC_npc" value="4" /> 322 <param name="HCPC_npc" value="4" />
305 <output name="pdf_out" file="hcpc-2.labels.pdf" ftype="pdf"/> 323 <output name="pdf_out" file="hcpc-2.labels.pdf" ftype="pdf"/>
306 <output name="table_coordinates" file="hcpc-2.coord.tab" ftype="tabular"/> 324 <output name="table_coordinates" file="hcpc-2.coord.tab" ftype="tabular"/>
325 <output name="HCPC_cluster_description" file="hcpc.cluster_description.4.tab" ftype="tabular"/>
307 </test> 326 </test>
308 <test> 327 <test>
309 <param name="input" value="cpm_input.tsv" ftype="txt"/> 328 <param name="input" value="cpm_input.tsv" ftype="txt"/>
310 <param name="labels" value="yes" /> 329 <param name="labels" value="yes" />
311 <param name="visu_choice" value="HCPC" /> 330 <param name="visu_choice" value="HCPC" />
312 <param name="coord" value="yes" /> 331 <param name="coord" value="yes" />
313 <param name="HCPC_method" value="single"/> 332 <param name="HCPC_method" value="single"/>
314 <param name="HCPC_metric" value="euclidian"/> 333 <param name="HCPC_metric" value="euclidean"/>
315 <param name="HCPC_npc" value="4" /> 334 <param name="HCPC_npc" value="4" />
316 <param name="HCPC_clusterCA" value="cols" /> 335 <param name="HCPC_clusterCA" value="cols" />
317 <output name="pdf_out" file="hcpc-3.labels.pdf" compare="sim_size" ftype="pdf"/> 336 <output name="pdf_out" file="hcpc-3.labels.pdf" compare="sim_size" ftype="pdf"/>
318 <output name="table_coordinates" file="hcpc-3.coord.tab" ftype="tabular"/> 337 <output name="table_coordinates" file="hcpc-3.coord.tab" ftype="tabular"/>
338 <output name="HCPC_cluster_description" file="hcpc.cluster_description.5.tab" ftype="tabular"/>
319 </test> 339 </test>
320 <!-- test t-SNE --> 340 <!-- test t-SNE -->
321 <test> 341 <test>
322 <param name="input" value="cpm_input.tsv" ftype="txt"/> 342 <param name="input" value="cpm_input.tsv" ftype="txt"/>
323 <param name="labels" value="yes" /> 343 <param name="labels" value="yes" />