Commit be9bfa6a authored by akaljuvee's avatar akaljuvee

one log line

parent 9b5627e5
......@@ -23,7 +23,7 @@ import nl.lumc.sasc.biopet.utils.config.Configurable
*
* Created by pjvan_thof on 4/29/15.
*/
class LinePlot(val parent: Configurable) extends Rscript {
class LinePlot(val root: Configurable) extends Rscript {
protected var script: File = config("script", default = "plotXY.R")
var input: File = _
......@@ -36,7 +36,6 @@ class LinePlot(val parent: Configurable) extends Rscript {
var ylabel: Option[String] = config("ylabel")
var llabel: Option[String] = config("llabel")
var title: Option[String] = config("title")
var hideLegend: Boolean = config("hide_legend", default = false)
var removeZero: Boolean = config("removeZero", default = false)
override def cmd = super.cmd ++
......@@ -48,7 +47,6 @@ class LinePlot(val parent: Configurable) extends Rscript {
ylabel.map(Seq("--ylabel", _)).getOrElse(Seq()) ++
llabel.map(Seq("--llabel", _)).getOrElse(Seq()) ++
title.map(Seq("--title", _)).getOrElse(Seq()) ++
(if (hideLegend) Seq("--hideLegend", "true") else Seq()) ++
(if (removeZero) Seq("--removeZero", "true") else Seq())
}
......@@ -59,7 +57,6 @@ object LinePlot {
xlabel: Option[String] = None,
ylabel: Option[String] = None,
width: Int = 1200,
hideLegend: Boolean = false,
removeZero: Boolean = false,
title: Option[String] = None): LinePlot = {
val plot = new LinePlot(root)
......@@ -68,7 +65,6 @@ object LinePlot {
plot.xlabel = xlabel
plot.ylabel = ylabel
plot.width = Some(width)
plot.hideLegend = hideLegend
plot.removeZero = removeZero
plot.title = title
plot
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment