changeset 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
files histogram2.xml
diffstat 1 files changed, 16 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/histogram2.xml	Mon Jul 27 03:25:53 2020 -0400
+++ b/histogram2.xml	Fri Feb 07 21:26:17 2025 +0000
@@ -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>
@@ -17,7 +17,18 @@
 </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"/>
@@ -84,4 +95,7 @@
 .. image:: histogram2.png
 
 </help>
+<citations>
+  <citation type="doi">10.1145/3386334</citation>
+</citations>
 </tool>