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