Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
biopet.biopet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Mirrors
biopet.biopet
Commits
0740963c
Commit
0740963c
authored
Apr 25, 2017
by
pjvan_thof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change futures
parent
65897482
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
gears/src/main/scala/nl/lumc/sasc/biopet/pipelines/gears/GearsSingle.scala
...ala/nl/lumc/sasc/biopet/pipelines/gears/GearsSingle.scala
+3
-2
No files found.
gears/src/main/scala/nl/lumc/sasc/biopet/pipelines/gears/GearsSingle.scala
View file @
0740963c
...
...
@@ -62,14 +62,15 @@ class GearsSingle(val parent: Configurable) extends QScript with SummaryQScript
if
(!
skipFlexiprep
)
{
val
db
=
SummaryDb
.
openSqliteSummary
(
summaryDbFile
)
Await
.
result
(
for
{
val
future
=
for
{
sample
<-
db
.
getSamples
(
runId
=
summaryRunId
,
name
=
sampleId
).
map
(
_
.
headOption
)
sId
<-
sample
.
map
(
s
=>
Future
.
successful
(
s
.
id
))
.
getOrElse
(
db
.
createSample
(
sampleId
.
getOrElse
(
"noSampleName"
),
summaryRunId
))
library
<-
db
.
getLibraries
(
runId
=
summaryRunId
,
name
=
libId
,
sampleId
=
Some
(
sId
)).
map
(
_
.
headOption
)
lId
<-
library
.
map
(
l
=>
Future
.
successful
(
l
.
id
))
.
getOrElse
(
db
.
createLibrary
(
libId
.
getOrElse
(
"noLibName"
),
summaryRunId
,
sId
))
}
yield
lId
,
Duration
.
Inf
)
}
yield
lId
Await
.
result
(
future
,
Duration
.
Inf
)
}
if
(
outputName
==
null
)
{
outputName
=
sampleId
.
getOrElse
(
"noName"
)
+
libId
.
map
(
"-"
+
_
).
getOrElse
(
""
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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