Mercurial > repos > bgruening > sklearn_feature_selection
annotate feature_selection.xml @ 5:de0950f27aba draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 64158f357e708f0b60d2669d92d614f7aee34c0e
author | bgruening |
---|---|
date | Wed, 06 Jun 2018 17:38:50 -0400 |
parents | 73c12f296b1c |
children | dc574d9778bd |
rev | line source |
---|---|
2
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
1 <tool id="sklearn_feature_selection" name="Feature Selection" version="@VERSION@.1"> |
0
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
2 <description>module, including univariate filter selection methods and recursive feature elimination algorithm</description> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
3 <macros> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
4 <import>main_macros.xml</import> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
5 </macros> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
6 <expand macro="python_requirements"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
7 <expand macro="macro_stdio"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
8 <version_command>echo "@VERSION@"</version_command> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
9 <command> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
10 <![CDATA[ |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
11 python "$feature_selection_script" '$inputs' |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
12 ]]> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
13 </command> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
14 <configfiles> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
15 <inputs name="inputs" /> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
16 <configfile name="feature_selection_script"> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
17 <![CDATA[ |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
18 import sys |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
19 import json |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
20 import pandas |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
21 import pickle |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
22 import numpy as np |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
23 import sklearn.feature_selection |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
24 from sklearn import svm, linear_model, ensemble |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
25 |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
26 @COLUMNS_FUNCTION@ |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
27 |
3
0dc80ab8ec21
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 4ed8c4f6ef9ece81797a398b17a99bbaf49a6978
bgruening
parents:
2
diff
changeset
|
28 @FEATURE_SELECTOR_FUNCTION@ |
0dc80ab8ec21
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 4ed8c4f6ef9ece81797a398b17a99bbaf49a6978
bgruening
parents:
2
diff
changeset
|
29 |
0
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
30 input_json_path = sys.argv[1] |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
31 params = json.load(open(input_json_path, "r")) |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
32 |
2
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
33 ## Read features |
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
34 features_has_header = params["input_options"]["header1"] |
0
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
35 input_type = params["input_options"]["selected_input"] |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
36 if input_type=="tabular": |
2
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
37 header = 'infer' if features_has_header else None |
4
73c12f296b1c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
bgruening
parents:
3
diff
changeset
|
38 column_option = params["input_options"]["column_selector_options_1"]["selected_column_selector_option"] |
5
de0950f27aba
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 64158f357e708f0b60d2669d92d614f7aee34c0e
bgruening
parents:
4
diff
changeset
|
39 if column_option in ["by_index_number", "all_but_by_index_number"]: |
4
73c12f296b1c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
bgruening
parents:
3
diff
changeset
|
40 c = params["input_options"]["column_selector_options_1"]["col1"] |
73c12f296b1c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
bgruening
parents:
3
diff
changeset
|
41 else: |
73c12f296b1c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
bgruening
parents:
3
diff
changeset
|
42 c = None |
2
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
43 X, input_df = read_columns( |
0
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
44 "$input_options.infile1", |
4
73c12f296b1c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
bgruening
parents:
3
diff
changeset
|
45 c = c, |
73c12f296b1c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
bgruening
parents:
3
diff
changeset
|
46 c_option = column_option, |
2
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
47 return_df = True, |
0
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
48 sep='\t', |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
49 header=header, |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
50 parse_dates=True |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
51 ) |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
52 else: |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
53 X = mmread(open("$input_options.infile1", 'r')) |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
54 |
2
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
55 ## Read labels |
0
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
56 header = 'infer' if params["input_options"]["header2"] else None |
4
73c12f296b1c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
bgruening
parents:
3
diff
changeset
|
57 column_option = params["input_options"]["column_selector_options_2"]["selected_column_selector_option2"] |
5
de0950f27aba
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 64158f357e708f0b60d2669d92d614f7aee34c0e
bgruening
parents:
4
diff
changeset
|
58 if column_option in ["by_index_number", "all_but_by_index_number"]: |
4
73c12f296b1c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
bgruening
parents:
3
diff
changeset
|
59 c = params["input_options"]["column_selector_options_2"]["col2"] |
73c12f296b1c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
bgruening
parents:
3
diff
changeset
|
60 else: |
73c12f296b1c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
bgruening
parents:
3
diff
changeset
|
61 c = None |
0
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
62 y = read_columns( |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
63 "$input_options.infile2", |
4
73c12f296b1c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
bgruening
parents:
3
diff
changeset
|
64 c = c, |
73c12f296b1c
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 97c4f22cdcfa6cddeeffc7b102c418a7ff12a888
bgruening
parents:
3
diff
changeset
|
65 c_option = column_option, |
0
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
66 sep='\t', |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
67 header=header, |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
68 parse_dates=True |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
69 ) |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
70 y=y.ravel() |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
71 |
2
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
72 ## Create feature selector |
3
0dc80ab8ec21
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 4ed8c4f6ef9ece81797a398b17a99bbaf49a6978
bgruening
parents:
2
diff
changeset
|
73 new_selector = feature_selector(params['feature_selection_algorithms']) |
0dc80ab8ec21
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 4ed8c4f6ef9ece81797a398b17a99bbaf49a6978
bgruening
parents:
2
diff
changeset
|
74 if params['feature_selection_algorithms']['selected_algorithm'] != 'SelectFromModel' or \ |
0dc80ab8ec21
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 4ed8c4f6ef9ece81797a398b17a99bbaf49a6978
bgruening
parents:
2
diff
changeset
|
75 'extra_estimator' not in params['feature_selection_algorithms'] or \ |
0dc80ab8ec21
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 4ed8c4f6ef9ece81797a398b17a99bbaf49a6978
bgruening
parents:
2
diff
changeset
|
76 params['feature_selection_algorithms']['extra_estimator']['has_estimator'] != 'no_load' : |
2
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
77 new_selector.fit(X, y) |
0
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
78 |
2
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
79 ## Transform to select features |
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
80 selected_names = None |
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
81 if "$select_methods.selected_method" == "fit_transform": |
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
82 res = new_selector.transform(X) |
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
83 if features_has_header: |
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
84 selected_names = input_df.columns[new_selector.get_support(indices=True)] |
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
85 else: |
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
86 res = new_selector.get_support(params["select_methods"]["indices"]) |
0
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
87 |
2
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
88 res = pandas.DataFrame(res, columns = selected_names) |
0
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
89 res.to_csv(path_or_buf="$outfile", sep='\t', index=False) |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
90 |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
91 |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
92 ]]> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
93 </configfile> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
94 </configfiles> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
95 <inputs> |
2
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
96 <expand macro="feature_selection_all" /> |
0
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
97 <expand macro="feature_selection_methods" /> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
98 <expand macro="sl_mixed_input"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
99 </inputs> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
100 <outputs> |
2
5a06c81f044d
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 79fe42239dcf077b13f85cbcd6c6e30d7e1e4832
bgruening
parents:
0
diff
changeset
|
101 <data format="tabular" name="outfile"/> |
0
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
102 </outputs> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
103 <tests> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
104 <test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
105 <param name="selected_algorithm" value="SelectFromModel"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
106 <param name="has_estimator" value="no"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
107 <param name="new_estimator" value="ensemble.RandomForestRegressor(n_estimators = 1000, random_state = 42)"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
108 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
109 <param name="header1" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
110 <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
111 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
112 <param name="col2" value="1"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
113 <param name="header2" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
114 <output name="outfile" file="feature_selection_result01"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
115 </test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
116 <test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
117 <param name="selected_algorithm" value="GenericUnivariateSelect"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
118 <param name="param" value="20"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
119 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
120 <param name="header1" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
121 <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
122 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
123 <param name="col2" value="1"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
124 <param name="header2" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
125 <output name="outfile" file="feature_selection_result02"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
126 </test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
127 <test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
128 <param name="selected_algorithm" value="SelectPercentile"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
129 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
130 <param name="header1" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
131 <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
132 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
133 <param name="col2" value="1"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
134 <param name="header2" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
135 <output name="outfile" file="feature_selection_result03"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
136 </test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
137 <test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
138 <param name="selected_algorithm" value="SelectKBest"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
139 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
140 <param name="header1" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
141 <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
142 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
143 <param name="col2" value="1"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
144 <param name="header2" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
145 <output name="outfile" file="feature_selection_result04"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
146 </test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
147 <test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
148 <param name="selected_algorithm" value="SelectFpr"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
149 <param name="alpha" value="0.05"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
150 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
151 <param name="header1" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
152 <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
153 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
154 <param name="col2" value="1"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
155 <param name="header2" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
156 <output name="outfile" file="feature_selection_result05"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
157 </test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
158 <test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
159 <param name="selected_algorithm" value="SelectFdr"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
160 <param name="alpha" value="0.05"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
161 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
162 <param name="header1" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
163 <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
164 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
165 <param name="col2" value="1"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
166 <param name="header2" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
167 <output name="outfile" file="feature_selection_result06"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
168 </test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
169 <test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
170 <param name="selected_algorithm" value="SelectFwe"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
171 <param name="alpha" value="0.05"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
172 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
173 <param name="header1" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
174 <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
175 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
176 <param name="col2" value="1"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
177 <param name="header2" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
178 <output name="outfile" file="feature_selection_result07"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
179 </test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
180 <test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
181 <param name="selected_algorithm" value="RFE"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
182 <param name="has_estimator" value="no"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
183 <param name="new_estimator" value="ensemble.RandomForestRegressor(n_estimators = 1000, random_state = 42)"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
184 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
185 <param name="header1" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
186 <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
187 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
188 <param name="col2" value="1"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
189 <param name="header2" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
190 <output name="outfile" file="feature_selection_result08"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
191 </test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
192 <test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
193 <param name="selected_algorithm" value="RFECV"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
194 <param name="has_estimator" value="no"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
195 <param name="new_estimator" value="ensemble.RandomForestRegressor(n_estimators = 1000, random_state = 42)"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
196 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
197 <param name="header1" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
198 <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
199 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
200 <param name="col2" value="1"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
201 <param name="header2" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
202 <output name="outfile" file="feature_selection_result09"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
203 </test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
204 <test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
205 <param name="selected_algorithm" value="VarianceThreshold"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
206 <param name="threshold" value="0.1"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
207 <param name="infile1" value="regression_X.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
208 <param name="header1" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
209 <param name="col1" value="1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
210 <param name="infile2" value="regression_y.tabular" ftype="tabular"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
211 <param name="col2" value="1"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
212 <param name="header2" value="True"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
213 <output name="outfile" file="feature_selection_result10"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
214 </test> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
215 </tests> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
216 <help> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
217 <![CDATA[ |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
218 **What it does** |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
219 This tool provides several loss, score, and utility functions to measure classification performance. Some metrics might require probability estimates of the positive class, confidence values, or binary decisions values. This tool is based on |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
220 sklearn.metrics package. |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
221 For information about classification metric functions and their parameter settings please refer to `Scikit-learn classification metrics`_. |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
222 |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
223 .. _`Scikit-learn classification metrics`: http://scikit-learn.org/stable/modules/model_evaluation.html#classification-metrics |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
224 ]]> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
225 </help> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
226 <expand macro="sklearn_citation"/> |
2bbacfaadb5c
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 7a31960686122d7e53054fef4996525f04ebd254
bgruening
parents:
diff
changeset
|
227 </tool> |