Mercurial > repos > bgruening > sklearn_feature_selection
diff feature_selection.xml @ 4:44e26f8a82c6 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
author | bgruening |
---|---|
date | Tue, 05 Jun 2018 06:46:40 -0400 |
parents | 3a1acc39b39b |
children | 2d681d0f9393 |
line wrap: on
line diff
--- a/feature_selection.xml Wed May 30 08:25:49 2018 -0400 +++ b/feature_selection.xml Tue Jun 05 06:46:40 2018 -0400 @@ -35,10 +35,15 @@ input_type = params["input_options"]["selected_input"] if input_type=="tabular": header = 'infer' if features_has_header else None - header = 'infer' if params["input_options"]["header1"] else None + column_option = params["input_options"]["column_selector_options_1"]["selected_column_selector_option"] + if column_option == "by_index_number": + c = params["input_options"]["column_selector_options_1"]["col1"] + else: + c = None X, input_df = read_columns( "$input_options.infile1", - "$input_options.col1", + c = c, + c_option = column_option, return_df = True, sep='\t', header=header, @@ -49,9 +54,15 @@ ## 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 == "by_index_number": + c = params["input_options"]["column_selector_options_2"]["col2"] +else: + c = None y = read_columns( "$input_options.infile2", - "$input_options.col2", + c = c, + c_option = column_option, sep='\t', header=header, parse_dates=True