Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "use_header_names" option to histogram #631

Merged
merged 3 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tools/histogram/.shed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ long_description: |
name: histogram
owner: devteam
remote_repository_url: https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram
homepage_url: https://github.com/galaxyproject/tools-devteam/tree/master/tools/histogram
type: unrestricted
18 changes: 16 additions & 2 deletions tools/histogram/histogram2.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<tool id="histogram_rpy" name="Histogram" version="1.0.4">
<tool id="histogram_rpy" name="Histogram" version="1.0.5">
<description>of a numeric column</description>
<requirements>
<requirement type="package" version="3.3.2">rpy2</requirement>
Expand All @@ -17,7 +17,18 @@ python '$__tool_directory__/histogram.py'
</command>
<inputs>
<param name="input" type="data" format="tabular" label="Dataset" help="Dataset missing? See TIP below"/>
<param name="numerical_column" type="data_column" data_ref="input" numerical="True" label="Numerical column for x axis" />
<conditional name="cols">
<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.">
<option value="yes">yes</option>
<option value="no">no</option>
</param>
<when value="yes">
<param name="numerical_column" type="data_column" data_ref="input" numerical="True" use_header_names="true" label="Numerical column for x axis" />
</when>
<when value="no">
<param name="numerical_column" type="data_column" data_ref="input" numerical="True" label="Numerical column for x axis" />
</when>
</conditional>
<param name="breaks" type="integer" value="0" label="Number of breaks (bars)"/>
<param name="title" type="text" value="Histogram" label="Plot title"/>
<param name="xlab" type="text" value="V1" label="Label for x axis"/>
Expand Down Expand Up @@ -84,4 +95,7 @@ This tool computes a histogram of the numerical values in a column of a dataset.
.. image:: histogram2.png

</help>
<citations>
<citation type="doi">10.1145/3386334</citation>
</citations>
</tool>