Repository 'sklearn_generalized_linear'
hg clone https://toolshed.g2.bx.psu.edu/repos/bgruening/sklearn_generalized_linear

Changeset 4:fd6c50f21cd0 (2018-03-22)
Previous changeset 3:be8d2100f07b (2018-03-13) Next changeset 5:f93e7b870023 (2018-04-10)
Commit message:
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit cea052cf3b8dd4f3620253bd222e126de32e7466
modified:
generalized_linear.xml
main_macros.xml
b
diff -r be8d2100f07b -r fd6c50f21cd0 generalized_linear.xml
--- a/generalized_linear.xml Tue Mar 13 06:32:19 2018 -0400
+++ b/generalized_linear.xml Thu Mar 22 13:47:44 2018 -0400
[
@@ -33,22 +33,24 @@
 options = params["selected_tasks"]["selected_algorithms"]["options"]
 
 #if $selected_tasks.selected_algorithms.input_options.selected_input=="tabular":
+header = 'infer' if params["selected_tasks"]["selected_algorithms"]["input_options"]["header1"] else None
 X = read_columns(
         "$selected_tasks.selected_algorithms.input_options.infile1",
         "$selected_tasks.selected_algorithms.input_options.col1",
         sep='\t',
-        header=None,
+        header=header,
         parse_dates=True
 )
 #else:
 X = mmread(open("$selected_tasks.selected_algorithms.input_options.infile1", 'r'))
 #end if
 
+header = 'infer' if params["selected_tasks"]["selected_algorithms"]["input_options"]["header2"] else None
 y = read_columns(
         "$selected_tasks.selected_algorithms.input_options.infile2",
         "$selected_tasks.selected_algorithms.input_options.col2",
         sep='\t',
-        header=None,
+        header=header,
         parse_dates=True
 )
 
b
diff -r be8d2100f07b -r fd6c50f21cd0 main_macros.xml
--- a/main_macros.xml Tue Mar 13 06:32:19 2018 -0400
+++ b/main_macros.xml Thu Mar 22 13:47:44 2018 -0400
b
@@ -336,8 +336,10 @@
 
   <xml name="samples_tabular" token_multiple1="False" token_multiple2="False">
     <param name="infile1" type="data" format="tabular" label="Training samples dataset:"/>
+    <param name="header1" type="boolean" optional="True" truevalue="booltrue" falsevalue="boolfalse" checked="False" label="Does the dataset contain header:" />
     <param name="col1" multiple="@MULTIPLE1@" type="data_column" data_ref="infile1" label="Select target column(s):"/>
     <param name="infile2" type="data" format="tabular" label="Dataset containing class labels:"/>
+    <param name="header2" type="boolean" optional="True" truevalue="booltrue" falsevalue="boolfalse" checked="False" label="Does the dataset contain header:" />
     <param name="col2" multiple="@MULTIPLE2@" type="data_column" data_ref="infile2" label="Select target column(s):"/>
     <yield/>
   </xml>