changeset 2:f8cec112f5f9 draft

planemo upload for repository https://github.com/asaim/galaxytools/tree/master/tools/plot_barplot commit 5c45ed58045ce1686aa069403f8a9426ea20bac5-dirty
author bebatut
date Tue, 12 Apr 2016 03:09:36 -0400
parents 7c1274bf54c6
children 81d4e20b0b23
files plot_barplot.R plot_barplot.xml
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plot_barplot.R	Wed Mar 02 05:40:17 2016 -0500
+++ b/plot_barplot.R	Tue Apr 12 03:09:36 2016 -0400
@@ -12,12 +12,16 @@
   'bottom_margin', 'b', 2, 'integer',
   'left_margin', 'l', 2, 'integer',
   'top_margin', 't', 2, 'integer',
-  'right_margin', 'r', 2, 'integer'
+  'right_margin', 'r', 2, 'integer',
+  'header','y',2,'logical'
 ), byrow=TRUE, ncol=4);
 
 options = getopt(option_specification);
 
-data = read.table(options$input_file, sep = '\t', h = T)
+header = TRUE
+if(!is.null(options$header)) header = options$header
+
+data = read.table(options$input_file, sep = '\t', h = header)
 
 data_column = 2
 if(!is.null(options$data_column)) data_column = options$data_column
--- a/plot_barplot.xml	Wed Mar 02 05:40:17 2016 -0500
+++ b/plot_barplot.xml	Tue Apr 12 03:09:36 2016 -0400
@@ -16,6 +16,7 @@
     <command><![CDATA[
         Rscript $__tool_directory__/plot_barplot.R
             --input_file $input_file
+            --header $header
 
             #if str($output_format)=="pdf"
                 --output_pdf_file $output_pdf_file
@@ -37,6 +38,8 @@
     <inputs>
         <param name="input_file" type="data" format="tabular,tsv,csv" label="Input file" help="File in tabular format with tab-separated columns and header in first line (--input_file)"/>
 
+        <param name="header" type="boolean" truevalue="TRUE" falsevalue="FALSE" checked="false" label="Header in first line?" help="(--header)"/>
+
         <param name="output_format" label="Format for output image" type="select" help="">
             <option value="pdf" selected="True">PDF</option>
             <option value="svg">SVG</option>