Mercurial > repos > bgruening > sklearn_generalized_linear
comparison generalized_linear.xml @ 11:6cf4b82c72bc draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 64158f357e708f0b60d2669d92d614f7aee34c0e
author | bgruening |
---|---|
date | Wed, 06 Jun 2018 17:44:20 -0400 |
parents | 44699d79d908 |
children | 513405ebad8b |
comparison
equal
deleted
inserted
replaced
10:44699d79d908 | 11:6cf4b82c72bc |
---|---|
33 options = params["selected_tasks"]["selected_algorithms"]["options"] | 33 options = params["selected_tasks"]["selected_algorithms"]["options"] |
34 | 34 |
35 #if $selected_tasks.selected_algorithms.input_options.selected_input=="tabular": | 35 #if $selected_tasks.selected_algorithms.input_options.selected_input=="tabular": |
36 header = 'infer' if params["selected_tasks"]["selected_algorithms"]["input_options"]["header1"] else None | 36 header = 'infer' if params["selected_tasks"]["selected_algorithms"]["input_options"]["header1"] else None |
37 column_option = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_1"]["selected_column_selector_option"] | 37 column_option = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_1"]["selected_column_selector_option"] |
38 if column_option == "by_index_number": | 38 if column_option in ["by_index_number", "all_but_by_index_number"]: |
39 c = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_1"]["col1"] | 39 c = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_1"]["col1"] |
40 else: | 40 else: |
41 c = None | 41 c = None |
42 X = read_columns( | 42 X = read_columns( |
43 "$selected_tasks.selected_algorithms.input_options.infile1", | 43 "$selected_tasks.selected_algorithms.input_options.infile1", |
51 X = mmread(open("$selected_tasks.selected_algorithms.input_options.infile1", 'r')) | 51 X = mmread(open("$selected_tasks.selected_algorithms.input_options.infile1", 'r')) |
52 #end if | 52 #end if |
53 | 53 |
54 header = 'infer' if params["selected_tasks"]["selected_algorithms"]["input_options"]["header2"] else None | 54 header = 'infer' if params["selected_tasks"]["selected_algorithms"]["input_options"]["header2"] else None |
55 column_option = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_2"]["selected_column_selector_option2"] | 55 column_option = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_2"]["selected_column_selector_option2"] |
56 if column_option == "by_index_number": | 56 if column_option in ["by_index_number", "all_but_by_index_number"]: |
57 c = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_2"]["col2"] | 57 c = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_2"]["col2"] |
58 else: | 58 else: |
59 c = None | 59 c = None |
60 y = read_columns( | 60 y = read_columns( |
61 "$selected_tasks.selected_algorithms.input_options.infile2", | 61 "$selected_tasks.selected_algorithms.input_options.infile2", |
238 </outputs> | 238 </outputs> |
239 <tests> | 239 <tests> |
240 <test> | 240 <test> |
241 <param name="infile1" value="regression_train.tabular" ftype="tabular"/> | 241 <param name="infile1" value="regression_train.tabular" ftype="tabular"/> |
242 <param name="infile2" value="regression_train.tabular" ftype="tabular"/> | 242 <param name="infile2" value="regression_train.tabular" ftype="tabular"/> |
243 <param name="col1" value="1,2,3,4,5"/> | 243 <param name="selected_column_selector_option" value="all_but_by_index_number"/> |
244 <param name="col1" value="6"/> | |
244 <param name="col2" value="6"/> | 245 <param name="col2" value="6"/> |
245 <param name="selected_task" value="train"/> | 246 <param name="selected_task" value="train"/> |
246 <param name="selected_algorithm" value="SGDRegressor"/> | 247 <param name="selected_algorithm" value="SGDRegressor"/> |
247 <param name="random_state" value="10"/> | 248 <param name="random_state" value="10"/> |
248 <output name="outfile_fit" file="glm_model01" compare="sim_size" delta="500"/> | 249 <output name="outfile_fit" file="glm_model01" compare="sim_size" delta="500"/> |