annotate tools/regVariation/draw_stacked_barplots.xml @ 1:cdcb0ce84a1b

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:45:15 -0500
parents 9071e359b9a3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 <tool id="draw_stacked_barplots" name="Draw Stacked Bar Plots" version="1.0.0">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>for different categories and different criteria</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <command interpreter="perl">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 draw_stacked_barplots.pl $inputFile1 $outputFile1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 </command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <param format="tabular" name="inputFile1" type="data" label="Select the input file"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <data format="pdf" name="outputFile1"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 </outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 <tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 <test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 <param name="inputFile1" value="categories_criteria.tabular" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <output name="outputFile1" file="stacked_barplot.pdf" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 **What it does**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
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
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 drawn, such that the height of each stacked sub-bar represents the number of elements in each category satisfying that criterion.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
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:
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
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.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38 Let us suppose that the input file represent the number of significant motifs in each motif category for each window size::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40 10bp 20bp 40bp 80bp 160bp 320bp 640bp 1280bp
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 Deletion_Hotspots 2 3 4 4 5 6 7 7
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42 Dna_Pol_Pause/Frameshift_Hotspots 8 10 14 17 18 15 19 20
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 Indel_Hotspots 1 1 1 2 1 0 0 0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44 Insertion_Hotspots 0 0 1 2 2 2 2 5
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 Topoisomerase_Cleavage_Sites 2 3 5 4 3 3 4 4
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46 Translin_Targets 0 0 2 2 3 3 3 2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 VDJ_Recombination_Signals 0 0 1 1 1 2 2 2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 X-like_Sites 4 4 4 5 6 7 7 10
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 Runnig the program will give the following output::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53 The stacked bars plot representing the data in the input file.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55 .. image:: ./static/operation_icons/stacked_bars_plot.png
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59 </tool>