Commit c7e64e0c authored by Peter van 't Hof's avatar Peter van 't Hof

Fixing names

parent 7e69b265
......@@ -63,9 +63,9 @@ class GearsSingle(val parent: Configurable) extends QScript with SummaryQScript
if (!skipFlexiprep) {
val db = SummaryDb.openSqliteSummary(summaryDbFile)
val sample = Await.result(db.getSamples(runId = summaryRunId, name = sampleId).map(_.headOption), Duration.Inf)
val sId = sample.map(_.id).getOrElse(Await.result(db.createSample(sampleId.getOrElse("noSample"), summaryRunId), Duration.Inf))
val sId = sample.map(_.id).getOrElse(Await.result(db.createSample(sampleId.getOrElse("noSampleName"), summaryRunId), Duration.Inf))
val library = Await.result(db.getLibraries(runId = summaryRunId, name = libId, sampleId = Some(sId)).map(_.headOption), Duration.Inf)
val lId = library.map(_.id).getOrElse(Await.result(db.createLibrary(libId.getOrElse("noLib"), summaryRunId, sId), Duration.Inf))
val lId = library.map(_.id).getOrElse(Await.result(db.createLibrary(libId.getOrElse("noLibName"), summaryRunId, sId), Duration.Inf))
}
if (outputName == null) {
outputName = sampleId.getOrElse("noName") + libId.map("-" + _).getOrElse("")
......
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