# HG changeset patch # User bgruening # Date 1528321419 14400 # Node ID 5621f2be9fbc8fc1059a4c60ed59edfeacf45930 # Parent d147f912b882bb98baca40a83dec5494edd8703a planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 64158f357e708f0b60d2669d92d614f7aee34c0e diff -r d147f912b882 -r 5621f2be9fbc clf_metrics.xml --- a/clf_metrics.xml Tue Jun 05 06:47:08 2018 -0400 +++ b/clf_metrics.xml Wed Jun 06 17:43:39 2018 -0400 @@ -28,7 +28,7 @@ header='infer' if params["clf_metrics"].get("header1", None) else None column_option = params["clf_metrics"]["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["clf_metrics"]["column_selector_options_1"]["col1"] else: c = None @@ -43,7 +43,7 @@ header='infer' if params["clf_metrics"].get("header2", None) else None column_option = params["clf_metrics"]["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["clf_metrics"]["column_selector_options_2"]["col2"] else: c = None diff -r d147f912b882 -r 5621f2be9fbc main_macros.xml --- a/main_macros.xml Tue Jun 05 06:47:08 2018 -0400 +++ b/main_macros.xml Wed Jun 06 17:43:39 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 @@ - - - --> + + + +