Commit 0644fd96 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fixing output dir

parent d9b67dfa
......@@ -120,7 +120,11 @@ trait SummaryQScript extends BiopetQScript { qscript: QScript =>
private def createRun(): Int = {
val db = SummaryDb.openSqliteSummary(summaryDbFile)
val id = Await.result(db.createRun(summaryName, outputDir), Duration.Inf)
val dir = root match {
case q:BiopetQScript => q.outputDir
case _ => throw new IllegalStateException("Root should be a BiopetQscript")
val id = Await.result(db.createRun(summaryName, dir.getAbsolutePath), Duration.Inf)
val writer = new PrintWriter(runIdFile)
Supports Markdown
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