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
ee88a973
Commit
ee88a973
authored
Jun 09, 2015
by
Peter van 't Hof
Browse files
Fix meta info summary
parent
7fe670b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/summary/WriteSummary.scala
View file @
ee88a973
...
...
@@ -106,15 +106,15 @@ class WriteSummary(val root: Configurable) extends InProcessFunction with Config
(
v1
:
Any
,
v2
:
Any
,
key
:
String
)
=>
summarizable
.
resolveSummaryConflict
(
v1
,
v2
,
key
))
}).
foldRight
(
pipelineMap
)((
a
,
b
)
=>
ConfigUtils
.
mergeMaps
(
a
.
_1
,
b
,
a
.
_2
))
val
combinedMap
=
Map
(
"meta"
->
Map
(
"last_commit_hash"
->
LastCommitHash
,
"pipeline_version"
->
Version
,
"pipeline_name"
->
qscript
.
summaryName
,
"output_dir"
->
qscript
.
outputDir
))
++
(
for
(
qscript
<-
qscript
.
summaryQScripts
)
yield
{
ConfigUtils
.
fileToConfigMap
(
qscript
.
summaryFile
)
}).
foldRight
(
jobsMap
)((
a
,
b
)
=>
ConfigUtils
.
mergeMaps
(
a
,
b
))
val
combinedMap
=
(
for
(
qscript
<-
qscript
.
summaryQScripts
)
yield
{
ConfigUtils
.
fileToConfigMap
(
qscript
.
summaryFile
)
}).
foldRight
(
jobsMap
)((
a
,
b
)
=>
ConfigUtils
.
mergeMaps
(
a
,
b
))
++
Map
(
"meta"
->
Map
(
"last_commit_hash"
->
LastCommitHash
,
"pipeline_version"
->
Version
,
"pipeline_name"
->
qscript
.
summaryName
,
"output_dir"
->
qscript
.
outputDir
))
val
writer
=
new
PrintWriter
(
out
)
writer
.
println
(
ConfigUtils
.
mapToJson
(
combinedMap
).
nospaces
)
...
...
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