Mercurial > repos > bgruening > sklearn_generalized_linear
comparison generalized_linear.xml @ 4:fd6c50f21cd0 draft
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit cea052cf3b8dd4f3620253bd222e126de32e7466
author | bgruening |
---|---|
date | Thu, 22 Mar 2018 13:47:44 -0400 |
parents | 3326dd4f1e8d |
children | 44699d79d908 |
comparison
equal
deleted
inserted
replaced
3:be8d2100f07b | 4:fd6c50f21cd0 |
---|---|
31 | 31 |
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 X = read_columns( | 37 X = read_columns( |
37 "$selected_tasks.selected_algorithms.input_options.infile1", | 38 "$selected_tasks.selected_algorithms.input_options.infile1", |
38 "$selected_tasks.selected_algorithms.input_options.col1", | 39 "$selected_tasks.selected_algorithms.input_options.col1", |
39 sep='\t', | 40 sep='\t', |
40 header=None, | 41 header=header, |
41 parse_dates=True | 42 parse_dates=True |
42 ) | 43 ) |
43 #else: | 44 #else: |
44 X = mmread(open("$selected_tasks.selected_algorithms.input_options.infile1", 'r')) | 45 X = mmread(open("$selected_tasks.selected_algorithms.input_options.infile1", 'r')) |
45 #end if | 46 #end if |
46 | 47 |
48 header = 'infer' if params["selected_tasks"]["selected_algorithms"]["input_options"]["header2"] else None | |
47 y = read_columns( | 49 y = read_columns( |
48 "$selected_tasks.selected_algorithms.input_options.infile2", | 50 "$selected_tasks.selected_algorithms.input_options.infile2", |
49 "$selected_tasks.selected_algorithms.input_options.col2", | 51 "$selected_tasks.selected_algorithms.input_options.col2", |
50 sep='\t', | 52 sep='\t', |
51 header=None, | 53 header=header, |
52 parse_dates=True | 54 parse_dates=True |
53 ) | 55 ) |
54 | 56 |
55 my_class = getattr(sklearn.linear_model, algorithm) | 57 my_class = getattr(sklearn.linear_model, algorithm) |
56 estimator = my_class(**options) | 58 estimator = my_class(**options) |