Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
1a7ecf98
Commit
1a7ecf98
authored
Mar 10, 2017
by
Peter van 't Hof
Browse files
Fixing name in summary run
parent
42115b3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/summary/SummaryQScript.scala
View file @
1a7ecf98
...
...
@@ -91,7 +91,7 @@ trait SummaryQScript extends BiopetQScript { qscript: QScript =>
val
id
=
reader
.
getLines
().
next
().
toInt
reader
.
close
()
id
}
else
createRun
}
else
createRun
()
}
private
def
runIdFile
=
root
match
{
...
...
@@ -105,7 +105,11 @@ trait SummaryQScript extends BiopetQScript { qscript: QScript =>
case
q
:
BiopetQScript
=>
q
.
outputDir
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
)
runIdFile
.
getParentFile
.
mkdir
()
val
writer
=
new
PrintWriter
(
runIdFile
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment