# HG changeset patch # User bgruening # Date 1528321227 14400 # Node ID 20cf67b621dffd56b97ba7aa466ab8519447d139 # Parent bb91e46f8a9b835ebf9aaec4cbae2d342dda5a20 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 64158f357e708f0b60d2669d92d614f7aee34c0e diff -r bb91e46f8a9b -r 20cf67b621df generalized_linear.xml --- a/generalized_linear.xml Tue Jun 05 06:43:16 2018 -0400 +++ b/generalized_linear.xml Wed Jun 06 17:40:27 2018 -0400 @@ -35,7 +35,7 @@ #if $selected_tasks.selected_algorithms.input_options.selected_input=="tabular": header = 'infer' if params["selected_tasks"]["selected_algorithms"]["input_options"]["header1"] else None column_option = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_1"]["selected_column_selector_option"] -if column_option == "by_index_number": +if column_option in ["by_index_number", "all_but_by_index_number"]: c = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_1"]["col1"] else: c = None @@ -53,7 +53,7 @@ header = 'infer' if params["selected_tasks"]["selected_algorithms"]["input_options"]["header2"] else None column_option = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_2"]["selected_column_selector_option2"] -if column_option == "by_index_number": +if column_option in ["by_index_number", "all_but_by_index_number"]: c = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_2"]["col2"] else: c = None @@ -240,7 +240,8 @@ - + + diff -r bb91e46f8a9b -r 20cf67b621df main_macros.xml --- a/main_macros.xml Tue Jun 05 06:43:16 2018 -0400 +++ b/main_macros.xml Wed Jun 06 17:40:27 2018 -0400 @@ -7,6 +7,9 @@ if c_option == 'by_index_number': cols = list(map(lambda x: x - 1, c)) data = data.iloc[:,cols] + if c_option == 'all_but_by_index_number': + cols = list(map(lambda x: x - 1, c)) + data.drop(data.columns[cols], axis=1, inplace=True) y = data.values if return_df: return y, data @@ -443,16 +446,17 @@ - - - --> + + + +