Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
biopet.biopet
Commits
7bd5c5b1
Commit
7bd5c5b1
authored
8 years ago
by
Wai Yi Leung
Browse files
Options
Downloads
Patches
Plain Diff
Adding descriptive help to the commandline help
parent
17c5de32
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/report/ReportBuilder.scala
+17
-3
17 additions, 3 deletions
...scala/nl/lumc/sasc/biopet/core/report/ReportBuilder.scala
with
17 additions
and
3 deletions
public/biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/report/ReportBuilder.scala
+
17
−
3
View file @
7bd5c5b1
...
...
@@ -24,6 +24,7 @@ import org.broadinstitute.gatk.utils.commandline.Input
import
org.fusesource.scalate.
{
TemplateEngine
,
TemplateSource
}
import
scala.collection.mutable
import
scala.language.postfixOps
/**
* This trait is meant to make an extension for a report object
...
...
@@ -66,15 +67,28 @@ trait ReportBuilderExtension extends ToolCommandFunction {
trait
ReportBuilder
extends
ToolCommand
{
case
class
Args
(
summary
:
File
=
null
,
outputDir
:
File
=
null
,
pageArgs
:
mutable.Map
[
String
,
Any
]
=
mutable
.
Map
())
extends
AbstractArgs
case
class
Args
(
summary
:
File
=
null
,
outputDir
:
File
=
null
,
pageArgs
:
mutable.Map
[
String
,
Any
]
=
mutable
.
Map
())
extends
AbstractArgs
class
OptParser
extends
AbstractOptParser
{
head
(
s
"""
|$commandName - Generate HTML formatted report from a biopet summary.json
"""
.
stripMargin
)
opt
[
File
](
's'
,
"summary"
)
unbounded
()
required
()
maxOccurs
1
valueName
"<file>"
action
{
(
x
,
c
)
=>
c
.
copy
(
summary
=
x
)
}
}
validate
{
x
=>
if
(
x
.
exists
)
success
else
failure
(
"Summary JSON file not found!"
)
}
text
"Biopet summary JSON file"
opt
[
File
](
'o'
,
"outputDir"
)
unbounded
()
required
()
maxOccurs
1
valueName
"<file>"
action
{
(
x
,
c
)
=>
c
.
copy
(
outputDir
=
x
)
}
}
text
"Output HTML report files to this directory"
opt
[
Map
[
String
,
String
]](
'a'
,
"args"
)
unbounded
()
action
{
(
x
,
c
)
=>
c
.
copy
(
pageArgs
=
c
.
pageArgs
++
x
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment