annotate melt.xml @ 0:df64c1491508 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
author iuc
date Tue, 22 Aug 2017 07:29:32 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
1 <tool id="melt" name="melt" version="@VERSION@">
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
2 <description>collapse combinations of variables:values to single lines</description>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
3 <macros>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
4 <import>macros.xml</import>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
5 </macros>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
6 <expand macro="requirements"></expand>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
8 cat '$script' &&
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
9 Rscript '$script'
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
10 ]]></command>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
11 <configfiles>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
12 <configfile name="script"><![CDATA[
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
13 ## Setup R error handling to go to stderr
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
14 options(show.error.messages=F, error=function(){cat(geterrmessage(),file=stderr());q("no",1,F)})
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
15 loc <- Sys.setlocale("LC_MESSAGES", "en_US.UTF-8")
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
16
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
17 ## Import library
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
18 library("reshape2")
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
19
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
20 input <- read.csv('$input', sep='\t', header=TRUE)
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
21 minput <- melt(input)
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
22 write.table(minput, "output.tabular", sep="\t", quote=FALSE, row.names=FALSE)
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
23
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
24 ]]></configfile>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
25 </configfiles>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
26 <inputs>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
27 <param name="input" type="data" format="tabular" label="Input should have column headers - these will be the variable IDs that are summarized"/>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
28
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
29 </inputs>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
30 <outputs>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
31 <data name="output" format="tabular" from_work_dir="output.tabular"/>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
32 </outputs>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
33 <tests>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
34 <test>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
35 <param name="input" value="mtcars.txt"/>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
36 <output name="output" file="melt_result1.tabular"/>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
37 </test>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
38 </tests>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
39 <help><![CDATA[
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
40 This tool will apply the melt function of the reshape2 R package.
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
41
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
42 The melt function summarizes each unique variable:value combination on a single line. An example can be found here: http://www.statmethods.net/management/reshape.html
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
43
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
44 ]]></help>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
45 <citations>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
46 <citation type="bibtex">
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
47 @Article{,
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
48 title = {Reshaping Data with the {reshape} Package},
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
49 author = {Hadley Wickham},
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
50 journal = {Journal of Statistical Software},
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
51 year = {2007},
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
52 volume = {21},
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
53 number = {12},
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
54 pages = {1--20},
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
55 url = {http://www.jstatsoft.org/v21/i12/},
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
56 }
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
57 </citation>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
58 </citations>
df64c1491508 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/reshape2 commit 6e466ce83e2e5c0dd0ba30356d0488cf74574b8f
iuc
parents:
diff changeset
59 </tool>