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>
|
56
|
6 <requirement type="package" version="3.0.3">R</requirement>
|
62
|
7 <requirement type="package" version="1.0">charts_r_packages</requirement>
|
20
|
8 </requirements>
|
|
9 <command>Rscript \$SCRIPT_PATH/charts.r -w \$SCRIPT_PATH/ -m ${module} -i ${input} -c '${columns}' -s '${settings}' -o ${output}
|
|
10 </command>
|
|
11 <inputs>
|
|
12 <param name="input" type="data" label="Input dataset" format="tabular" />
|
|
13 <param name="module" type="select" label="R-script">
|
33
|
14 <option value="boxplot">boxplot</option>
|
|
15 <option value="heatmap">heatmap</option>
|
|
16 <option value="histogram">histogram</option>
|
|
17 <option value="histogramdiscrete">histogramdiscrete</option>
|
20
|
18 </param>
|
66
|
19 <param name="columns" type="text" area="true" label="Columns string (i.e key1: column, key2: column)" value="column: 2"/>
|
|
20 <param name="settings" type="text" area="true" label="Options string (i.e data_limit: 1000)" value=""/>
|
20
|
21 </inputs>
|
|
22 <outputs>
|
|
23 <data name="output" format="tabular" />
|
|
24 </outputs>
|
|
25 <tests>
|
|
26 <test>
|
|
27 <param name="input" value="tabular.txt" />
|
|
28 <param name="module" value="histogram" />
|
|
29 <param name="columns" value="key1: 2" />
|
|
30 <param name="settings" value="" />
|
|
31 <output name="output" file="histogram.000.txt" lines_diff="2"/>
|
|
32 </test>
|
|
33 <test>
|
|
34 <param name="input" value="tabular.txt" />
|
|
35 <param name="module" value="histogram" />
|
|
36 <param name="columns" value="key1: 2, key2: 3, key3: 4" />
|
|
37 <param name="settings" value="" />
|
|
38 <output name="output" file="histogram.001.txt" lines_diff="2"/>
|
|
39 </test>
|
|
40 <test>
|
54
|
41 <param name="input" value="tabular_data.txt" />
|
|
42 <param name="module" value="histogram" />
|
|
43 <param name="columns" value="key1: 6" />
|
|
44 <param name="settings" value="" />
|
|
45 <output name="output" file="histogram.002.txt" lines_diff="2"/>
|
|
46 </test>
|
|
47 <test>
|
48
|
48 <param name="input" value="tabular_single.txt" />
|
|
49 <param name="module" value="histogram" />
|
|
50 <param name="columns" value="key1: 1" />
|
|
51 <param name="settings" value="" />
|
|
52 <output name="output" file="histogram.003.txt" lines_diff="2"/>
|
|
53 </test>
|
|
54 <test>
|
20
|
55 <param name="input" value="tabular.txt" />
|
|
56 <param name="module" value="boxplot" />
|
|
57 <param name="columns" value="key1: 2" />
|
|
58 <param name="settings" value="" />
|
|
59 <output name="output" file="boxplot.000.txt" lines_diff="2"/>
|
|
60 </test>
|
|
61 <test>
|
|
62 <param name="input" value="tabular.txt" />
|
|
63 <param name="module" value="boxplot" />
|
|
64 <param name="columns" value="key1: 2, key2: 3, key3: 4" />
|
|
65 <param name="settings" value="" />
|
|
66 <output name="output" file="boxplot.001.txt" lines_diff="2"/>
|
|
67 </test>
|
33
|
68 <test>
|
|
69 <param name="input" value="tabular_matrix.txt" />
|
|
70 <param name="module" value="histogramdiscrete" />
|
|
71 <param name="columns" value="key1: 1, key2: 2, key3: 3" />
|
|
72 <param name="settings" value="" />
|
|
73 <output name="output" file="histogramdiscrete.000.txt" lines_diff="2"/>
|
|
74 </test>
|
|
75 <test>
|
|
76 <param name="input" value="tabular_matrix.txt" />
|
|
77 <param name="module" value="heatmap" />
|
|
78 <param name="columns" value="key1: 1, key2: 2, key3: 3" />
|
|
79 <param name="settings" value="" />
|
|
80 <output name="output" file="heatmap.000.txt" lines_diff="2"/>
|
|
81 </test>
|
20
|
82 </tests>
|
|
83 </tool> |