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
f9d9430b
Commit
f9d9430b
authored
10 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Added Summarize flexiprep wrapper
parent
a98ad7f7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
flexiprep/src/main/java/nl/lumc/sasc/biopet/pipelines/flexiprep/scripts/Summarize.scala
+42
-0
42 additions, 0 deletions
...c/sasc/biopet/pipelines/flexiprep/scripts/Summarize.scala
with
42 additions
and
0 deletions
flexiprep/src/main/java/nl/lumc/sasc/biopet/pipelines/flexiprep/scripts/Summarize.scala
0 → 100644
+
42
−
0
View file @
f9d9430b
package
nl.lumc.sasc.biopet.pipelines.flexiprep.scripts
import
nl.lumc.sasc.biopet.core._
import
org.broadinstitute.sting.queue.function.CommandLineFunction
import
nl.lumc.sasc.biopet.wrappers.Python
import
org.broadinstitute.sting.commandline._
import
java.io.File
class
Summarize
(
val
globalConfig
:
Config
)
extends
CommandLineFunction
with
Python
{
def
this
()
=
this
(
new
Config
(
Map
()))
analysisName
=
"flexiprep_sumarize"
val
config
:
Config
=
globalConfig
.
getAsConfig
(
analysisName
)
logger
.
debug
(
"Config for "
+
analysisName
+
": "
+
config
)
setPythonScript
(
"__init__.py"
,
"scripts/pyfastqc/"
)
setPythonScript
(
"summarize_flexiprep.py"
,
"scripts/"
)
@Input
(
doc
=
"Dep"
,
shortName
=
"dep"
,
required
=
false
)
var
deps
:
List
[
File
]
=
Nil
@Output
(
doc
=
"Output file"
,
shortName
=
"out"
,
required
=
true
)
var
out
:
File
=
_
var
samplea
:
String
=
_
var
sampleb
:
String
=
_
var
runDir
:
String
=
_
var
samplename
:
String
=
_
var
trim
:
Boolean
=
true
var
clip
:
Boolean
=
true
def
commandLine
=
{
var
mode
:
String
=
""
if
(
clip
)
mode
+=
"clip"
if
(
trim
)
mode
+=
"trim"
if
(
mode
.
isEmpty
)
mode
=
"none"
getPythonCommand
+
optional
(
"--run-dir"
,
runDir
)
+
optional
(
"--sampleb"
,
sampleb
)
+
required
(
samplename
)
+
required
(
mode
)
+
required
(
samplea
)
+
required
(
out
)
}
}
\ No newline at end of file
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