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">
|
33
|
13 <option value="boxplot">boxplot</option>
|
|
14 <option value="heatmap">heatmap</option>
|
|
15 <option value="histogram">histogram</option>
|
|
16 <option value="histogramdiscrete">histogramdiscrete</option>
|
20
|
17 </param>
|
|
18 <param name="columns" type="text" label="Columns string (i.e key1: column, key2: column)" value="column: 2"/>
|
|
19 <param name="settings" type="text" label="Options string (i.e data_limit: 1000)" value=""/>
|
|
20 </inputs>
|
|
21 <outputs>
|
|
22 <data name="output" format="tabular" />
|
|
23 </outputs>
|
|
24 <tests>
|
|
25 <test>
|
|
26 <param name="input" value="tabular.txt" />
|
|
27 <param name="module" value="histogram" />
|
|
28 <param name="columns" value="key1: 2" />
|
|
29 <param name="settings" value="" />
|
|
30 <output name="output" file="histogram.000.txt" lines_diff="2"/>
|
|
31 </test>
|
|
32 <test>
|
|
33 <param name="input" value="tabular.txt" />
|
|
34 <param name="module" value="histogram" />
|
|
35 <param name="columns" value="key1: 2, key2: 3, key3: 4" />
|
|
36 <param name="settings" value="" />
|
|
37 <output name="output" file="histogram.001.txt" lines_diff="2"/>
|
|
38 </test>
|
|
39 <test>
|
54
|
40 <param name="input" value="tabular_data.txt" />
|
|
41 <param name="module" value="histogram" />
|
|
42 <param name="columns" value="key1: 6" />
|
|
43 <param name="settings" value="" />
|
|
44 <output name="output" file="histogram.002.txt" lines_diff="2"/>
|
|
45 </test>
|
|
46 <test>
|
48
|
47 <param name="input" value="tabular_single.txt" />
|
|
48 <param name="module" value="histogram" />
|
|
49 <param name="columns" value="key1: 1" />
|
|
50 <param name="settings" value="" />
|
|
51 <output name="output" file="histogram.003.txt" lines_diff="2"/>
|
|
52 </test>
|
|
53 <test>
|
20
|
54 <param name="input" value="tabular.txt" />
|
|
55 <param name="module" value="boxplot" />
|
|
56 <param name="columns" value="key1: 2" />
|
|
57 <param name="settings" value="" />
|
|
58 <output name="output" file="boxplot.000.txt" lines_diff="2"/>
|
|
59 </test>
|
|
60 <test>
|
|
61 <param name="input" value="tabular.txt" />
|
|
62 <param name="module" value="boxplot" />
|
|
63 <param name="columns" value="key1: 2, key2: 3, key3: 4" />
|
|
64 <param name="settings" value="" />
|
|
65 <output name="output" file="boxplot.001.txt" lines_diff="2"/>
|
|
66 </test>
|
33
|
67 <test>
|
|
68 <param name="input" value="tabular_matrix.txt" />
|
|
69 <param name="module" value="histogramdiscrete" />
|
|
70 <param name="columns" value="key1: 1, key2: 2, key3: 3" />
|
|
71 <param name="settings" value="" />
|
|
72 <output name="output" file="histogramdiscrete.000.txt" lines_diff="2"/>
|
|
73 </test>
|
|
74 <test>
|
|
75 <param name="input" value="tabular_matrix.txt" />
|
|
76 <param name="module" value="heatmap" />
|
|
77 <param name="columns" value="key1: 1, key2: 2, key3: 3" />
|
|
78 <param name="settings" value="" />
|
|
79 <output name="output" file="heatmap.000.txt" lines_diff="2"/>
|
|
80 </test>
|
20
|
81 </tests>
|
|
82 </tool> |