Mercurial > repos > moheydarian > cast
changeset 0:25701d50da89 draft
Uploaded
author | moheydarian |
---|---|
date | Mon, 13 Mar 2017 10:52:05 -0400 |
parents | |
children | 643e309dcd11 |
files | cast.xml |
diffstat | 1 files changed, 39 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cast.xml Mon Mar 13 10:52:05 2017 -0400 @@ -0,0 +1,39 @@ +<tool id="cast" name="cast" version="0.0.1"> + <description>collapse combinations of variables:values to single lines</description> + <requirements> + <requirement type="package">r-getopt</requirement> + <requirement type="package">r-reshape2</requirement> + </requirements> + <stdio> + <exit_code range="1:" /> + </stdio> + <command><![CDATA[ + Rscript ${__tool_directory__}/cast.R --input "$input1" --output "output.tabular" + ]]></command> + <inputs> + <param name="input1" type="data" format="tabular" label="Input should be molten data"/> + + </inputs> + <outputs> + <data name="output1" format="tabular" from_work_dir="output.tabular"/> + </outputs> + <tests> + <test> + <param name="input1" value="input.txt"/> + <output name="output1" file="output.tabular"/> + </test> + </tests> + <help><![CDATA[ +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. +The cast function summarizes each unique variable:value combination on a single line. An example can be found here: http://www.statmethods.net/management/reshape.html. Documantation on the reshape2 package can be found here: https://cran.r-project.org/web/packages/reshape2/reshape2.pdf + ]]></help> + <citations> + <citation type="bibtex"> +@misc{renameTODO, + author = {TODO, FirstTODO}, + year = {TODO}, + title = {TODO}, + url = {under construction}, +}</citation> + </citations> +</tool>