annotate histogram2.xml @ 3:d0b9dd19e919 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
author devteam
date Fri, 07 Feb 2025 21:26:17 +0000
parents 6f134426c2b0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
1 <tool id="histogram_rpy" name="Histogram" version="1.0.5">
0
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
2 <description>of a numeric column</description>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
3 <requirements>
2
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
4 <requirement type="package" version="3.3.2">rpy2</requirement>
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
5 <requirement type="package" version="3.6.0">R</requirement>
0
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
6 </requirements>
2
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
7 <command>
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
8 python '$__tool_directory__/histogram.py'
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
9 '$input'
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
10 '$out_file1'
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
11 $numerical_column
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
12 '$title'
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
13 '$xlab'
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
14 $breaks
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
15 $density
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
16 $frequency
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
17 </command>
0
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
18 <inputs>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
19 <param name="input" type="data" format="tabular" label="Dataset" help="Dataset missing? See TIP below"/>
3
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
20 <conditional name="cols">
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
21 <param name="header" type="select" label="Does the table have a header?" refresh_on_change="true" help="If the table has a header, the column can be selected using the name instead of the index.">
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
22 <option value="yes">yes</option>
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
23 <option value="no">no</option>
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
24 </param>
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
25 <when value="yes">
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
26 <param name="numerical_column" type="data_column" data_ref="input" numerical="True" use_header_names="true" label="Numerical column for x axis" />
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
27 </when>
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
28 <when value="no">
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
29 <param name="numerical_column" type="data_column" data_ref="input" numerical="True" label="Numerical column for x axis" />
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
30 </when>
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
31 </conditional>
1
cdb9e89e2970 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
32 <param name="breaks" type="integer" value="0" label="Number of breaks (bars)"/>
cdb9e89e2970 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
33 <param name="title" type="text" value="Histogram" label="Plot title"/>
cdb9e89e2970 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit a1517c9d22029095120643bbe2c8fa53754dd2b7
devteam
parents: 0
diff changeset
34 <param name="xlab" type="text" value="V1" label="Label for x axis"/>
0
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
35 <param name="density" type="boolean" checked="yes" label="Include smoothed density"/>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
36 <param name="frequency" type="boolean" checked="no" label="Plot as frequency (counts)"/>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
37 </inputs>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
38 <outputs>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
39 <data format="pdf" name="out_file1" />
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
40 </outputs>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
41 <tests>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
42 <test>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
43 <param name="input" value="histogram_in1.tabular" ftype="tabular"/>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
44 <param name="numerical_column" value="2"/>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
45 <param name="breaks" value="0"/>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
46 <param name="title" value="Histogram"/>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
47 <param name="xlab" value="V1"/>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
48 <param name="density" value="true"/>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
49 <param name="frequency" value="false"/>
2
6f134426c2b0 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit 5666c97386c843c109e45acce462243392285b84"
devteam
parents: 1
diff changeset
50 <output name="out_file1" file="histogram_out1.pdf" compare="sim_size"/>
0
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
51 </test>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
52 </tests>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
53 <help>
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
54
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
55 .. class:: infomark
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
56
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
57 **TIP:** To remove comment lines that do not begin with a *#* character, use *Text Manipulation-&gt;Remove beginning*
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
58
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
59 .. class:: infomark
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
60
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
61 **TIP:** If your data is not TAB delimited, use *Text Manipulation-&gt;Convert*
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
62
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
63 -----
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
64
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
65 **Syntax**
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
66
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
67 This tool computes a histogram of the numerical values in a column of a dataset.
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
68
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
69 - All invalid, blank and comment lines in the dataset are skipped. The number of skipped lines is displayed in the resulting history item.
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
70 - **Column for x axis** - only numerical columns are possible.
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
71 - **Number of breaks(bars)** - breakpoints between histogram cells. Value of '0' will determine breaks automatically.
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
72 - **Plot title** - the histogram title.
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
73 - **Label for x axis** - the label of the x axis for the histogram.
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
74 - **Include smoothed density** - if checked, the resulting graph will join the given corresponding points with line segments.
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
75
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
76 -----
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
77
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
78 **Example**
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
79
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
80 - Input file::
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
81
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
82 1 68 4.1
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
83 2 71 4.6
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
84 3 62 3.8
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
85 4 75 4.4
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
86 5 58 3.2
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
87 6 60 3.1
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
88 7 67 3.8
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
89 8 68 4.1
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
90 9 71 4.3
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
91 10 69 3.7
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
92
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
93 - Create a histogram on column 2 of the above dataset.
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
94
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
95 .. image:: histogram2.png
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
96
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
97 </help>
3
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
98 <citations>
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
99 <citation type="doi">10.1145/3386334</citation>
d0b9dd19e919 planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram commit e67a9cc9a7b253ba46df745f5fd6bf26282e97cd
devteam
parents: 2
diff changeset
100 </citations>
0
6ff47de059a0 Imported from capsule None
devteam
parents:
diff changeset
101 </tool>