diff feature_selection.xml @ 6:b0d554b38770 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit cd4a8b019168acd5a513c57a1b1f380622f230f6
author bgruening
date Sun, 01 Jul 2018 03:20:10 -0400
parents 2d681d0f9393
children 537c6763c018
line wrap: on
line diff
--- a/feature_selection.xml	Wed Jun 06 17:43:13 2018 -0400
+++ b/feature_selection.xml	Sun Jul 01 03:20:10 2018 -0400
@@ -36,7 +36,7 @@
 if input_type=="tabular":
     header = 'infer' if features_has_header else None
     column_option = params["input_options"]["column_selector_options_1"]["selected_column_selector_option"]
-    if column_option in ["by_index_number", "all_but_by_index_number"]:
+    if column_option in ["by_index_number", "all_but_by_index_number", "by_header_name", "all_but_by_header_name"]:
         c = params["input_options"]["column_selector_options_1"]["col1"]
     else:
         c = None
@@ -55,7 +55,7 @@
 ## Read labels
 header = 'infer' if params["input_options"]["header2"] else None
 column_option = params["input_options"]["column_selector_options_2"]["selected_column_selector_option2"]
-if column_option in ["by_index_number", "all_but_by_index_number"]:
+if column_option in ["by_index_number", "all_but_by_index_number", "by_header_name", "all_but_by_header_name"]:
     c = params["input_options"]["column_selector_options_2"]["col2"]
 else:
     c = None
@@ -212,6 +212,19 @@
             <param name="header2" value="True"/>
             <output name="outfile" file="feature_selection_result10"/>
         </test>
+        <test>
+            <param name="selected_algorithm" value="SelectKBest"/>
+            <param name="k" value="3"/>
+            <param name="infile1" value="test3.tabular" ftype="tabular"/>
+            <param name="header1" value="True"/>
+            <param name="selected_column_selector_option" value="all_but_by_header_name"/>
+            <param name="col1" value="target"/>
+            <param name="infile2" value="test3.tabular" ftype="tabular"/>
+            <param name="header2" value="True"/>
+            <param name="selected_column_selector_option2" value="by_header_name"/>
+            <param name="col2" value="target"/>
+            <output name="outfile" file="feature_selection_result11"/>
+        </test>
     </tests>
     <help>
         <![CDATA[