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
72efd86a
Commit
72efd86a
authored
Jan 16, 2015
by
Peter van 't Hof
Browse files
Added merged input config
parent
c4b74ae4
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/biopet-framework/src/main/scala/nl/lumc/sasc/biopet/core/config/Config.scala
View file @
72efd86a
...
...
@@ -198,7 +198,6 @@ class Config(var map: Map[String, Any]) extends Logging {
// Positions where values are found
val
found
=
convertIndexValuesToMap
(
foundCache
.
filter
(!
_
.
_2
.
default
).
toList
.
map
(
x
=>
(
x
.
_2
.
foundIndex
,
x
.
_2
.
value
)))
//val defaultFound = convertIndexValuesToMap(defaultCache.filter(_._2.default).toList.map(x => (x._2.foundIndex, x._2.value)))
// Positions where to start searching
val
effectiveFound
=
convertIndexValuesToMap
(
foundCache
.
filter
(!
_
.
_2
.
default
).
toList
.
map
(
x
=>
(
x
.
_2
.
requestIndex
,
x
.
_2
.
value
)),
Some
(
false
))
...
...
@@ -209,8 +208,8 @@ class Config(var map: Map[String, Any]) extends Logging {
val
fullEffective
=
ConfigUtils
.
mergeMaps
(
effectiveFound
,
effectiveDefaultFound
)
val
fullEffectiveWithNotFound
=
ConfigUtils
.
mergeMaps
(
fullEffective
,
notFound
)
writeMapToJsonFile
(
Config
.
global
.
map
,
"input"
)
writeMapToJsonFile
(
found
,
"found"
)
//writeMapToJsonFile(defaultFound, "defaults")
writeMapToJsonFile
(
effectiveFound
,
"effective.found"
)
writeMapToJsonFile
(
effectiveDefaultFound
,
"effective.defaults"
)
writeMapToJsonFile
(
notFound
,
"not.found"
)
...
...
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