Mercurial > repos > bgruening > sklearn_generalized_linear
comparison generalized_linear.xml @ 10:44699d79d908 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
author | bgruening |
---|---|
date | Tue, 05 Jun 2018 06:47:46 -0400 |
parents | fd6c50f21cd0 |
children | 6cf4b82c72bc |
comparison
equal
deleted
inserted
replaced
9:717ab7f22435 | 10:44699d79d908 |
---|---|
32 algorithm = params["selected_tasks"]["selected_algorithms"]["selected_algorithm"] | 32 algorithm = params["selected_tasks"]["selected_algorithms"]["selected_algorithm"] |
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"] | |
38 if column_option == "by_index_number": | |
39 c = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_1"]["col1"] | |
40 else: | |
41 c = None | |
37 X = read_columns( | 42 X = read_columns( |
38 "$selected_tasks.selected_algorithms.input_options.infile1", | 43 "$selected_tasks.selected_algorithms.input_options.infile1", |
39 "$selected_tasks.selected_algorithms.input_options.col1", | 44 c = c, |
45 c_option = column_option, | |
40 sep='\t', | 46 sep='\t', |
41 header=header, | 47 header=header, |
42 parse_dates=True | 48 parse_dates=True |
43 ) | 49 ) |
44 #else: | 50 #else: |
45 X = mmread(open("$selected_tasks.selected_algorithms.input_options.infile1", 'r')) | 51 X = mmread(open("$selected_tasks.selected_algorithms.input_options.infile1", 'r')) |
46 #end if | 52 #end if |
47 | 53 |
48 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"] | |
56 if column_option == "by_index_number": | |
57 c = params["selected_tasks"]["selected_algorithms"]["input_options"]["column_selector_options_2"]["col2"] | |
58 else: | |
59 c = None | |
49 y = read_columns( | 60 y = read_columns( |
50 "$selected_tasks.selected_algorithms.input_options.infile2", | 61 "$selected_tasks.selected_algorithms.input_options.infile2", |
51 "$selected_tasks.selected_algorithms.input_options.col2", | 62 c = c, |
63 c_option = column_option, | |
52 sep='\t', | 64 sep='\t', |
53 header=header, | 65 header=header, |
54 parse_dates=True | 66 parse_dates=True |
55 ) | 67 ) |
56 | 68 |