|
3
|
1 <tool id="cast" name="cast" version="0.0.2">
|
|
|
2 <description>expand combinations of variables:values to columnar format</description>
|
|
0
|
3 <requirements>
|
|
|
4 <requirement type="package">r-getopt</requirement>
|
|
|
5 <requirement type="package">r-reshape2</requirement>
|
|
|
6 </requirements>
|
|
|
7 <stdio>
|
|
|
8 <exit_code range="1:" />
|
|
|
9 </stdio>
|
|
|
10 <command><![CDATA[
|
|
|
11 Rscript ${__tool_directory__}/cast.R --input "$input1" --output "output.tabular"
|
|
|
12 ]]></command>
|
|
|
13 <inputs>
|
|
|
14 <param name="input1" type="data" format="tabular" label="Input should be molten data"/>
|
|
|
15
|
|
|
16 </inputs>
|
|
|
17 <outputs>
|
|
|
18 <data name="output1" format="tabular" from_work_dir="output.tabular"/>
|
|
|
19 </outputs>
|
|
|
20 <tests>
|
|
|
21 <test>
|
|
|
22 <param name="input1" value="input.txt"/>
|
|
|
23 <output name="output1" file="output.tabular"/>
|
|
|
24 </test>
|
|
|
25 </tests>
|
|
|
26 <help><![CDATA[
|
|
|
27 This tool will apply the dcast function of the reshape2 R package. The input data should be in a 'long' format or molten by the melt tool. The output will be in a wide format.
|
|
3
|
28 The cast function expands each unique variable:value combination on a single line to columnar format. Documantation on the reshape2 package can be found here: https://cran.r-project.org/web/packages/reshape2/reshape2.pdf
|
|
0
|
29 ]]></help>
|
|
|
30 <citations>
|
|
|
31 <citation type="bibtex">
|
|
|
32 @misc{renameTODO,
|
|
|
33 author = {TODO, FirstTODO},
|
|
|
34 year = {TODO},
|
|
|
35 title = {TODO},
|
|
|
36 url = {under construction},
|
|
|
37 }</citation>
|
|
|
38 </citations>
|
|
|
39 </tool>
|