diff --git a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/igvtools/IGVToolsCount.scala b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/igvtools/IGVToolsCount.scala index b62c852f9f40578131d734d206531e77236fb595..4526c2143662bcbc650753cd8d171c81fdd37e63 100644 --- a/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/igvtools/IGVToolsCount.scala +++ b/public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/extensions/igvtools/IGVToolsCount.scala @@ -24,6 +24,9 @@ class IGVToolsCount(val root: Configurable) extends IGVTools { @Output var wig: Option[File] = None + @Output + def logFile = new File(jobLocalDir, "igv.log") + var maxZoom: Option[Int] = config("maxZoom") var windowSize: Option[Int] = config("windowSize") var extFactor: Option[Int] = config("extFactor") @@ -41,9 +44,17 @@ class IGVToolsCount(val root: Configurable) extends IGVTools { var pairs: Boolean = config("pairs", default = false) + override val defaultVmem = "4G" + override def beforeGraph { super.beforeGraph + (tdf, wig) match { + case (Some(tdf), _) => jobLocalDir = tdf.getParentFile + case (_, Some(wig)) => jobLocalDir = wig.getParentFile + case _ => throw new IllegalArgumentException("Must have a wig or tdf file") + } + wig.foreach(x => if (!x.getAbsolutePath.endsWith(".wig")) throw new IllegalArgumentException("WIG file should have a .wig file-extension")) tdf.foreach(x => if (!x.getAbsolutePath.endsWith(".tdf"))