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 | |
---|
4 | <command interpreter="perl"> |
---|
5 | draw_stacked_barplots.pl $inputFile1 $outputFile1 |
---|
6 | </command> |
---|
7 | |
---|
8 | <inputs> |
---|
9 | <param format="tabular" name="inputFile1" type="data" label="Select the input file"/> |
---|
10 | </inputs> |
---|
11 | |
---|
12 | <outputs> |
---|
13 | <data format="pdf" name="outputFile1"/> |
---|
14 | </outputs> |
---|
15 | |
---|
16 | <tests> |
---|
17 | <test> |
---|
18 | <param name="inputFile1" value="categories_criteria.tabular" /> |
---|
19 | <output name="outputFile1" file="statcked_bars_plot.pdf" /> |
---|
20 | </test> |
---|
21 | </tests> |
---|
22 | |
---|
23 | <help> |
---|
24 | |
---|
25 | .. class:: infomark |
---|
26 | |
---|
27 | **What it does** |
---|
28 | |
---|
29 | 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 |
---|
30 | drawn, such that the height of each stacked sub-bar represents the number of elements in each category satisfying that criterion. |
---|
31 | |
---|
32 | - 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: |
---|
33 | |
---|
34 | - 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. |
---|
35 | |
---|
36 | **Example** |
---|
37 | |
---|
38 | Let us suppose that the input file represent the number of significant motifs in each motif category for each window size:: |
---|
39 | |
---|
40 | 10bp 20bp 40bp 80bp 160bp 320bp 640bp 1280bp |
---|
41 | Deletion_Hotspots 2 3 4 4 5 6 7 7 |
---|
42 | Dna_Pol_Pause/Frameshift_Hotspots 8 10 14 17 18 15 19 20 |
---|
43 | Indel_Hotspots 1 1 1 2 1 0 0 0 |
---|
44 | Insertion_Hotspots 0 0 1 2 2 2 2 5 |
---|
45 | Topoisomerase_Cleavage_Sites 2 3 5 4 3 3 4 4 |
---|
46 | Translin_Targets 0 0 2 2 3 3 3 2 |
---|
47 | VDJ_Recombination_Signals 0 0 1 1 1 2 2 2 |
---|
48 | X-like_Sites 4 4 4 5 6 7 7 10 |
---|
49 | |
---|
50 | |
---|
51 | Runnig the program will give the following output:: |
---|
52 | |
---|
53 | The stacked bars plot representing the data in the input file. |
---|
54 | |
---|
55 | .. image:: ../static/operation_icons/stacked_bars_plot.png |
---|
56 | |
---|
57 | </help> |
---|
58 | |
---|
59 | </tool> |
---|