20
|
1 <tool id="charts" name="Charts" version="1.0.0">
|
|
2 <hidden>True</hidden>
|
|
3 <description>wrapper for R</description>
|
|
4 <requirements>
|
|
5 <requirement type="set_environment">SCRIPT_PATH</requirement>
|
|
6 <requirement type="package" version="2.15.0">R</requirement>
|
|
7 </requirements>
|
|
8 <command>Rscript \$SCRIPT_PATH/charts.r -w \$SCRIPT_PATH/ -m ${module} -i ${input} -c '${columns}' -s '${settings}' -o ${output}
|
|
9 </command>
|
|
10 <inputs>
|
|
11 <param name="input" type="data" label="Input dataset" format="tabular" />
|
|
12 <param name="module" type="select" label="R-script">
|
|
13 <option value="histogram">Histogram</option>
|
|
14 <option value="boxplot">Box plot</option>
|
|
15 </param>
|
|
16 <param name="columns" type="text" label="Columns string (i.e key1: column, key2: column)" value="column: 2"/>
|
|
17 <param name="settings" type="text" label="Options string (i.e data_limit: 1000)" value=""/>
|
|
18 </inputs>
|
|
19 <outputs>
|
|
20 <data name="output" format="tabular" />
|
|
21 </outputs>
|
|
22 <tests>
|
|
23 <test>
|
|
24 <param name="input" value="tabular.txt" />
|
|
25 <param name="module" value="histogram" />
|
|
26 <param name="columns" value="key1: 2" />
|
|
27 <param name="settings" value="" />
|
|
28 <output name="output" file="histogram.000.txt" lines_diff="2"/>
|
|
29 </test>
|
|
30 <test>
|
|
31 <param name="input" value="tabular.txt" />
|
|
32 <param name="module" value="histogram" />
|
|
33 <param name="columns" value="key1: 2, key2: 3, key3: 4" />
|
|
34 <param name="settings" value="" />
|
|
35 <output name="output" file="histogram.001.txt" lines_diff="2"/>
|
|
36 </test>
|
|
37 <test>
|
|
38 <param name="input" value="tabular.txt" />
|
|
39 <param name="module" value="boxplot" />
|
|
40 <param name="columns" value="key1: 2" />
|
|
41 <param name="settings" value="" />
|
|
42 <output name="output" file="boxplot.000.txt" lines_diff="2"/>
|
|
43 </test>
|
|
44 <test>
|
|
45 <param name="input" value="tabular.txt" />
|
|
46 <param name="module" value="boxplot" />
|
|
47 <param name="columns" value="key1: 2, key2: 3, key3: 4" />
|
|
48 <param name="settings" value="" />
|
|
49 <output name="output" file="boxplot.001.txt" lines_diff="2"/>
|
|
50 </test>
|
|
51 </tests>
|
|
52 </tool> |