Mercurial > repos > kuyt002 > vennerable_r
comparison vennerable/Vennerable.xml @ 0:77bbf955e8de default tip
initial commit
author | eric |
---|---|
date | Thu, 06 Nov 2014 15:07:54 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:77bbf955e8de |
---|---|
1 <tool id="Vennerable" name="Vennerable" version="1.2c" > | |
2 <description>: Plot data in Venn or Edwards/Venn-like diagrams</description> | |
3 <command> | |
4 R --slave --vanilla --file=\$VENNERABLE_SCRIPT_PATH/vennerable/Vennerable.R | |
5 --args $inputFile | |
6 #if $opt.userSpecified == "Yes" | |
7 default | |
8 #else | |
9 "$opt.xNames" | |
10 #end if | |
11 $weighting | |
12 #if $imagetype.value == "svg" | |
13 $outputFile_svg | |
14 $plottype | |
15 $resolution | |
16 svg | |
17 #else if $imagetype.value == "png" | |
18 $outputFile_png | |
19 $plottype | |
20 $resolution | |
21 png | |
22 #else | |
23 $outputFile_pdf | |
24 $plottype | |
25 $resolution | |
26 pdf | |
27 #end if | |
28 2>$Vennerable_log | |
29 1>>$Vennerable_log | |
30 </command> | |
31 <inputs> | |
32 <param name="inputFile" format="tabular" type="data" label="Data set" /> | |
33 <conditional name="opt"> | |
34 <param name="userSpecified" type="select" label="Use column headers as dataset names?"> | |
35 <option value="Yes">Yes</option> | |
36 <option value="No">No</option> | |
37 </param> | |
38 <when value="Yes"> | |
39 </when> | |
40 <when value="No"> | |
41 <param name="xNames" type="text" label="Alternative data names" value="A,B,C,D" help="(comma-separated)"/> | |
42 </when> | |
43 </conditional> | |
44 <param name="plottype" type="select" label="Plot type to use" help="some other options might get disabled for certain plottypes" > | |
45 <option value="AWFE" selected="True">AWFE: Edwards-Venn (Non-weighted up to 5 datasets)</option> | |
46 <option value="ChowRuskey">Chow-Ruskey (always weigthed max 9 sets common intersect not 0)</option> | |
47 <option value="ellipses">Ellipses (4 datasets only and always non-weighted)</option> | |
48 <option value="circles">Circles (max 3 datasets)</option> | |
49 <option value="squares">Squares (max 4 datasets non-weighted)</option> | |
50 <option value="battle">Edwards-Venn Squares battle (max 9 datasets, non-weighted)</option> | |
51 </param> | |
52 <param name="weighting" type="select" label="Use weighting for data in plot" > | |
53 <option value="FALSE" selected="True">Non-weighted</option> | |
54 <option value="TRUE">Weighted</option> | |
55 </param> | |
56 <param name="resolution" type="integer" label="Resolution to use (dpi)" value="150" help="Plot features can be sized with this setting (PNG only). Lower (50) is larger text.<br /><i>Default is vector graphics format SVG!</i>" /> | |
57 <param name="imagetype" type="select" label="Image output format" help="Scalable Vector Graphics (SVG) format is best for post processing" > | |
58 <option value="pdf" selected="True">PDF</option> | |
59 <option value="svg">SVG</option> | |
60 <option value="png">PNG</option> | |
61 </param> | |
62 </inputs> | |
63 <outputs> | |
64 <data name="outputFile_svg" format="svg" label="Venn diagram svg of ${inputFile.name}"> | |
65 <filter>imagetype=="svg"</filter> | |
66 </data> | |
67 <data name="outputFile_png" format="png" label="Venn diagram png of ${inputFile.name}"> | |
68 <filter>imagetype=="png"</filter> | |
69 </data> | |
70 <data name="outputFile_pdf" format="pdf" label="Venn diagram pdf of ${inputFile.name}"> | |
71 <filter>imagetype=="pdf"</filter> | |
72 </data> | |
73 <data name="Vennerable_log" format="tabular" label="Vennerable output and error log file" /> | |
74 </outputs> | |
75 <tests> | |
76 <test> | |
77 </test> | |
78 </tests> | |
79 <requirements> | |
80 <requirement type="package" version="3.0.3">R</requirement> | |
81 <requirement type="package" version="1.0">vennerable_r_packages</requirement> | |
82 <requirement type="set_environment">VENNERABLE_SCRIPT_PATH</requirement> | |
83 </requirements> | |
84 <help> | |
85 | | |
86 | |
87 | |
88 **What it does** | |
89 | |
90 Vennerable V3.0 (07-10-2014) | |
91 | |
92 This tool will use the Vennerable R package to plot data as weighted or un-weighted diagrams such as Venn, Edwards-Venn and Chow-Rusky. | |
93 | |
94 The tool can take from 2 to 9 collumns (in battle mode) of data but more are adviced not to be used (for speed and clarity). | |
95 | |
96 Since version Vennerable version 3 it supports up to 9 datasets in battle mode. Wrapper version 1.2 and up support output in svg, pdf and png. | |
97 | |
98 ----- | |
99 | |
100 **Input** | |
101 | |
102 It takes a tabular file containing identifiers. Matches will be calculated automatically. | |
103 | |
104 Be sure to specify headers if you haven't any in your dataset! Otherwise the top row of data will be excluded. | |
105 | |
106 :: | |
107 | |
108 DataA DataB DataC DataD | |
109 HUM1 AGK2 AGK2 RTT3 | |
110 AGK2 ZZE3 ERT3 ZPD3 | |
111 ZPD3 AAW3 RTT3 WER2 | |
112 WER2 HUM1 RRW4 DUM1 | |
113 | |
114 ----- | |
115 | |
116 **Example** | |
117 | |
118 .. image:: ../static/images/WURtools/VennerablePlot.png | |
119 | |
120 ----- | |
121 | |
122 **References** | |
123 | |
124 - alex.bossers@wur.nl | |
125 - Vennerable R package: http://r-forge.r-project.org/projects/vennerable/ | |
126 | |
127 ----- | |
128 | |
129 .. class:: infomark | |
130 | |
131 **TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert* | |
132 | |
133 | |
134 </help> | |
135 </tool> |