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
b2965063
Commit
b2965063
authored
Dec 12, 2016
by
Peter van 't Hof
Browse files
Fixed comments of merge requests
parent
c7aa907d
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/PipelineStatus.scala
View file @
b2965063
...
...
@@ -18,7 +18,7 @@ object PipelineStatus extends ToolCommand {
outputDir
:
File
=
null
,
follow
:
Boolean
=
false
,
refreshTime
:
Int
=
30
,
complate
_p
lots
:
Boolean
=
false
,
complate
P
lots
:
Boolean
=
false
,
compressPlots
:
Boolean
=
true
)
extends
AbstractArgs
class
OptParser
extends
AbstractOptParser
{
...
...
@@ -37,12 +37,13 @@ object PipelineStatus extends ToolCommand {
opt
[
Int
](
"refresh"
)
maxOccurs
1
action
{
(
x
,
c
)
=>
c
.
copy
(
refreshTime
=
x
)
}
text
"Time to check again, default set on 30 seconds"
opt
[
Unit
](
"complete_plots"
)
maxOccurs
1
action
{
(
x
,
c
)
=>
c
.
copy
(
complate_plots
=
true
)
}
text
"Add complete plots, this is disabled because of preformence"
opt
[
Unit
](
"completePlots"
)
maxOccurs
1
action
{
(
x
,
c
)
=>
c
.
copy
(
complatePlots
=
true
)
}
text
"Add complete plots, this is disabled because of performance. "
+
"Complete plots does show each job separated while compressed plots colapse all jobs of the same type together."
opt
[
Unit
](
"skipCompressPlots"
)
maxOccurs
1
action
{
(
x
,
c
)
=>
c
.
copy
(
compressPlots
=
false
)
}
text
"Disable
default plots
"
}
text
"Disable
compressed plots, default compressed plots are enabled.
"
}
def
main
(
args
:
Array
[
String
])
:
Unit
=
{
...
...
@@ -54,7 +55,7 @@ object PipelineStatus extends ToolCommand {
val
depsFile
=
cmdArgs
.
depsFile
.
getOrElse
(
getDepsFileFromDir
(
cmdArgs
.
pipelineDir
))
val
deps
=
readDepsFile
(
depsFile
)
writePipelineStatus
(
deps
,
cmdArgs
.
outputDir
,
follow
=
cmdArgs
.
follow
,
refreshTime
=
cmdArgs
.
refreshTime
,
plots
=
cmdArgs
.
complate
_p
lots
,
compressPlots
=
cmdArgs
.
compressPlots
)
plots
=
cmdArgs
.
complate
P
lots
,
compressPlots
=
cmdArgs
.
compressPlots
)
logger
.
info
(
"Done"
)
}
...
...
@@ -153,6 +154,7 @@ object PipelineStatus extends ToolCommand {
})
}
}
// This will collapse a Set[(String, String)] to a Map[String, List[String]]
set
.
groupBy
(
_
.
_1
).
map
(
x
=>
x
.
_1
->
x
.
_2
.
map
(
_
.
_2
).
toList
)
}
...
...
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