annotate tools/plotting/histogram2.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="histogram_rpy" name="Histogram" version="1.0.3">
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 <description>of a numeric column</description>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3 <command interpreter="python">histogram.py $input $out_file1 $numerical_column "$title" "$xlab" $breaks $density $frequency</command>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 <inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 <param name="input" type="data" format="tabular" label="Dataset" help="Dataset missing? See TIP below"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 <param name="numerical_column" type="data_column" data_ref="input" numerical="True" label="Numerical column for x axis" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 <param name="breaks" type="integer" size="4" value="0" label="Number of breaks (bars)"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 <param name="title" type="text" size="30" value="Histogram" label="Plot title"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 <param name="xlab" type="text" size="30" value="V1" label="Label for x axis"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 <param name="density" type="boolean" checked="yes" label="Include smoothed density"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 <param name="frequency" type="boolean" checked="no" label="Plot as frequency (counts)"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 </inputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 <outputs>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 <data format="pdf" name="out_file1" />
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 </outputs>
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="input" value="histogram_in1.tabular" ftype="tabular"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 <param name="numerical_column" value="2"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
20 <param name="breaks" value="0"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
21 <param name="title" value="Histogram"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
22 <param name="xlab" value="V1"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
23 <param name="density" value="true"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
24 <param name="frequency" value="false"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
25 <output name="out_file1" file="histogram_out1.pdf"/>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
26 </test>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
27 </tests>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
28 <requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
29 <requirement type="python-module">rpy</requirement>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
30 </requirements>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
31 <help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
32
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
33 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
34
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
35 **TIP:** To remove comment lines that do not begin with a *#* character, use *Text Manipulation-&gt;Remove beginning*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
36
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
37 .. class:: infomark
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
38
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
39 **TIP:** If your data is not TAB delimited, use *Text Manipulation-&gt;Convert*
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
40
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
41 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
42
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
43 **Syntax**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
44
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
45 This tool computes a histogram of the numerical values in a column of a dataset.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
46
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
47 - All invalid, blank and comment lines in the dataset are skipped. The number of skipped lines is displayed in the resulting history item.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
48 - **Column for x axis** - only numerical columns are possible.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
49 - **Number of breaks(bars)** - breakpoints between histogram cells. Value of '0' will determine breaks automatically.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
50 - **Plot title** - the histogram title.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
51 - **Label for x axis** - the label of the x axis for the histogram.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
52 - **Include smoothed density** - if checked, the resulting graph will join the given corresponding points with line segments.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
53
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
54 -----
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
55
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
56 **Example**
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
57
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
58 - Input file::
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
59
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
60 1 68 4.1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
61 2 71 4.6
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
62 3 62 3.8
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
63 4 75 4.4
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
64 5 58 3.2
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
65 6 60 3.1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
66 7 67 3.8
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
67 8 68 4.1
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
68 9 71 4.3
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
69 10 69 3.7
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
70
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
71 - Create a histogram on column 2 of the above dataset.
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
72
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
73 .. image:: ./static/images/histogram2.png
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
74
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
75 </help>
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
76 </tool>