annotate randomForest.xml @ 56:374c9a2bc1c2 draft

Uploaded
author nicolas
date Wed, 26 Oct 2016 18:08:42 -0400
parents 2e68313da46b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
1 <tool id="randomForest" name="randomForest" version="1.0.1">
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
2 <description>predict phenotype using a random forest approach</description>
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
3 <command interpreter="Rscript">
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
4 randomForest.R $config &gt; ${output1}
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
5 </command>
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
6
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
7 <inputs>
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
8 <param name="genotype" type="data"
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
9 label="genotype data" help="a tabular datatype containing the encoded genotypes"
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
10 />
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
11
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
12 <param name="phenotype" type="data"
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
13 label="phenotype data" help=" a tabular datatype containing the phenotypes "
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
14 />
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
15
41
2e68313da46b Uploaded
nicolas
parents: 11
diff changeset
16 <param name="eval" type="integer" value="0"
11
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
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 "
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
18 />
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
19
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
20 <param name="ntree" type="float" value="1000"
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
21 label="ntree" help="the ntree parameter of Random Forest. Suitable value could be around 1000. "
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
22 />
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
23
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
24 <param name="mtry" type="float" value="-1"
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
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"
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
26 />
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
27
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
28 <param name="folds" type="data" optional="true"
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
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. "
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
30 />
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
31
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
32 <param name="model" type="text"
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
33 label="path to the output folds" help= " a path to a file where the results (depending on the chosen mode) will be writen"
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
34 />
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
35 </inputs>
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
36
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
37 <configfiles>
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
38 <configfile name="config">
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
39 ## Desc: this file is sourced in encode wrapper script
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
40 ## as means to pass all galaxy params to R
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
41 "${genotype}" -> genotype
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
42 "${phenotype}" -> phenotype
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
43 "${eval}" -> doEvaluation
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
44 "${folds}" -> folds
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
45 "${model}" -> out
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
46 "${mtry}" -> mtry
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
47 "${ntree}" -> ntree
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
48
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
49 </configfile>
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
50 </configfiles>
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
51
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
52 <outputs>
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
53 <data format="tabular" name = "output1" label="random forest output" />
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
54 </outputs>
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
55
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
56 <help>
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
57 make the classification using the random forest method
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
58 </help>
502fbb316d2d Uploaded
nicolas
parents:
diff changeset
59 </tool>