# HG changeset patch
# User bgruening
# Date 1528195437 14400
# Node ID 4845b689cbf45ee1228f225c5527ccbb800c07fe
# Parent 98d91207d60c71e3b6808c3f019719422f4e3664
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
diff -r 98d91207d60c -r 4845b689cbf4 main_macros.xml
--- a/main_macros.xml Wed May 30 08:23:55 2018 -0400
+++ b/main_macros.xml Tue Jun 05 06:43:57 2018 -0400
@@ -2,12 +2,11 @@
0.9
-def read_columns(f, c, return_df=False, **args):
+def read_columns(f, c=None, c_option='by_index_number', return_df=False, **args):
data = pandas.read_csv(f, **args)
- cols = c.split (',')
- cols = map(int, cols)
- cols = list(map(lambda x: x - 1, cols))
- data = data.iloc[:,cols]
+ if c_option == 'by_index_number':
+ cols = list(map(lambda x: x - 1, c))
+ data = data.iloc[:,cols]
y = data.values
if return_df:
return y, data
@@ -17,7 +16,6 @@
## generate an instance for one of sklearn.feature_selection classes
-## must call "@COLUMNS_FUNCTION@"
def feature_selector(inputs):
selector = inputs["selected_algorithm"]
@@ -428,16 +426,37 @@
-
+
-
-
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -470,10 +489,14 @@
-
+
+
+
-
+
+
+