comparison draw_stacked_barplots.xml @ 0:063ecbe59faf draft

Uploaded tool tarball.
author devteam
date Wed, 25 Sep 2013 10:29:15 -0400
parents
children e997b710e38a
comparison
equal deleted inserted replaced
-1:000000000000 0:063ecbe59faf
1 <tool id="draw_stacked_barplots" name="Draw Stacked Bar Plots" version="1.0.0">
2 <description>for different categories and different criteria</description>
3 <requirements>
4 <requirement type="package" version="2.11.0">R</requirement>
5 </requirements>
6 <command interpreter="perl">
7 draw_stacked_barplots.pl $inputFile1 $outputFile1
8 </command>
9
10 <inputs>
11 <param format="tabular" name="inputFile1" type="data" label="Select the input file"/>
12 </inputs>
13
14 <outputs>
15 <data format="pdf" name="outputFile1"/>
16 </outputs>
17
18 <tests>
19 <test>
20 <param name="inputFile1" value="categories_criteria.tabular" />
21 <output name="outputFile1" file="stacked_barplot.pdf" />
22 </test>
23 </tests>
24
25 <help>
26
27 .. class:: infomark
28
29 **What it does**
30
31 This program draws, in a pdf file, a stacked bars plot for different categories of data and for different criteria. For each criterion a stacked bar is
32 drawn, such that the height of each stacked sub-bar represents the number of elements in each category satisfying that criterion.
33
34 - The input consists of a TABULAR format file, where the left column represents the names of categories and the other columns are headed by the names of criteria, such that each data value in the file represents the number of elements in a certain category satisfying a certain criterion:
35
36 - The output is a PDF file containing a stacked bars plot representing the number of elements in each category satisfying each criterion. The drawing is done using R code.
37
38 **Example**
39
40 Let us suppose that the input file represent the number of significant motifs in each motif category for each window size::
41
42 10bp 20bp 40bp 80bp 160bp 320bp 640bp 1280bp
43 Deletion_Hotspots 2 3 4 4 5 6 7 7
44 Dna_Pol_Pause/Frameshift_Hotspots 8 10 14 17 18 15 19 20
45 Indel_Hotspots 1 1 1 2 1 0 0 0
46 Insertion_Hotspots 0 0 1 2 2 2 2 5
47 Topoisomerase_Cleavage_Sites 2 3 5 4 3 3 4 4
48 Translin_Targets 0 0 2 2 3 3 3 2
49 VDJ_Recombination_Signals 0 0 1 1 1 2 2 2
50 X-like_Sites 4 4 4 5 6 7 7 10
51
52
53 Runnig the program will give the following output::
54
55 The stacked bars plot representing the data in the input file.
56
57 .. image:: ${static_path}/operation_icons/stacked_bars_plot.png
58
59 </help>
60
61 </tool>