Mercurial > repos > bgruening > sklearn_build_pipeline
annotate pipeline.xml @ 7:99038af8deda draft
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
author | bgruening |
---|---|
date | Sun, 30 Dec 2018 01:52:15 -0500 |
parents | 52c4e0ef580a |
children | 913ee94945f3 |
rev | line source |
---|---|
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
1 <tool id="sklearn_build_pipeline" name="Pipeline Builder" version="@VERSION@"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
2 <description>constructs a list of transforms and a final estimator</description> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
3 <macros> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
4 <import>main_macros.xml</import> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
5 </macros> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
6 <expand macro="python_requirements"> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
7 <requirement type="package" version="0.6">skrebate</requirement> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
8 <requirement type="package" version="0.4.2">imbalanced-learn</requirement> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
9 </expand> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
10 <expand macro="macro_stdio"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
11 <version_command>echo "@VERSION@"</version_command> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
12 <command> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
13 <![CDATA[ |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
14 python "$sklearn_pipeline_script" '$inputs' |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
15 ]]> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
16 </command> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
17 <configfiles> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
18 <inputs name="inputs" /> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
19 <configfile name="sklearn_pipeline_script"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
20 <![CDATA[ |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
21 import json |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
22 import pprint |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
23 import skrebate |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
24 import imblearn |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
25 from imblearn import under_sampling, over_sampling, combine |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
26 from imblearn.pipeline import Pipeline as imbPipeline |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
27 from sklearn import (preprocessing, svm, linear_model, ensemble, naive_bayes, |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
28 tree, neighbors, decomposition, kernel_approximation, cluster) |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
29 from sklearn.pipeline import Pipeline |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
30 |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
31 with open('$__tool_directory__/sk_whitelist.json', 'r') as f: |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
32 sk_whitelist = json.load(f) |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
33 exec(open('$__tool_directory__/utils.py').read(), globals()) |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
34 |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
35 warnings.filterwarnings('ignore') |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
36 |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
37 safe_eval = SafeEval() |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
38 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
39 input_json_path = sys.argv[1] |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
40 with open(input_json_path, 'r') as param_handler: |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
41 params = json.load(param_handler) |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
42 |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
43 #if $final_estimator.estimator_selector.selected_module == 'customer_estimator': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
44 params['final_estimator']['estimator_selector']['c_estimator'] =\ |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
45 '$final_estimator.estimator_selector.c_estimator' |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
46 #end if |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
47 |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
48 pipeline_steps = [] |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
49 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
50 def get_component(input_json, check_none=False): |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
51 is_imblearn = False |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
52 if input_json['component_type'] == 'None': |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
53 if not check_none: |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
54 return None, False |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
55 else: |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
56 sys.exit("The pre-processing component type can't be None when the number of components is greater than 1.") |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
57 if input_json['component_type'] == 'pre_processor': |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
58 preprocessor = input_json['pre_processors']['selected_pre_processor'] |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
59 pre_processor_options = input_json['pre_processors']['options'] |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
60 my_class = getattr(preprocessing, preprocessor) |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
61 obj = my_class(**pre_processor_options) |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
62 elif input_json['component_type'] == 'feature_selection': |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
63 obj = feature_selector(input_json['fs_algorithm_selector']) |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
64 elif input_json['component_type'] == 'decomposition': |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
65 algorithm = input_json['matrix_decomposition_selector']['select_algorithm'] |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
66 obj = getattr(decomposition, algorithm)() |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
67 options = input_json['matrix_decomposition_selector']['text_params'].strip() |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
68 if options != '': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
69 options = safe_eval( 'dict(' + options + ')' ) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
70 obj.set_params(**options) |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
71 elif input_json['component_type'] == 'kernel_approximation': |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
72 algorithm = input_json['kernel_approximation_selector']['select_algorithm'] |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
73 obj = getattr(kernel_approximation, algorithm)() |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
74 options = input_json['kernel_approximation_selector']['text_params'].strip() |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
75 if options != '': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
76 options = safe_eval( 'dict(' + options + ')' ) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
77 obj.set_params(**options) |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
78 elif input_json['component_type'] == 'FeatureAgglomeration': |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
79 algorithm = input_json['FeatureAgglomeration_selector']['select_algorithm'] |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
80 obj = getattr(cluster, algorithm)() |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
81 options = input_json['FeatureAgglomeration_selector']['text_params'].strip() |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
82 if options != '': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
83 options = safe_eval( 'dict(' + options + ')' ) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
84 obj.set_params(**options) |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
85 elif input_json['component_type'] == 'skrebate': |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
86 algorithm = input_json['skrebate_selector']['select_algorithm'] |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
87 if algorithm == 'TuRF': |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
88 obj = getattr(skrebate, algorithm)(core_algorithm='ReliefF') |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
89 else: |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
90 obj = getattr(skrebate, algorithm)() |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
91 options = input_json['skrebate_selector']['text_params'].strip() |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
92 if options != '': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
93 options = safe_eval( 'dict(' + options + ')' ) |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
94 obj.set_params(**options) |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
95 elif input_json['component_type'] == 'imblearn': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
96 is_imblearn = True |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
97 algorithm = input_json['imblearn_selector']['select_algorithm'] |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
98 if algorithm == 'over_sampling.SMOTENC': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
99 obj = over_sampling.SMOTENC(categorical_features=[]) |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
100 else: |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
101 globals = algorithm.split('.') |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
102 mod, klass = globals[0], globals[1] |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
103 obj = getattr(getattr(imblearn, mod), klass)() |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
104 options = input_json['imblearn_selector']['text_params'].strip() |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
105 if options != '': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
106 options = safe_eval( 'dict(' + options + ')' ) |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
107 obj.set_params(**options) |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
108 if 'n_jobs' in obj.get_params(): |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
109 obj.set_params( n_jobs=N_JOBS ) |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
110 return obj, is_imblearn |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
111 |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
112 has_imblearn = False |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
113 if len(params['pipeline_component']) == 1: |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
114 step_obj, is_imblearn = get_component( params['pipeline_component'][0]['component_selector']) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
115 if step_obj: |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
116 pipeline_steps.append( ('preprocessing_1', step_obj) ) |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
117 if is_imblearn: |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
118 has_imblearn = True |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
119 else: |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
120 for i, c in enumerate(params['pipeline_component']): |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
121 step_obj, is_imblearn = get_component( c['component_selector'], check_none=True ) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
122 pipeline_steps.append( ('preprocessing_' + str(i+1), step_obj) ) |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
123 if is_imblearn: |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
124 has_imblearn = True |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
125 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
126 # Set up final estimator and add to pipeline. |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
127 estimator_json = params['final_estimator']['estimator_selector'] |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
128 if estimator_json['selected_module'] == 'none': |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
129 if len(pipeline_steps) == 0: |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
130 sys.exit("No pipeline steps specified!") |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
131 else: # turn the last pre-process component to final estimator |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
132 pipeline_steps[-1] = ('estimator', pipeline_steps[-1][-1]) |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
133 else: |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
134 estimator = get_estimator(estimator_json) |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
135 pipeline_steps.append( ('estimator', estimator) ) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
136 |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
137 if has_imblearn: |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
138 pipeline = imbPipeline(pipeline_steps) |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
139 else: |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
140 pipeline = Pipeline(pipeline_steps) |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
141 pprint.pprint(pipeline.named_steps) |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
142 |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
143 with open('$outfile', 'wb') as out_handler: |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
144 pickle.dump(pipeline, out_handler, pickle.HIGHEST_PROTOCOL) |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
145 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
146 ]]> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
147 </configfile> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
148 </configfiles> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
149 <inputs> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
150 <repeat name="pipeline_component" min="1" max="5" title="Pre-processing step"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
151 <conditional name="component_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
152 <param name="component_type" type="select" label="Choose the type of transformation:"> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
153 <option value="None" selected="true">None</option> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
154 <option value="pre_processor">Sklearn Preprocessor</option> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
155 <option value="feature_selection">Feature Selection</option> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
156 <option value="decomposition">Matrix Decomposition</option> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
157 <option value="kernel_approximation">Kernel Approximation</option> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
158 <option value="FeatureAgglomeration">Agglomerate Features</option> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
159 <option value="skrebate">SK-rebate feature selection</option> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
160 <option value="imblearn">imbalanced-learn sampling</option> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
161 </param> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
162 <when value="None"/> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
163 <when value="pre_processor"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
164 <conditional name="pre_processors"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
165 <expand macro="sparse_preprocessors_ext" /> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
166 <expand macro="sparse_preprocessor_options_ext" /> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
167 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
168 </when> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
169 <when value="feature_selection"> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
170 <expand macro="feature_selection_pipeline"/> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
171 </when> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
172 <when value="decomposition"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
173 <expand macro="matrix_decomposition_all"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
174 </when> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
175 <when value="kernel_approximation"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
176 <expand macro="kernel_approximation_all"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
177 </when> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
178 <when value="FeatureAgglomeration"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
179 <expand macro="FeatureAgglomeration"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
180 </when> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
181 <when value="skrebate"> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
182 <expand macro="skrebate"/> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
183 </when> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
184 <when value="imblearn"> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
185 <expand macro="imbalanced_learn_sampling"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
186 </when> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
187 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
188 </repeat> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
189 <section name="final_estimator" title="Final Estimator" expanded="true"> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
190 <conditional name="estimator_selector"> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
191 <param name="selected_module" type="select" label="Choose the module that contains target estimator:" > |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
192 <expand macro="estimator_module_options"> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
193 <option value="customer_estimator">Load a customer estimator</option> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
194 <option value="none">none -- The last component of pre-processing step will turn to a final estimator</option> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
195 </expand> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
196 </param> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
197 <expand macro="estimator_suboptions"> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
198 <when value="customer_estimator"> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
199 <param name="c_estimator" type="data" format="zip" label="Choose the dataset containing the customer estimator or pipeline:"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
200 </when> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
201 <when value="none"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
202 </expand> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
203 </conditional> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
204 </section> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
205 </inputs> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
206 <outputs> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
207 <data format="zip" name="outfile"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
208 </outputs> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
209 <tests> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
210 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
211 <repeat name="pipeline_component"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
212 <conditional name="component_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
213 <param name="component_type" value="pre_processor"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
214 <conditional name="pre_processors"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
215 <param name="selected_pre_processor" value="RobustScaler"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
216 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
217 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
218 </repeat> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
219 <repeat name="pipeline_component"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
220 <conditional name="component_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
221 <param name="component_type" value="feature_selection"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
222 <conditional name="fs_algorithm_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
223 <param name="selected_algorithm" value="SelectKBest"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
224 <param name="score_func" value="f_classif"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
225 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
226 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
227 </repeat> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
228 <param name="selected_module" value="svm"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
229 <param name="selected_estimator" value="SVR"/> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
230 <param name="text_params" value="kernel='linear'"/> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
231 <output name="outfile" file="pipeline01" compare="sim_size" delta="5"/> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
232 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
233 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
234 <conditional name="component_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
235 <param name="component_type" value="pre_processor"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
236 <conditional name="pre_processors"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
237 <param name="selected_pre_processor" value="RobustScaler"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
238 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
239 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
240 <param name="selected_module" value="linear_model"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
241 <param name="selected_estimator" value="LassoCV"/> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
242 <output name="outfile" file="pipeline02" compare="sim_size" delta="5"/> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
243 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
244 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
245 <conditional name="component_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
246 <param name="component_type" value="pre_processor"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
247 <conditional name="pre_processors"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
248 <param name="selected_pre_processor" value="RobustScaler"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
249 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
250 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
251 <param name="selected_module" value="xgboost"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
252 <param name="selected_estimator" value="XGBClassifier"/> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
253 <output name="outfile" file="pipeline03" compare="sim_size" delta="5"/> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
254 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
255 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
256 <conditional name="component_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
257 <param name="component_type" value="feature_selection"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
258 <conditional name="fs_algorithm_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
259 <param name="selected_algorithm" value="SelectFromModel"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
260 <conditional name="model_inputter"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
261 <conditional name="estimator_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
262 <param name="selected_module" value="ensemble"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
263 <param name="selected_estimator" value="AdaBoostClassifier"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
264 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
265 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
266 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
267 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
268 <section name="final_estimator"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
269 <param name="selected_module" value="svm"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
270 <param name="selected_estimator" value="LinearSVC"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
271 </section> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
272 <output name="outfile" file="pipeline04" compare="sim_size" delta="5"/> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
273 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
274 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
275 <conditional name="component_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
276 <param name="component_type" value="None"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
277 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
278 <param name="selected_module" value="ensemble"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
279 <param name="selected_estimator" value="RandomForestRegressor"/> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
280 <param name="text_params" value="n_estimators=100, random_state=42"/> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
281 <output name="outfile" file="pipeline05" compare="sim_size" delta="5"/> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
282 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
283 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
284 <conditional name="component_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
285 <param name="component_type" value="decomposition"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
286 <conditional name="matrix_decomposition_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
287 <param name="select_algorithm" value="PCA"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
288 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
289 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
290 <param name="selected_module" value="ensemble"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
291 <param name="selected_estimator" value="AdaBoostRegressor"/> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
292 <output name="outfile" file="pipeline06" compare="sim_size" delta="5"/> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
293 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
294 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
295 <conditional name="component_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
296 <param name="component_type" value="kernel_approximation"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
297 <conditional name="kernel_approximation_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
298 <param name="select_algorithm" value="RBFSampler"/> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
299 <param name="text_params" value="n_components=10, gamma=2.0"/> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
300 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
301 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
302 <param name="selected_module" value="ensemble"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
303 <param name="selected_estimator" value="AdaBoostClassifier"/> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
304 <output name="outfile" file="pipeline07" compare="sim_size" delta="5"/> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
305 </test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
306 <test> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
307 <conditional name="component_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
308 <param name="component_type" value="FeatureAgglomeration"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
309 <conditional name="FeatureAgglomeration_selector"> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
310 <param name="select_algorithm" value="FeatureAgglomeration"/> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
311 <param name="text_params" value="n_clusters=3, affinity='euclidean'"/> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
312 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
313 </conditional> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
314 <param name="selected_module" value="ensemble"/> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
315 <param name="selected_estimator" value="AdaBoostClassifier"/> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
316 <output name="outfile" file="pipeline08" compare="sim_size" delta="5"/> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
317 </test> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
318 <test> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
319 <conditional name="component_selector"> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
320 <param name="component_type" value="skrebate"/> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
321 <conditional name="skrebate_selector"> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
322 <param name="select_algorithm" value="ReliefF"/> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
323 <param name="text_params" value="n_features_to_select=3, n_neighbors=100"/> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
324 </conditional> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
325 </conditional> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
326 <param name="selected_module" value="ensemble"/> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
327 <param name="selected_estimator" value="RandomForestRegressor"/> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
328 <output name="outfile" file="pipeline09" compare="sim_size" delta="5"/> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
329 </test> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
330 <test> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
331 <conditional name="component_selector"> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
332 <param name="component_type" value="None"/> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
333 </conditional> |
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
334 <param name="selected_module" value="ensemble"/> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
335 <param name="selected_estimator" value="AdaBoostRegressor"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
336 <output name="outfile" file="pipeline10" compare="sim_size" delta="5"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
337 </test> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
338 <test> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
339 <conditional name="component_selector"> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
340 <param name="component_type" value="imblearn"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
341 <conditional name="imblearn_selector"> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
342 <param name="select_algorithm" value="under_sampling.EditedNearestNeighbours"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
343 </conditional> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
344 </conditional> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
345 <param name="selected_module" value="ensemble"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
346 <param name="selected_estimator" value="RandomForestClassifier"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
347 <output name="outfile" file="pipeline11" compare="sim_size" delta="5"/> |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
348 </test> |
6
52c4e0ef580a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
5
diff
changeset
|
349 <test expect_failure="true"> |
52c4e0ef580a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
5
diff
changeset
|
350 <conditional name="component_selector"> |
52c4e0ef580a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
5
diff
changeset
|
351 <param name="component_type" value="None"/> |
52c4e0ef580a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
5
diff
changeset
|
352 </conditional> |
52c4e0ef580a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
5
diff
changeset
|
353 <param name="selected_module" value="ensemble"/> |
52c4e0ef580a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
5
diff
changeset
|
354 <param name="selected_estimator" value="RandomForestRegressor"/> |
52c4e0ef580a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
5
diff
changeset
|
355 <param name="text_params" value="n_estimators=__import__('os').system('ls ~')"/> |
52c4e0ef580a
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit c64ccc5850c8e061a95fb64e07ed388384e82393
bgruening
parents:
5
diff
changeset
|
356 </test> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
357 <test> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
358 <conditional name="component_selector"> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
359 <param name="component_type" value="feature_selection"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
360 <conditional name="fs_algorithm_selector"> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
361 <param name="selected_algorithm" value="RFE"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
362 <conditional name="estimator_selector"> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
363 <param name="selected_module" value="xgboost"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
364 <param name="selected_estimator" value="XGBRegressor"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
365 <param name="text_params" value="random_state=0"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
366 </conditional> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
367 </conditional> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
368 </conditional> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
369 <section name="final_estimator"> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
370 <conditional name="estimator_selector"> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
371 <param name="selected_module" value="none"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
372 </conditional> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
373 </section> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
374 <output name="outfile" file="pipeline12" compare="sim_size" delta="5"/> |
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
375 </test> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
376 </tests> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
377 <help> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
378 <![CDATA[ |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
379 **What it does** |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
380 Constructs a pipeline that contains a list of transfroms and a final estimator. Pipeline assembles several steps |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
381 that can be cross-validated together while setting different parameters. |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
382 please refer to `Scikit-learn pipeline Pipeline`_. |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
383 |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
384 **Pre-processing components** allow None, one or a combination of up to 5 transformations from `sklearn.preprocessing`_, `feature_selection`_, `decomposition`_, `kernel_approximation`_, `cluster.FeatureAgglomeration`_ and/or `skrebate`_. |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
385 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
386 **Estimator** selector supports estimators from `xgboost`_ and many scikit-learn modules, including `svm`_, `linear_model`_, `ensemble`_, `naive_bayes`_, `tree`_ and `neighbors`_. |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
387 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
388 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
389 .. _`Scikit-learn pipeline Pipeline`: http://scikit-learn.org/stable/modules/generated/sklearn.pipeline.Pipeline.html |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
390 .. _`svm`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.svm |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
391 .. _`linear_model`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.linear_model |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
392 .. _`ensemble`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.ensemble |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
393 .. _`naive_bayes`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.naive_bayes |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
394 .. _`tree`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.tree |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
395 .. _`neighbors`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.neighbors |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
396 .. _`xgboost`: https://xgboost.readthedocs.io/en/latest/python/python_api.html |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
397 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
398 .. _`sklearn.preprocessing`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.preprocessing |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
399 .. _`feature_selection`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.feature_selection |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
400 .. _`decomposition`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.decomposition |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
401 .. _`kernel_approximation`: http://scikit-learn.org/stable/modules/classes.html#module-sklearn.kernel_approximation |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
402 .. _`cluster.FeatureAgglomeration`: http://scikit-learn.org/stable/modules/generated/sklearn.cluster.FeatureAgglomeration.html |
3
0857964e07c2
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit d00173591e4a783a4c1cb2664e4bb192ab5414f7
bgruening
parents:
0
diff
changeset
|
403 .. _`skrebate`: https://epistasislab.github.io/scikit-rebate/using/ |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
404 |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
405 ]]> |
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
406 </help> |
4
86450dde8682
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cf3d813ec755166ee0bd517b4ecbbd4f84d4df1
bgruening
parents:
3
diff
changeset
|
407 <expand macro="sklearn_citation"> |
86450dde8682
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cf3d813ec755166ee0bd517b4ecbbd4f84d4df1
bgruening
parents:
3
diff
changeset
|
408 <expand macro="skrebate_citation"/> |
86450dde8682
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cf3d813ec755166ee0bd517b4ecbbd4f84d4df1
bgruening
parents:
3
diff
changeset
|
409 <expand macro="xgboost_citation"/> |
7
99038af8deda
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 57f4407e278a615f47a377a3328782b1d8e0b54d
bgruening
parents:
6
diff
changeset
|
410 <expand macro="imblearn_citation"/> |
4
86450dde8682
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8cf3d813ec755166ee0bd517b4ecbbd4f84d4df1
bgruening
parents:
3
diff
changeset
|
411 </expand> |
0
73535ddcfa69
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 76583c1fcd9d06a4679cc46ffaee44117b9e22cd
bgruening
parents:
diff
changeset
|
412 </tool> |