annotate kpca.xml @ 1:3d58aa83e4a3 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
author devteam
date Wed, 11 Nov 2015 12:17:56 -0500
parents e9ebd4bfbdfc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
1 <tool id="kpca1" name="Kernel Principal Component Analysis" version="1.0.0">
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
2 <description> </description>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
3 <requirements>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
4 <requirement type="package" version="1.0.3">rpy</requirement>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
5 <requirement type="package" version="2.11.0">R</requirement>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
6 <requirement type="package" version="0.1-4">kernlab</requirement>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
7 <requirement type="package" version="1.7.1">numpy</requirement>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
8 <requirement type="package" version="0.7.1">bx-python</requirement>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
9 </requirements>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
10 <command interpreter="python">
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
11 kpca.py
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
12 --input=$input1
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
13 --output1=$out_file1
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
14 --output2=$out_file2
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
15 --var_cols=$var_cols
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
16 --kernel=$kernelChoice.kernel
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
17 --features=$features
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
18 #if $kernelChoice.kernel == "rbfdot" or $kernelChoice.kernel == "anovadot":
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
19 --sigma=$kernelChoice.sigma
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
20 --degree="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
21 --scale="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
22 --offset="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
23 --order="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
24 #elif $kernelChoice.kernel == "polydot":
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
25 --sigma="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
26 --degree=$kernelChoice.degree
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
27 --scale=$kernelChoice.scale
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
28 --offset=$kernelChoice.offset
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
29 --order="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
30 #elif $kernelChoice.kernel == "tanhdot":
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
31 --sigma="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
32 --degree="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
33 --scale=$kernelChoice.scale
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
34 --offset=$kernelChoice.offset
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
35 --order="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
36 #elif $kernelChoice.kernel == "besseldot":
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
37 --sigma=$kernelChoice.sigma
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
38 --degree=$kernelChoice.degree
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
39 --scale="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
40 --offset="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
41 --order=$kernelChoice.order
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
42 #elif $kernelChoice.kernel == "anovadot":
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
43 --sigma=$kernelChoice.sigma
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
44 --degree=$kernelChoice.degree
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
45 --scale="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
46 --offset="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
47 --order="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
48 #else:
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
49 --sigma="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
50 --degree="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
51 --scale="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
52 --offset="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
53 --order="None"
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
54 #end if
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
55 </command>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
56 <inputs>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
57 <param format="tabular" name="input1" type="data" label="Select data" help="Dataset missing? See TIP below."/>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
58 <param name="var_cols" label="Select columns containing input variables " type="data_column" data_ref="input1" numerical="True" multiple="true" >
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
59 <validator type="no_options" message="Please select at least one column."/>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
60 </param>
1
3d58aa83e4a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
61 <param name="features" type="integer" value="2" label="Number of principal components to return" help="To return all, enter 0"/>
0
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
62 <conditional name="kernelChoice">
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
63 <param name="kernel" type="select" label="Kernel function">
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
64 <option value="rbfdot" selected="true">Gaussian Radial Basis Function</option>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
65 <option value="polydot">Polynomial</option>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
66 <option value="vanilladot">Linear</option>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
67 <option value="tanhdot">Hyperbolic</option>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
68 <option value="laplacedot">Laplacian</option>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
69 <option value="besseldot">Bessel</option>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
70 <option value="anovadot">ANOVA Radial Basis Function</option>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
71 <option value="splinedot">Spline</option>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
72 </param>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
73 <when value="vanilladot" />
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
74 <when value="splinedot" />
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
75 <when value="rbfdot">
1
3d58aa83e4a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
76 <param name="sigma" type="float" value="1" label="sigma (inverse kernel width)" />
0
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
77 </when>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
78 <when value="laplacedot">
1
3d58aa83e4a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
79 <param name="sigma" type="float" value="1" label="sigma (inverse kernel width)" />
0
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
80 </when>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
81 <when value="polydot">
1
3d58aa83e4a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
82 <param name="degree" type="integer" value="1" label="degree" />
3d58aa83e4a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
83 <param name="scale" type="integer" value="1" label="scale" />
3d58aa83e4a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
84 <param name="offset" type="integer" value="1" label="offset" />
0
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
85 </when>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
86 <when value="tanhdot">
1
3d58aa83e4a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
87 <param name="scale" type="integer" value="1" label="scale" />
3d58aa83e4a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
88 <param name="offset" type="integer" value="1" label="offset" />
0
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
89 </when>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
90 <when value="besseldot">
1
3d58aa83e4a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
91 <param name="sigma" type="integer" value="1" label="sigma" />
3d58aa83e4a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
92 <param name="order" type="integer" value="1" label="order" />
3d58aa83e4a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
93 <param name="degree" type="integer" value="1" label="degree" />
0
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
94 </when>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
95 <when value="anovadot">
1
3d58aa83e4a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
96 <param name="sigma" type="integer" value="1" label="sigma" />
3d58aa83e4a3 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/kernel_principal_component_analysis commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
97 <param name="degree" type="integer" value="1" label="degree" />
0
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
98 </when>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
99 </conditional>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
100 </inputs>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
101 <outputs>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
102 <data format="input" name="out_file1" metadata_source="input1" />
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
103 <data format="pdf" name="out_file2" />
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
104 </outputs>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
105 <tests>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
106 <test>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
107 <param name="input1" value="iris.tabular"/>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
108 <param name="var_cols" value="1,2,3,4"/>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
109 <param name="kernel" value="polydot"/>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
110 <param name="features" value="2"/>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
111 <param name="offset" value="0"/>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
112 <param name="scale" value="1"/>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
113 <param name="degree" value="2"/>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
114 <output name="out_file1" file="kpca_out1.tabular"/>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
115 <output name="out_file2" file="kpca_out2.pdf"/>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
116 </test>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
117 </tests>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
118 <help>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
119
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
120
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
121 .. class:: infomark
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
122
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
123 **TIP:** If your data is not TAB delimited, use *Edit Datasets-&gt;Convert characters*
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
124
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
125 -----
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
126
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
127 .. class:: infomark
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
128
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
129 **What it does**
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
130
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
131 This tool uses functions from 'kernlab' library from R statistical package to perform Kernel Principal Component Analysis (kPCA) on the input data. It outputs two files, one containing the summary statistics of the performed kPCA, and the other containing a scatterplot matrix of rotated values reported by kPCA.
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
132
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
133 *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/*
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
134
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
135 -----
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
136
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
137 .. class:: warningmark
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
138
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
139 **Note**
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
140
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
141 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.
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
142
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
143 </help>
e9ebd4bfbdfc Imported from capsule None
devteam
parents:
diff changeset
144 </tool>