Mercurial > repos > devteam > histogram
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 |
| 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 | 2 <description>of a numeric column</description> |
| 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 | 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 | 18 <inputs> |
| 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 | 35 <param name="density" type="boolean" checked="yes" label="Include smoothed density"/> |
| 36 <param name="frequency" type="boolean" checked="no" label="Plot as frequency (counts)"/> | |
| 37 </inputs> | |
| 38 <outputs> | |
| 39 <data format="pdf" name="out_file1" /> | |
| 40 </outputs> | |
| 41 <tests> | |
| 42 <test> | |
| 43 <param name="input" value="histogram_in1.tabular" ftype="tabular"/> | |
| 44 <param name="numerical_column" value="2"/> | |
| 45 <param name="breaks" value="0"/> | |
| 46 <param name="title" value="Histogram"/> | |
| 47 <param name="xlab" value="V1"/> | |
| 48 <param name="density" value="true"/> | |
| 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 | 51 </test> |
| 52 </tests> | |
| 53 <help> | |
| 54 | |
| 55 .. class:: infomark | |
| 56 | |
| 57 **TIP:** To remove comment lines that do not begin with a *#* character, use *Text Manipulation->Remove beginning* | |
| 58 | |
| 59 .. class:: infomark | |
| 60 | |
| 61 **TIP:** If your data is not TAB delimited, use *Text Manipulation->Convert* | |
| 62 | |
| 63 ----- | |
| 64 | |
| 65 **Syntax** | |
| 66 | |
| 67 This tool computes a histogram of the numerical values in a column of a dataset. | |
| 68 | |
| 69 - All invalid, blank and comment lines in the dataset are skipped. The number of skipped lines is displayed in the resulting history item. | |
| 70 - **Column for x axis** - only numerical columns are possible. | |
| 71 - **Number of breaks(bars)** - breakpoints between histogram cells. Value of '0' will determine breaks automatically. | |
| 72 - **Plot title** - the histogram title. | |
| 73 - **Label for x axis** - the label of the x axis for the histogram. | |
| 74 - **Include smoothed density** - if checked, the resulting graph will join the given corresponding points with line segments. | |
| 75 | |
| 76 ----- | |
| 77 | |
| 78 **Example** | |
| 79 | |
| 80 - Input file:: | |
| 81 | |
| 82 1 68 4.1 | |
| 83 2 71 4.6 | |
| 84 3 62 3.8 | |
| 85 4 75 4.4 | |
| 86 5 58 3.2 | |
| 87 6 60 3.1 | |
| 88 7 67 3.8 | |
| 89 8 68 4.1 | |
| 90 9 71 4.3 | |
| 91 10 69 3.7 | |
| 92 | |
| 93 - Create a histogram on column 2 of the above dataset. | |
| 94 | |
| 95 .. image:: histogram2.png | |
| 96 | |
| 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 | 101 </tool> |
