Mercurial > repos > bebatut > plot_barplot
diff plot_barplot.R @ 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 | de039abf9641 |
children | 2a9b68111074 |
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