Commit 1a7ecf98 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fixing name in summary run

parent 42115b3a
...@@ -91,7 +91,7 @@ trait SummaryQScript extends BiopetQScript { qscript: QScript => ...@@ -91,7 +91,7 @@ trait SummaryQScript extends BiopetQScript { qscript: QScript =>
val id = reader.getLines().next().toInt val id = reader.getLines().next().toInt
reader.close() reader.close()
id id
} else createRun } else createRun()
} }
private def runIdFile = root match { private def runIdFile = root match {
...@@ -105,7 +105,11 @@ trait SummaryQScript extends BiopetQScript { qscript: QScript => ...@@ -105,7 +105,11 @@ trait SummaryQScript extends BiopetQScript { qscript: QScript =>
case q: BiopetQScript => q.outputDir case q: BiopetQScript => q.outputDir
case _ => throw new IllegalStateException("Root should be a BiopetQscript") case _ => throw new IllegalStateException("Root should be a BiopetQscript")
} }
val id = Await.result(db.createRun(summaryName, dir.getAbsolutePath, nl.lumc.sasc.biopet.Version, val name = root match {
case q: SummaryQScript => q.summaryName
case _ => throw new IllegalStateException("Root should be a SummaryQScript")
}
val id = Await.result(db.createRun(name, dir.getAbsolutePath, nl.lumc.sasc.biopet.Version,
LastCommitHash, new Date(System.currentTimeMillis())), Duration.Inf) LastCommitHash, new Date(System.currentTimeMillis())), Duration.Inf)
runIdFile.getParentFile.mkdir() runIdFile.getParentFile.mkdir()
val writer = new PrintWriter(runIdFile) val writer = new PrintWriter(runIdFile)
......
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