Mercurial > repos > bgruening > sklearn_data_preprocess
annotate pre_process.xml @ 43:8173d02b9127 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 80417bf0158a9b596e485dd66408f738f405145a
author | bgruening |
---|---|
date | Mon, 02 Oct 2023 09:06:11 +0000 |
parents | 6c23a44a3c4f |
children |
rev | line source |
---|---|
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
1 <tool id="sklearn_data_preprocess" name="Preprocess" version="@VERSION@" profile="@PROFILE@"> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
2 <description>raw feature vectors into standardized datasets</description> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
3 <macros> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
4 <import>main_macros.xml</import> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
5 </macros> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
6 <expand macro="python_requirements" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
7 <expand macro="macro_stdio" /> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
8 <version_command>echo "@VERSION@"</version_command> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
9 <command> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
10 <![CDATA[ |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
11 python "$pre_processor_script" '$inputs' |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
12 ]]> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
13 </command> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
14 <configfiles> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
15 <inputs name="inputs" /> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
16 <configfile name="pre_processor_script"> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
17 <![CDATA[ |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
18 import sys |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
19 import json |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
20 import pandas |
28
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
21 |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
22 from scipy.io import mmread |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
23 from scipy.io import mmwrite |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
24 from sklearn import preprocessing |
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
25 from galaxy_ml.model_persist import dump_model_to_h5 |
28
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
26 from galaxy_ml.utils import read_columns, SafeEval |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
27 |
28
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
28 |
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
29 safe_eval = SafeEval() |
17
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
30 |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
31 input_json_path = sys.argv[1] |
17
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
32 with open(input_json_path, "r") as param_handler: |
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
33 params = json.load(param_handler) |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
34 |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
35 #if $input_type.selected_input_type == "sparse": |
17
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
36 X = mmread("$infile") |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
37 #else: |
17
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
38 header = 'infer' if params["input_type"]["header1"] else None |
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
39 column_option = params["input_type"]["column_selector_options_1"]["selected_column_selector_option"] |
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
40 if column_option in ["by_index_number", "all_but_by_index_number", "by_header_name", "all_but_by_header_name"]: |
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
41 c = params["input_type"]["column_selector_options_1"]["col1"] |
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
42 else: |
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
43 c = None |
28
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
44 X, input_df = read_columns( |
17
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
45 "$input_type.infile", |
28
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
46 c=c, |
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
47 c_option=column_option, |
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
48 return_df=True, |
17
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
49 sep='\t', |
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
50 header=header, |
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
51 parse_dates=True, |
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
52 encoding=None, |
33
e270c53b5df6
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 5b2ac730ec6d3b762faa9034eddd19ad1b347476"
bgruening
parents:
28
diff
changeset
|
53 index_col=None) |
28
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
54 X = X.astype(float) |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
55 #end if |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
56 |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
57 preprocessor = params["input_type"]["pre_processors"]["selected_pre_processor"] |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
58 options = params["input_type"]["pre_processors"]["options"] |
28
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
59 if 'feature_range' in options: |
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
60 feature_range = safe_eval(options['feature_range'].strip()) |
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
61 if not feature_range: |
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
62 feature_range = (0, 1) |
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
63 options['feature_range'] = feature_range |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
64 |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
65 my_class = getattr(preprocessing, preprocessor) |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
66 estimator = my_class(**options) |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
67 estimator.fit(X) |
17
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
68 result = estimator.transform(X) |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
69 |
17
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
70 #if $input_type.selected_input_type == "sparse": |
23
792ae8a93b07
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 2a058459e6daf0486871f93845f00fdb4a4eaca1
bgruening
parents:
21
diff
changeset
|
71 with open("$outfile_transform", "wb") as transform_handler: |
17
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
72 mmwrite(transform_handler, result) |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
73 #else: |
28
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
74 columns = input_df.columns |
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
75 if preprocessor == 'PolynomialFeatures': |
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
76 columns = None |
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
77 header = False |
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
78 res = pandas.DataFrame(result, columns=columns) |
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
79 res.to_csv(path_or_buf = "$outfile_transform", sep="\t", |
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
80 index=False, header=True if header else False) |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
81 #end if |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
82 |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
83 #if $save: |
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
84 dump_model_to_h5(estimator, "$outfile_fit") |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
85 #end if |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
86 ]]> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
87 </configfile> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
88 </configfiles> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
89 <inputs> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
90 <conditional name="input_type"> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
91 <param name="selected_input_type" type="select" label="Select the type of your input data:"> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
92 <option value="tabular" selected="true">Tabular</option> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
93 <option value="sparse">Sparse</option> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
94 </param> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
95 <when value="tabular"> |
17
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
96 <param name="infile" type="data" format="tabular" label="Select a tabular file you want to train your preprocessor on its data:" /> |
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
97 <param name="header1" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolfalse" checked="false" label="Does the dataset contain header:" /> |
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
98 <conditional name="column_selector_options_1"> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
99 <expand macro="samples_column_selector_options" multiple="true" column_option="selected_column_selector_option" col_name="col1" infile="infile" /> |
17
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
100 </conditional> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
101 <conditional name="pre_processors"> |
17
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
102 <expand macro="sparse_preprocessors_ext" /> |
928027486e78
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit f54ff2ba2f8e7542d68966ce5a6b17d7f624ac48
bgruening
parents:
2
diff
changeset
|
103 <expand macro="sparse_preprocessor_options_ext" /> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
104 </conditional> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
105 </when> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
106 <when value="sparse"> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
107 <param name="infile" type="data" format="txt" label="Select a sparse representation you want to train your preprocessor on its data:" /> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
108 <conditional name="pre_processors"> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
109 <expand macro="sparse_preprocessors" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
110 <expand macro="sparse_preprocessor_options" /> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
111 </conditional> |
2
43075be4044b
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
0
diff
changeset
|
112 </when> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
113 </conditional> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
114 <param name="save" type="boolean" truevalue="booltrue" falsevalue="boolflase" checked="false" label="Save the preprocessor" help="Saves the preprocessor after fitting to the data. The preprocessor can then be passed to other tools and used in later operations." /> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
115 </inputs> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
116 <outputs> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
117 <data format="tabular" name="outfile_transform" from_work_dir="./output" /> |
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
118 <data format="h5mlm" name="outfile_fit"> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
119 <filter>save</filter> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
120 </data> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
121 </outputs> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
122 <tests> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
123 <test> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
124 <param name="infile" value="train.tabular" ftype="tabular" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
125 <param name="selected_column_selector_option" value="all_columns" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
126 <param name="selected_input_type" value="tabular" /> |
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
127 <param name="selected_pre_processor" value="QuantileTransformer" /> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
128 <param name="save" value="true" /> |
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
129 <param name="random_state" value="200" /> |
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
130 <param name="n_quantiles" value="10" /> |
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
131 <param name="subsample" value="100" /> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
132 <output name="outfile_transform" file="prp_result01" ftype="tabular" /> |
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
133 <output name="outfile_fit" file="prp_model01" ftype="h5mlm" compare="sim_size" delta="5" /> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
134 </test> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
135 <test> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
136 <param name="infile" value="train.tabular" ftype="tabular" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
137 <param name="selected_column_selector_option" value="all_columns" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
138 <param name="selected_input_type" value="tabular" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
139 <param name="selected_pre_processor" value="MinMaxScaler" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
140 <param name="save" value="true" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
141 <output name="outfile_transform" file="prp_result02" ftype="tabular" /> |
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
142 <output name="outfile_fit" file="prp_model02" ftype="h5mlm" compare="sim_size" delta="5" /> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
143 </test> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
144 <test> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
145 <param name="infile" value="train.tabular" ftype="tabular" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
146 <param name="selected_column_selector_option" value="all_columns" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
147 <param name="selected_input_type" value="tabular" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
148 <param name="selected_pre_processor" value="PolynomialFeatures" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
149 <param name="save" value="true" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
150 <output name="outfile_transform" file="prp_result03" ftype="tabular" /> |
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
151 <output name="outfile_fit" file="prp_model03" ftype="h5mlm" compare="sim_size" delta="5" /> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
152 </test> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
153 <test> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
154 <param name="infile" value="train.tabular" ftype="tabular" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
155 <param name="selected_column_selector_option" value="all_columns" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
156 <param name="selected_input_type" value="tabular" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
157 <param name="selected_pre_processor" value="RobustScaler" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
158 <param name="save" value="true" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
159 <output name="outfile_transform" file="prp_result04" ftype="tabular" /> |
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
160 <output name="outfile_fit" file="prp_model04" ftype="h5mlm" compare="sim_size" delta="5" /> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
161 </test> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
162 <test> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
163 <param name="infile" value="csr_sparse2.mtx" ftype="txt" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
164 <param name="selected_input_type" value="sparse" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
165 <param name="selected_pre_processor" value="Binarizer" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
166 <param name="save" value="true" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
167 <output name="outfile_transform" file="prp_result05" ftype="tabular" /> |
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
168 <output name="outfile_fit" file="prp_model05" ftype="h5mlm" compare="sim_size" delta="5" /> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
169 </test> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
170 <test> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
171 <param name="infile" value="train.tabular" ftype="tabular" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
172 <param name="selected_input_type" value="tabular" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
173 <param name="selected_column_selector_option" value="all_columns" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
174 <param name="selected_pre_processor" value="StandardScaler" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
175 <param name="save" value="true" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
176 <output name="outfile_transform" file="prp_result07" ftype="tabular" /> |
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
177 <output name="outfile_fit" file="prp_model07" ftype="h5mlm" compare="sim_size" delta="5" /> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
178 </test> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
179 <test> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
180 <param name="infile" value="csr_sparse2.mtx" ftype="txt" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
181 <param name="selected_input_type" value="sparse" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
182 <param name="selected_pre_processor" value="MaxAbsScaler" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
183 <param name="save" value="true" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
184 <output name="outfile_transform" file="prp_result08" ftype="tabular" /> |
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
185 <output name="outfile_fit" file="prp_model08" ftype="h5mlm" compare="sim_size" delta="5" /> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
186 </test> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
187 <test> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
188 <param name="infile" value="csr_sparse2.mtx" ftype="txt" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
189 <param name="selected_input_type" value="sparse" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
190 <param name="selected_pre_processor" value="Normalizer" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
191 <param name="save" value="true" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
192 <output name="outfile_transform" file="prp_result09" ftype="tabular" /> |
42
6c23a44a3c4f
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 9981e25b00de29ed881b2229a173a8c812ded9bb
bgruening
parents:
36
diff
changeset
|
193 <output name="outfile_fit" file="prp_model09" ftype="h5mlm" compare="sim_size" delta="5" /> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
194 </test> |
28
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
195 <test> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
196 <param name="infile" value="regression_X.tabular" ftype="tabular" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
197 <param name="header1" value="true" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
198 <param name="selected_column_selector_option" value="all_columns" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
199 <param name="selected_input_type" value="tabular" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
200 <param name="selected_pre_processor" value="MinMaxScaler" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
201 <param name="feature_range" value="(-1, 1)" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
202 <param name="save" value="false" /> |
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
203 <output name="outfile_transform" file="prp_result10" ftype="tabular" /> |
28
a12d5eae322e
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 60f0fbc0eafd7c11bc60fb6c77f2937782efd8a9-dirty
bgruening
parents:
26
diff
changeset
|
204 </test> |
0
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
205 </tests> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
206 <help> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
207 <![CDATA[ |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
208 **What it does** |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
209 |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
210 This tool provides several transformer classes to change raw feature vectors into a representation that is more suitable for the downstream estimators. The library is provided by sklearn.preprocessing package. |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
211 |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
212 For information about preprocessing classes and parameter settings please refer to `Scikit-learn preprocessing`_. |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
213 |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
214 .. _`Scikit-learn preprocessing`: http://scikit-learn.org/stable/modules/preprocessing.html |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
215 ]]> |
12b2bef577d0
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff
changeset
|
216 </help> |
36
ff2a7f89069e
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 208a8d348e7c7a182cfbe1b6f17868146428a7e2"
bgruening
parents:
33
diff
changeset
|
217 <expand macro="sklearn_citation" /> |
2
43075be4044b
planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents:
0
diff
changeset
|
218 </tool> |