diff ml_visualization_ex.xml @ 13:0ce71d73c014 draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 315f8d8ceb046add190163991f361a3bf63e57f5
author bgruening
date Thu, 26 Mar 2026 19:31:47 +0000
parents 6c787aeeac06
children
line wrap: on
line diff
--- a/ml_visualization_ex.xml	Mon Oct 02 08:27:46 2023 +0000
+++ b/ml_visualization_ex.xml	Thu Mar 26 19:31:47 2026 +0000
@@ -137,60 +137,82 @@
         </data>
     </outputs>
     <tests>
-        <test>
-            <param name="plot_type" value="roc_curve" />
-            <param name="infile1" value="y_true.tabular" ftype="tabular" />
-            <param name="infile2" value="y_score.tabular" ftype="tabular" />
+        <test expect_num_outputs="1">
+            <conditional name="plotting_selection">
+                <param name="plot_type" value="roc_curve" />
+                <param name="infile1" value="y_true.tabular" ftype="tabular" />
+                <param name="infile2" value="y_score.tabular" ftype="tabular" />
+            </conditional>
             <output name="output" file="ml_vis04.html" compare="sim_size" />
         </test>
-        <test>
-            <param name="plot_type" value="feature_importances" />
-            <param name="infile_estimator" value="best_estimator_.h5mlm" ftype="h5mlm" />
-            <param name="infile1" value="regression_X.tabular" ftype="tabular" />
-            <param name="selected_column_selector_option" value="all_columns" />
+        <test expect_num_outputs="1">
+            <conditional name="plotting_selection">
+                <param name="plot_type" value="feature_importances" />
+                <param name="infile_estimator" value="best_estimator_.h5mlm" ftype="h5mlm" />
+                <param name="infile1" value="regression_X.tabular" ftype="tabular" />
+                <conditional name="column_selector_options">
+                    <param name="selected_column_selector_option" value="all_columns" />
+                </conditional>
+            </conditional>
             <output name="output" file="ml_vis01.html" compare="sim_size" />
         </test>
-        <test>
-            <param name="plot_type" value="learning_curve" />
-            <param name="infile1" value="mv_result03.tabular" ftype="tabular" />
+        <test expect_num_outputs="1">
+            <conditional name="plotting_selection">
+                <param name="plot_type" value="learning_curve" />
+                <param name="infile1" value="mv_result03.tabular" ftype="tabular" />
+            </conditional>
             <output name="output" file="ml_vis02.html" compare="sim_size" />
         </test>
-        <test>
-            <param name="plot_type" value="pr_curve" />
-            <param name="infile1" value="y_true.tabular" ftype="tabular" />
-            <param name="infile2" value="y_score.tabular" ftype="tabular" />
+        <test expect_num_outputs="1">
+            <conditional name="plotting_selection">
+                <param name="plot_type" value="pr_curve" />
+                <param name="infile1" value="y_true.tabular" ftype="tabular" />
+                <param name="infile2" value="y_score.tabular" ftype="tabular" />
+            </conditional>
             <output name="output" file="ml_vis03.html" compare="sim_size" />
         </test>
-        <test>
-            <param name="plot_type" value="rfecv_gridscores" />
-            <param name="infile1" value="grid_scores_.tabular" ftype="tabular" />
+        <test expect_num_outputs="1">
+            <conditional name="plotting_selection">
+                <param name="plot_type" value="rfecv_gridscores" />
+                <param name="infile1" value="grid_scores_.tabular" ftype="tabular" />
+            </conditional>
             <output name="output" file="ml_vis05.html" compare="sim_size" />
         </test>
-        <test>
-            <param name="plot_type" value="keras_plot_model" />
-            <param name="infile_model_config" value="deepsear_1feature.json" ftype="json" />
+        <test expect_num_outputs="1">
+            <conditional name="plotting_selection">
+                <param name="plot_type" value="keras_plot_model" />
+                <param name="infile_model_config" value="deepsear_1feature.json" ftype="json" />
+            </conditional>
             <output name="output" file="ml_vis05.png" compare="sim_size" delta="20000" />
         </test>
-        <test>
-            <param name="plot_type" value="classification_confusion_matrix" />
-            <param name="infile_true" value="ml_confusion_true.tabular" ftype="tabular" />
-            <param name="header_true" value="False" />
-            <param name="selected_column_selector_option" value="all_columns" />
-            <param name="infile_predicted" value="ml_confusion_predicted.tabular" ftype="tabular" />
-            <param name="header_predicted" value="False" />
-            <param name="title" value="Confusion matrix" />
-            <param name="plot_color" value="winter" />
+        <test expect_num_outputs="1">
+            <conditional name="plotting_selection">
+                <param name="plot_type" value="classification_confusion_matrix" />
+                <param name="infile_true" value="ml_confusion_true.tabular" ftype="tabular" />
+                <param name="header_true" value="False" />
+                <conditional name="column_selector_options_true">
+                    <param name="selected_column_selector_option" value="all_columns" />
+                </conditional>
+                <param name="infile_predicted" value="ml_confusion_predicted.tabular" ftype="tabular" />
+                <param name="header_predicted" value="False" />
+                <param name="title" value="Confusion matrix" />
+                <param name="plot_color" value="winter" />
+            </conditional>
             <output name="output" file="ml_confusion_viz.png" compare="sim_size" />
         </test>
-        <test>
-            <param name="plot_type" value="classification_confusion_matrix" />
-            <param name="infile_true" value="true_header.tabular" ftype="tabular" />
-            <param name="header_true" value="True" />
-            <param name="selected_column_selector_option" value="all_columns" />
-            <param name="infile_predicted" value="predicted_header.tabular" ftype="tabular" />
-            <param name="header_predicted" value="True" />
-            <param name="title" value="Confusion matrix" />
-            <param name="plot_color" value="winter" />
+        <test expect_num_outputs="1">
+            <conditional name="plotting_selection">
+                <param name="plot_type" value="classification_confusion_matrix" />
+                <param name="infile_true" value="true_header.tabular" ftype="tabular" />
+                <param name="header_true" value="True" />
+                <conditional name="column_selector_options_true">
+                    <param name="selected_column_selector_option" value="all_columns" />
+                </conditional>
+                <param name="infile_predicted" value="predicted_header.tabular" ftype="tabular" />
+                <param name="header_predicted" value="True" />
+                <param name="title" value="Confusion matrix" />
+                <param name="plot_color" value="winter" />
+            </conditional>
             <output name="output" file="ml_confusion_viz.png" compare="sim_size" />
         </test>
     </tests>