|
11
|
1 <tool id="randomForest" name="randomForest" version="1.0.1">
|
|
|
2 <description>predict phenotype using a random forest approach</description>
|
|
|
3 <command interpreter="Rscript">
|
|
|
4 randomForest.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
|
|
41
|
16 <param name="eval" type="integer" value="0"
|
|
11
|
17 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 "
|
|
|
18 />
|
|
|
19
|
|
|
20 <param name="ntree" type="float" value="1000"
|
|
|
21 label="ntree" help="the ntree parameter of Random Forest. Suitable value could be around 1000. "
|
|
|
22 />
|
|
|
23
|
|
|
24 <param name="mtry" type="float" value="-1"
|
|
|
25 label="mtry" help="the mtry parameter of Random Forest (number of node per tree). default value are around nuber_of_variable/3 through optimization is highly desirable. -1 means the parameter must be optimized by the tool"
|
|
|
26 />
|
|
|
27
|
|
|
28 <param name="folds" type="data" optional="true"
|
|
|
29 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. "
|
|
|
30 />
|
|
|
31
|
|
|
32 <param name="model" type="text"
|
|
|
33 label="path to the output folds" help= " a path to a file where the results (depending on the chosen mode) will be writen"
|
|
|
34 />
|
|
|
35 </inputs>
|
|
|
36
|
|
|
37 <configfiles>
|
|
|
38 <configfile name="config">
|
|
|
39 ## Desc: this file is sourced in encode wrapper script
|
|
|
40 ## as means to pass all galaxy params to R
|
|
|
41 "${genotype}" -> genotype
|
|
|
42 "${phenotype}" -> phenotype
|
|
|
43 "${eval}" -> doEvaluation
|
|
|
44 "${folds}" -> folds
|
|
|
45 "${model}" -> out
|
|
|
46 "${mtry}" -> mtry
|
|
|
47 "${ntree}" -> ntree
|
|
|
48
|
|
|
49 </configfile>
|
|
|
50 </configfiles>
|
|
|
51
|
|
|
52 <outputs>
|
|
|
53 <data format="tabular" name = "output1" label="random forest output" />
|
|
|
54 </outputs>
|
|
|
55
|
|
|
56 <help>
|
|
|
57 make the classification using the random forest method
|
|
|
58 </help>
|
|
|
59 </tool> |