changeset 1:7e3103db022d draft default tip

planemo upload for repository https://github.com/asaim/galaxytools/tree/master/tools/plot_barplot commit 5653f2982dc5aeccd7701970fdfea444e3e53e3c-dirty
author bebatut
date Wed, 18 May 2016 12:26:19 -0400
parents a8e03ffaaedc
children
files plot_barplot.R plot_barplot.xml tool_dependencies.xml
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plot_barplot.R	Mon Apr 18 10:35:54 2016 -0400
+++ b/plot_barplot.R	Wed May 18 12:26:19 2016 -0400
@@ -8,6 +8,7 @@
   'data_column', 'd', 2, 'integer',
   'names_column', 'n', 2, 'integer',
   'xlab', 'x', 2, 'character',
+  'log', 'g', 2, 'logical',
   'col', 'c', 2, 'character',
   'bottom_margin', 'b', 2, 'integer',
   'left_margin', 'l', 2, 'integer',
@@ -40,12 +41,15 @@
 col = "grey"
 if(!is.null(options$col)) col = options$col
 
+log = ""
+if(!is.null(options$log) && options$log) log = "x"
+
 plot_barplot <- function(){
     par(las=2)
     par(mar=margin)
     barplot(data[, data_column], horiz = T, xlab = xlab, 
         names.arg = data[, names_column], col = col, cex.names=0.7, 
-        cex.axis = 0.8)
+        cex.axis = 0.8, log = log)
 }
 
 if(!is.null(options$output_pdf_file)){
--- a/plot_barplot.xml	Mon Apr 18 10:35:54 2016 -0400
+++ b/plot_barplot.xml	Wed May 18 12:26:19 2016 -0400
@@ -28,6 +28,7 @@
             --data_column $column_with_data
             --names_column $names_column
             --xlab "$xlab"
+            --log $log
             --col $col
             --bottom_margin $bottom_margin
             --left_margin $left_margin
@@ -51,6 +52,8 @@
 
         <param name="xlab" type="text" value="" label="Label for x axis" help="(--xlab)"/>
 
+        <param name="log" type="boolean" truevalue="TRUE" falsevalue="FALSE" label="Log scale?" help="(--log)"/>
+
         <param name="col" label="Bar color" type="text" value= "blue" help="R color (--col)"/>
 
         <param name="bottom_margin" type="integer" value="5" label="Bottom margin" help="(--bottom_margin)"/>
@@ -83,6 +86,7 @@
             <param name="names_column" value="1"/>
             <param name="xlab" value=""/>
             <param name="col" value="blue"/>
+            <param name='log' value="FALSE"/>
             <param name="bottom_margin" value="5"/>
             <param name="left_margin" value="19"/>
             <param name="top_margin" value="1"/>
@@ -96,6 +100,7 @@
             <param name="column_with_data" value="3"/>
             <param name="names_column" value="1"/>
             <param name="xlab" value=""/>
+            <param name='log' value="FALSE"/>
             <param name="col" value="red"/>
             <param name="bottom_margin" value="5"/>
             <param name="left_margin" value="19"/>
--- a/tool_dependencies.xml	Mon Apr 18 10:35:54 2016 -0400
+++ b/tool_dependencies.xml	Wed May 18 12:26:19 2016 -0400
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <tool_dependency>
     <package name="R" version="3.2.1">
-        <repository changeset_revision="d0bf97420fb5" name="package_r_3_2_1" owner="iuc" toolshed="https://toolshed.g2.bx.psu.edu" />
+        <repository changeset_revision="d9f7d84125b7" name="package_r_3_2_1" owner="iuc" toolshed="https://toolshed.g2.bx.psu.edu" />
     </package>
     <package name="r-getopt" version="1.20.0">
         <repository changeset_revision="712cb82311a8" name="package_r_3_2_1_getopt_1_20_0" owner="bebatut" toolshed="https://toolshed.g2.bx.psu.edu" />