comparison ml_visualization_ex.xml @ 16:a536d2736c2d draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 3c1e6c72303cfd8a5fd014734f18402b97f8ecb5
author bgruening
date Fri, 22 Sep 2023 16:40:38 +0000
parents 9c19cf3c4ea0
children
comparison
equal deleted inserted replaced
15:6fabdcde0214 16:a536d2736c2d
19 #elif $plotting_selection.plot_type == 'feature_importances' 19 #elif $plotting_selection.plot_type == 'feature_importances'
20 --estimator '$plotting_selection.infile_estimator' 20 --estimator '$plotting_selection.infile_estimator'
21 --infile1 '$plotting_selection.infile1' 21 --infile1 '$plotting_selection.infile1'
22 #elif $plotting_selection.plot_type == 'keras_plot_model' 22 #elif $plotting_selection.plot_type == 'keras_plot_model'
23 --model_config '$plotting_selection.infile_model_config' 23 --model_config '$plotting_selection.infile_model_config'
24 #elif $plotting_selection.plot_type == 'classification_confusion_matrix'
25 --true_labels '$plotting_selection.infile_true'
26 --predicted_labels '$plotting_selection.infile_predicted'
27 --plot_color '$plotting_selection.plot_color'
28 --title '$plotting_selection.title'
24 #end if 29 #end if
25 ]]> 30 ]]>
26 </command> 31 </command>
27 <configfiles> 32 <configfiles>
28 <inputs name="inputs" /> 33 <inputs name="inputs" />
34 <option value="pr_curve">2-class / multpi-label Precison Recall curve</option> 39 <option value="pr_curve">2-class / multpi-label Precison Recall curve</option>
35 <option value="roc_curve">2-class / multi-label Receiver Operating Characteristic (ROC) curve</option> 40 <option value="roc_curve">2-class / multi-label Receiver Operating Characteristic (ROC) curve</option>
36 <option value="rfecv_gridscores">Number of features vs. Recursive Feature Elimination gridscores with corss-validation</option> 41 <option value="rfecv_gridscores">Number of features vs. Recursive Feature Elimination gridscores with corss-validation</option>
37 <option value="feature_importances">Feature Importances plot</option> 42 <option value="feature_importances">Feature Importances plot</option>
38 <option value="keras_plot_model">keras plot model - plot configuration of a neural network model</option> 43 <option value="keras_plot_model">keras plot model - plot configuration of a neural network model</option>
44 <option value="classification_confusion_matrix">Confusion matrix for classes</option>
39 </param> 45 </param>
40 <when value="learning_curve"> 46 <when value="learning_curve">
41 <param name="infile1" type="data" format="tabular" label="Select the dataset containing values for plotting learning curve." help="This dataset should be the output of tool model_validation->learning_curve." /> 47 <param name="infile1" type="data" format="tabular" label="Select the dataset containing values for plotting learning curve." help="This dataset should be the output of tool model_validation->learning_curve." />
42 <param name="plot_std_err" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="false" label="Whether to plot standard error bar?" /> 48 <param name="plot_std_err" type="boolean" truevalue="booltrue" falsevalue="boolfalse" optional="true" checked="false" label="Whether to plot standard error bar?" />
43 <param name="title" type="text" value="" optional="true" label="Plot title" help="Optional. If change is desired." /> 49 <param name="title" type="text" value="" optional="true" label="Plot title" help="Optional. If change is desired." />
93 </when> 99 </when>
94 <when value="keras_plot_model"> 100 <when value="keras_plot_model">
95 <param name="infile_model_config" type="data" format="json" label="Select the JSON dataset containing configuration for a neural network model" /> 101 <param name="infile_model_config" type="data" format="json" label="Select the JSON dataset containing configuration for a neural network model" />
96 <param name="title" type="hidden" value="" optional="true" label="Plot title" help="Optional. If change is desired." /> 102 <param name="title" type="hidden" value="" optional="true" label="Plot title" help="Optional. If change is desired." />
97 <param name="plot_format" type="hidden" value="png" label="The output format and library" /> 103 <param name="plot_format" type="hidden" value="png" label="The output format and library" />
104 </when>
105 <when value="classification_confusion_matrix">
106 <param name="infile_true" type="data" format="tabular" label="Select dataset containing true labels" />
107 <param name="header_true" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolfalse" checked="false" label="Does the dataset contain header:" />
108 <conditional name="column_selector_options_true">
109 <expand macro="samples_column_selector_options" multiple="true" column_option="selected_column_selector_option" col_name="col1" infile="infile_true" />
110 </conditional>
111
112 <param name="infile_predicted" type="data" format="tabular" label="Select dataset containing predicted labels" />
113 <param name="header_predicted" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolfalse" checked="false" label="Does the dataset contain header:" />
114 <param name="title" type="text" value="Confusion matrix between true and predicted labels" label="Plot title" />
115 <param name="plot_format" type="hidden" value="png" label="The output format and library" />
116 <param name="plot_color" type="select" label="Choose plot color">
117 <option value="Greys">Greys</option>
118 <option value="Purples">Purples</option>
119 <option value="Blues">Blues</option>
120 <option value="Greens" selected="true">Greens</option>
121 <option value="Oranges">Oranges</option>
122 <option value="Reds">Reds</option>
123 <option value="Summer">Summer</option>
124 <option value="Autumn">Autumn</option>
125 <option value="RdYlGn">RdYlGn</option>
126 <option value="Spectral">Spectral</option>
127 <option value="winter">winter</option>
128 </param>
98 </when> 129 </when>
99 </conditional> 130 </conditional>
100 </inputs> 131 </inputs>
101 <outputs> 132 <outputs>
102 <data name="output" format="html" from_work_dir="output" label="${plotting_selection.plot_type} plot on ${on_string}"> 133 <data name="output" format="html" from_work_dir="output" label="${plotting_selection.plot_type} plot on ${on_string}">
137 </test> 168 </test>
138 <test> 169 <test>
139 <param name="plot_type" value="keras_plot_model" /> 170 <param name="plot_type" value="keras_plot_model" />
140 <param name="infile_model_config" value="deepsear_1feature.json" ftype="json" /> 171 <param name="infile_model_config" value="deepsear_1feature.json" ftype="json" />
141 <output name="output" file="ml_vis05.png" compare="sim_size" delta="20000" /> 172 <output name="output" file="ml_vis05.png" compare="sim_size" delta="20000" />
173 </test>
174 <test>
175 <param name="plot_type" value="classification_confusion_matrix" />
176 <param name="infile_true" value="ml_confusion_true.tabular" ftype="tabular" />
177 <param name="header_true" value="False" />
178 <param name="selected_column_selector_option" value="all_columns" />
179 <param name="infile_predicted" value="ml_confusion_predicted.tabular" ftype="tabular" />
180 <param name="header_predicted" value="False" />
181 <param name="title" value="Confusion matrix" />
182 <param name="plot_color" value="winter" />
183 <output name="output" file="ml_confusion_viz.png" compare="sim_size" />
184 </test>
185 <test>
186 <param name="plot_type" value="classification_confusion_matrix" />
187 <param name="infile_true" value="true_header.tabular" ftype="tabular" />
188 <param name="header_true" value="True" />
189 <param name="selected_column_selector_option" value="all_columns" />
190 <param name="infile_predicted" value="predicted_header.tabular" ftype="tabular" />
191 <param name="header_predicted" value="True" />
192 <param name="title" value="Confusion matrix" />
193 <param name="plot_color" value="winter" />
194 <output name="output" file="ml_confusion_viz.png" compare="sim_size" />
142 </test> 195 </test>
143 </tests> 196 </tests>
144 <help> 197 <help>
145 <![CDATA[ 198 <![CDATA[
146 **What it does** 199 **What it does**