annotate pre_process.xml @ 13:14f66545cc73 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 64158f357e708f0b60d2669d92d614f7aee34c0e
author bgruening
date Wed, 06 Jun 2018 17:39:09 -0400
parents 43075be4044b
children 928027486e78
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
1 <tool id="sklearn_data_preprocess" name="Preprocess" version="@VERSION@">
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>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
6 <expand macro="python_requirements"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
7 <expand macro="macro_stdio"/>
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
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
21 import pickle
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
22 import numpy as np
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
23 from scipy.io import mmread
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
24 from scipy.io import mmwrite
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
25 from sklearn import preprocessing
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
26
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
27 input_json_path = sys.argv[1]
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
28 params = json.load(open(input_json_path, "r"))
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
29
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
30 #if $input_type.selected_input_type == "sparse":
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
31 X = mmread(open("$infile", 'r'))
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
32 #else:
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
33 X = pandas.read_csv("$infile", sep='\t', header=None, index_col=None, parse_dates=True, encoding=None, tupleize_cols=False )
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
34 #end if
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
35
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
36 #if $input_type.pre_processors.infile_transform.ext == 'txt':
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
37 y = mmread(open("$infile", 'r'))
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
38 #else:
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
39 y = pandas.read_csv("$infile", sep='\t', header=None, index_col=None, parse_dates=True, encoding=None, tupleize_cols=False )
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
40 #end if
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
41
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
42 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
43 options = params["input_type"]["pre_processors"]["options"]
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
44
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
45 my_class = getattr(preprocessing, preprocessor)
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
46 estimator = my_class(**options)
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
47 estimator.fit(X)
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
48 result = estimator.transform(y)
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
49
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
50 #if $input_type.pre_processors.infile_transform.ext == 'txt':
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
51 mmwrite(open("$outfile_transform" , 'w+'), result)
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
52 #else:
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
53 res = pandas.DataFrame(result)
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
54 res.to_csv(path_or_buf = "$outfile_transform", sep="\t", index=False, header=None)
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 #if $save:
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
58 pickle.dump(estimator,open("$outfile_fit", 'w+'), pickle.HIGHEST_PROTOCOL)
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
59 #end if
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
60 ]]>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
61 </configfile>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
62 </configfiles>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
63 <inputs>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
64 <conditional name="input_type">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
65 <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
66 <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
67 <option value="sparse">Sparse</option>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
68 </param>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
69 <when value="tabular">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
70 <param name="infile" type="data" format="tabular" label="Select a tabular file you want to train your preprocessor on its data:"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
71 <conditional name="pre_processors">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
72 <expand macro="sparse_preprocessors">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
73 <option value="KernelCenterer">Kernel Centerer (Centers a kernel matrix)</option>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
74 <option value="MinMaxScaler">Minmax Scaler (Scales features to a range)</option>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
75 <option value="PolynomialFeatures">Polynomial Features (Generates polynomial and interaction features)</option>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
76 <option value="RobustScaler">Robust Scaler (Scales features using outlier-invariance statistics)</option>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
77 </expand>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
78 <expand macro="sparse_preprocessor_options">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
79 <when value="KernelCenterer">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
80 <expand macro="multitype_input"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
81 <section name="options" title="Advanced Options" expanded="False">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
82 </section>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
83 </when>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
84 <when value="MinMaxScaler">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
85 <expand macro="multitype_input"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
86 <section name="options" title="Advanced Options" expanded="False">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
87 <!--feature_range-->
2
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
88 <param argument="copy" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="true"
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
89 label="Use a copy of data for precomputing normalization" help=" "/>
0
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
90 </section>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
91 </when>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
92 <when value="PolynomialFeatures">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
93 <expand macro="multitype_input"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
94 <section name="options" title="Advanced Options" expanded="False">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
95 <param argument="degree" type="integer" optional="true" value="2" label="The degree of the polynomial features " help=""/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
96 <param argument="interaction_only" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="false" label="Produce interaction features only" help="(Features that are products of at most degree distinct input features) "/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
97 <param argument="include_bias" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="true" label="Include a bias column" help="Feature in which all polynomial powers are zero "/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
98 </section>
2
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
99 </when>
0
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
100 <when value="RobustScaler">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
101 <expand macro="multitype_input"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
102 <section name="options" title="Advanced Options" expanded="False">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
103 <!--=True, =True, copy=True-->
2
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
104 <param argument="with_centering" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="true"
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
105 label="Center the data before scaling" help=" "/>
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
106 <param argument="with_scaling" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="true"
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
107 label="Scale the data to interquartile range" help=" "/>
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
108 <param argument="copy" type="boolean" optional="true" truevalue="booltrue" falsevalue="boolflase" checked="true"
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
109 label="Use a copy of data for inplace scaling" help=" "/>
0
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
110 </section>
2
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
111 </when>
0
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
112 </expand>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
113 </conditional>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
114 </when>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
115 <when value="sparse">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
116 <param name="infile" type="data" format="txt" label="Select a sparse representation you want to train your preprocessor on its data:"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
117 <conditional name="pre_processors">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
118 <expand macro="sparse_preprocessors"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
119 <expand macro="sparse_preprocessor_options"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
120 </conditional>
2
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
121 </when>
0
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
122 </conditional>
2
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
123 <param name="save" type="boolean" truevalue="booltrue" falsevalue="boolflase" checked="false"
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
124 label="Save the preprocessor"
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
125 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
126 </inputs>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
127 <outputs>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
128 <data format="tabular" name="outfile_transform" from_work_dir="./output"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
129 <data format="zip" name="outfile_fit">
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
130 <filter>save</filter>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
131 </data>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
132 </outputs>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
133 <tests>
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 <param name="infile" value="train.tabular" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
136 <param name="infile_transform" value="train.tabular" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
137 <param name="selected_input_type" value="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
138 <param name="selected_pre_processor" value="KernelCenterer"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
139 <param name="save" value="true"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
140 <output name="outfile_transform" file="prp_result01" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
141 <output name="outfile_fit" file="prp_model01" ftype="zip" compare="sim_size" delta="500"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
142 </test>
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 <param name="infile" value="train.tabular" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
145 <param name="infile_transform" value="train.tabular" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
146 <param name="selected_input_type" value="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
147 <param name="selected_pre_processor" value="MinMaxScaler"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
148 <param name="save" value="true"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
149 <output name="outfile_transform" file="prp_result02" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
150 <output name="outfile_fit" file="prp_model02" ftype="zip" compare="sim_size" delta="500"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
151 </test>
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 <param name="infile" value="train.tabular" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
154 <param name="infile_transform" value="train.tabular" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
155 <param name="selected_input_type" value="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
156 <param name="selected_pre_processor" value="PolynomialFeatures"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
157 <param name="save" value="true"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
158 <output name="outfile_transform" file="prp_result03" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
159 <output name="outfile_fit" file="prp_model03" ftype="zip" compare="sim_size" delta="500"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
160 </test>
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 <param name="infile" value="train.tabular" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
163 <param name="infile_transform" value="train.tabular" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
164 <param name="selected_input_type" value="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
165 <param name="selected_pre_processor" value="RobustScaler"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
166 <param name="save" value="true"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
167 <output name="outfile_transform" file="prp_result04" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
168 <output name="outfile_fit" file="prp_model04" ftype="zip" compare="sim_size" delta="500"/>
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>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
171 <param name="infile" value="csr_sparse2.mtx" ftype="txt"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
172 <param name="infile_transform" value="csr_sparse2.mtx" ftype="txt"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
173 <param name="selected_input_type" value="sparse"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
174 <param name="selected_pre_processor" value="Binarizer"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
175 <param name="save" value="true"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
176 <output name="outfile_transform" file="prp_result05" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
177 <output name="outfile_fit" file="prp_model05" ftype="zip" compare="sim_size" delta="500"/>
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>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
180 <param name="infile" value="csr_sparse2.mtx" ftype="txt"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
181 <param name="infile_transform" value="csr_sparse2.mtx" ftype="txt"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
182 <param name="selected_input_type" value="sparse"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
183 <param name="selected_pre_processor" value="Imputer"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
184 <param name="save" value="true"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
185 <param name="axis" value="true"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
186 <output name="outfile_transform" file="prp_result06" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
187 <output name="outfile_fit" file="prp_model06" ftype="zip" compare="sim_size" delta="500"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
188 </test>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
189 <test>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
190 <param name="infile" value="train.tabular" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
191 <param name="infile_transform" value="train.tabular" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
192 <param name="selected_input_type" value="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
193 <param name="selected_pre_processor" value="StandardScaler"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
194 <param name="save" value="true"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
195 <output name="outfile_transform" file="prp_result07" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
196 <output name="outfile_fit" file="prp_model07" ftype="zip" compare="sim_size" delta="500"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
197 </test>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
198 <test>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
199 <param name="infile" value="csr_sparse2.mtx" ftype="txt"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
200 <param name="infile_transform" value="csr_sparse2.mtx" ftype="txt"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
201 <param name="selected_input_type" value="sparse"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
202 <param name="selected_pre_processor" value="MaxAbsScaler"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
203 <param name="save" value="true"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
204 <output name="outfile_transform" file="prp_result08" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
205 <output name="outfile_fit" file="prp_model08" ftype="zip" compare="sim_size" delta="500"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
206 </test>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
207 <test>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
208 <param name="infile" value="csr_sparse2.mtx" ftype="txt"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
209 <param name="infile_transform" value="csr_sparse2.mtx" ftype="txt"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
210 <param name="selected_input_type" value="sparse"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
211 <param name="selected_pre_processor" value="Normalizer"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
212 <param name="save" value="true"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
213 <output name="outfile_transform" file="prp_result09" ftype="tabular"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
214 <output name="outfile_fit" file="prp_model09" ftype="zip" compare="sim_size" delta="500"/>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
215 </test>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
216 </tests>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
217 <help>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
218 <![CDATA[
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
219 **What it does**
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
220
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
221 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
222
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
223 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
224
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
225 .. _`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
226 ]]>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
227 </help>
12b2bef577d0 planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit a349cb4673231f12344e418513a08691925565d9
bgruening
parents:
diff changeset
228 <expand macro="sklearn_citation"/>
2
43075be4044b planemo upload for repository https://github.com/bgruening/galaxytools/tools/sklearn commit 0e582cf1f3134c777cce3aa57d71b80ed95e6ba9
bgruening
parents: 0
diff changeset
229 </tool>