Mercurial > repos > devteam > kernel_canonical_correlation_analysis
comparison kcca.xml @ 0:f89438602243 draft
Imported from capsule None
author | devteam |
---|---|
date | Mon, 19 May 2014 11:00:11 -0400 |
parents | |
children | df4083177919 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f89438602243 |
---|---|
1 <tool id="kcca1" name="Kernel Canonical Correlation Analysis" version="1.0.0"> | |
2 <description> </description> | |
3 <requirements> | |
4 <requirement type="package" version="1.0.3">rpy</requirement> | |
5 <requirement type="package" version="2.11.0">R</requirement> | |
6 <requirement type="package" version="0.1-4">kernlab</requirement> | |
7 <requirement type="package" version="1.7.1">numpy</requirement> | |
8 <requirement type="package" version="0.7.1">bx-python</requirement> | |
9 </requirements> | |
10 <command interpreter="python"> | |
11 kcca.py | |
12 --input=$input1 | |
13 --output1=$out_file1 | |
14 --x_cols=$x_cols | |
15 --y_cols=$y_cols | |
16 --kernel=$kernelChoice.kernel | |
17 --features=$features | |
18 #if $kernelChoice.kernel == "rbfdot" or $kernelChoice.kernel == "anovadot": | |
19 --sigma=$kernelChoice.sigma | |
20 --degree="None" | |
21 --scale="None" | |
22 --offset="None" | |
23 --order="None" | |
24 #elif $kernelChoice.kernel == "polydot": | |
25 --sigma="None" | |
26 --degree=$kernelChoice.degree | |
27 --scale=$kernelChoice.scale | |
28 --offset=$kernelChoice.offset | |
29 --order="None" | |
30 #elif $kernelChoice.kernel == "tanhdot": | |
31 --sigma="None" | |
32 --degree="None" | |
33 --scale=$kernelChoice.scale | |
34 --offset=$kernelChoice.offset | |
35 --order="None" | |
36 #elif $kernelChoice.kernel == "besseldot": | |
37 --sigma=$kernelChoice.sigma | |
38 --degree=$kernelChoice.degree | |
39 --scale="None" | |
40 --offset="None" | |
41 --order=$kernelChoice.order | |
42 #elif $kernelChoice.kernel == "anovadot": | |
43 --sigma=$kernelChoice.sigma | |
44 --degree=$kernelChoice.degree | |
45 --scale="None" | |
46 --offset="None" | |
47 --order="None" | |
48 #else: | |
49 --sigma="None" | |
50 --degree="None" | |
51 --scale="None" | |
52 --offset="None" | |
53 --order="None" | |
54 #end if | |
55 </command> | |
56 <inputs> | |
57 <param format="tabular" name="input1" type="data" label="Select data" help="Dataset missing? See TIP below."/> | |
58 <param name="x_cols" label="Select columns containing X variables " type="data_column" data_ref="input1" numerical="True" multiple="true" > | |
59 <validator type="no_options" message="Please select at least one column."/> | |
60 </param> | |
61 <param name="y_cols" label="Select columns containing Y variables " type="data_column" data_ref="input1" numerical="True" multiple="true" > | |
62 <validator type="no_options" message="Please select at least one column."/> | |
63 </param> | |
64 <param name="features" size="10" type="integer" value="2" label="Number of canonical components to return" help="Enter an integer value greater than 0"/> | |
65 <conditional name="kernelChoice"> | |
66 <param name="kernel" type="select" label="Kernel function"> | |
67 <option value="rbfdot" selected="true">Gaussian Radial Basis Function</option> | |
68 <option value="polydot">Polynomial</option> | |
69 <option value="vanilladot">Linear</option> | |
70 <option value="tanhdot">Hyperbolic</option> | |
71 <option value="laplacedot">Laplacian</option> | |
72 <option value="besseldot">Bessel</option> | |
73 <option value="anovadot">ANOVA Radial Basis Function</option> | |
74 <option value="splinedot">Spline</option> | |
75 </param> | |
76 <when value="vanilladot" /> | |
77 <when value="splinedot" /> | |
78 <when value="rbfdot"> | |
79 <param name="sigma" size="10" type="float" value="1" label="sigma (inverse kernel width)" /> | |
80 </when> | |
81 <when value="laplacedot"> | |
82 <param name="sigma" size="10" type="float" value="1" label="sigma (inverse kernel width)" /> | |
83 </when> | |
84 <when value="polydot"> | |
85 <param name="degree" size="10" type="float" value="1" label="degree" /> | |
86 <param name="scale" size="10" type="float" value="1" label="scale" /> | |
87 <param name="offset" size="10" type="float" value="1" label="offset" /> | |
88 </when> | |
89 <when value="tanhdot"> | |
90 <param name="scale" size="10" type="float" value="1" label="scale" /> | |
91 <param name="offset" size="10" type="float" value="1" label="offset" /> | |
92 </when> | |
93 <when value="besseldot"> | |
94 <param name="sigma" size="10" type="float" value="1" label="sigma" /> | |
95 <param name="order" size="10" type="float" value="1" label="order" /> | |
96 <param name="degree" size="10" type="float" value="1" label="degree" /> | |
97 </when> | |
98 <when value="anovadot"> | |
99 <param name="sigma" size="10" type="float" value="1" label="sigma" /> | |
100 <param name="degree" size="10" type="float" value="1" label="degree" /> | |
101 </when> | |
102 </conditional> | |
103 </inputs> | |
104 <outputs> | |
105 <data format="input" name="out_file1" metadata_source="input1" /> | |
106 </outputs> | |
107 <tests> | |
108 <test> | |
109 <param name="input1" value="iris.tabular"/> | |
110 <param name="x_cols" value="1,2"/> | |
111 <param name="y_cols" value="3,4"/> | |
112 <param name="kernel" value="anovadot"/> | |
113 <param name="features" value="4"/> | |
114 <param name="sigma" value="0.1"/> | |
115 <param name="degree" value="2"/> | |
116 <output name="out_file1" file="kcca_out1.tabular" compare="re_match"/> | |
117 </test> | |
118 <test> | |
119 <param name="input1" value="iris.tabular"/> | |
120 <param name="x_cols" value="3,4"/> | |
121 <param name="y_cols" value="1,2"/> | |
122 <param name="kernel" value="rbfdot"/> | |
123 <param name="features" value="2"/> | |
124 <param name="sigma" value="0.5"/> | |
125 <output name="out_file1" file="kcca_out2.tabular" compare="re_match"/> | |
126 </test> | |
127 </tests> | |
128 <help> | |
129 | |
130 | |
131 .. class:: infomark | |
132 | |
133 **TIP:** If your data is not TAB delimited, use *Edit Datasets->Convert characters* | |
134 | |
135 ----- | |
136 | |
137 .. class:: infomark | |
138 | |
139 **What it does** | |
140 | |
141 This tool uses functions from 'kernlab' library from R statistical package to perform Kernel Canonical Correlation Analysis (kCCA) on the input data. | |
142 | |
143 *Alexandros Karatzoglou, Alex Smola, Kurt Hornik, Achim Zeileis (2004). kernlab - An S4 Package for Kernel Methods in R. Journal of Statistical Software 11(9), 1-20. URL http://www.jstatsoft.org/v11/i09/* | |
144 | |
145 ----- | |
146 | |
147 .. class:: warningmark | |
148 | |
149 **Note** | |
150 | |
151 This tool currently treats all variables as continuous numeric variables. Running the tool on categorical variables might result in incorrect results. Rows containing non-numeric (or missing) data in any of the chosen columns will be skipped from the analysis. | |
152 | |
153 </help> | |
154 </tool> |