90
|
1 <tool id="svm" name="svm" version="1.0.0">
|
|
2 <description>predict phenotype using a SVM approach</description>
|
|
3 <command interpreter="Rscript">
|
|
4 svm.R $config > ${output1}
|
|
5 </command>
|
|
6
|
|
7 <inputs>
|
|
8 <param name="genotype" type="data"
|
|
9 label="genotype data" help="a tabular datatype containing the encoded genotypes"
|
|
10 />
|
|
11
|
|
12 <param name="phenotype" type="data"
|
|
13 label="phenotype data" help=" a tabular datatype containing the phenotypes "
|
|
14 />
|
|
15
|
|
16 <param name="kernel" type="text" value="radial"
|
|
17 label="name of the kernel" help= " four possibilities : radial, linear, polynomial or sigmoid. Any other value is treated as radial"
|
|
18 />
|
|
19
|
|
20 <param name="cost" type="float" value="-1"
|
|
21 label="cost" help="the cost parameter of SVM used by all kernels. Suitable values are between 0.1 and 1000. -1 means the parameter must be optimized by the tool "
|
|
22 />
|
|
23
|
|
24 <param name="gamma" type="float" value="-1"
|
|
25 label="gamma" help="the gamma parameter of SVM used by radial, polynomial and sigmoid kernels. Suitable values are between 1e-06 and 1. -1 means the parameter must be optimized by the tool "
|
|
26 />
|
|
27
|
|
28 <param name="coeficient" type="float" value="-1"
|
|
29 label="coeficient" help="the coeficient parameter of SVM used by polynomial kernel. Suitable values are between 0 and 4. -1 means the parameter must be optimized by the tool "
|
|
30 />
|
|
31
|
|
32 <param name="degree" type="float" value="-1"
|
|
33 label="degree" help="the maximum dgree of the polynomial kernel. Suitable values are between 1 and 3. -1 means the parameter must be optimized by the tool "
|
|
34 />
|
|
35
|
|
36 <param name="eval" type="integer" value="0"
|
|
37 label="do evaluation" help=" whether to produce a model or to use folds to evaluate the tool. 1 means the tool will be evaluate (and a folds argument is required) any other value produces a model "
|
|
38 />
|
|
39
|
|
40 <param name="folds" type="data" optional="true"
|
|
41 label="folds" help=" OPTIONAL ARGUMENT path to a folds file containing folds indexes in a R list called /folds/ such as produced by the folds tools in OGHMA suite. "
|
|
42 />
|
|
43
|
|
44 <!-- <param name="model" type="text"
|
|
45 label="path to the output folds" help= " a path to a file where the results (depending on the chosen mode) will be writen"
|
|
46 /> -->
|
|
47 </inputs>
|
|
48
|
|
49 <configfiles>
|
|
50 <configfile name="config">
|
|
51 ## Desc: this file is sourced in encode wrapper script
|
|
52 ## as means to pass all galaxy params to R
|
|
53 "${genotype}" -> genotype
|
|
54 "${phenotype}" -> phenotype
|
|
55 "${eval}" -> doEvaluation
|
|
56 "${folds}" -> folds
|
|
57 "${output1}" -> out
|
|
58 "${kernel}" -> kernel
|
|
59 "${gamma}" -> g
|
|
60 "${cost}" -> c
|
|
61 "${coeficient}" -> coef
|
|
62 "${degree}" -> d
|
|
63
|
|
64 </configfile>
|
|
65 </configfiles>
|
|
66
|
|
67 <outputs>
|
|
68 <data format="tabular" name = "output1" label="SVM output" />
|
|
69 </outputs>
|
|
70
|
|
71 <help>
|
|
72 make the classification using the SVM method
|
|
73 </help>
|
|
74 </tool> |