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
0a25827e
Commit
0a25827e
authored
Dec 17, 2015
by
Peter van 't Hof
Browse files
Expose subpipelines
parent
9c1384fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/gears/src/main/scala/nl/lumc/sasc/biopet/pipelines/gears/GearsSingle.scala
View file @
0a25827e
...
...
@@ -40,9 +40,9 @@ class GearsSingle(val root: Configurable) extends QScript with SummaryQScript wi
@Argument
(
required
=
false
)
var
outputName
:
String
=
_
va
r
gearsUseKraken
:
Boolean
=
config
(
"gears_use_kraken"
,
default
=
true
)
va
r
gearsUserQiimeRtax
:
Boolean
=
config
(
"gear_use_qiime_rtax"
,
default
=
false
)
va
r
gearsUserQiimeClosed
:
Boolean
=
config
(
"gear_use_qiime_closed"
,
default
=
false
)
va
l
krakenScript
=
if
(
config
(
"gears_use_kraken"
,
default
=
true
)
)
Some
(
new
GearsKraken
(
this
))
else
None
va
l
qiimeRatx
=
if
(
config
(
"gear_use_qiime_rtax"
,
default
=
false
)
)
Some
(
new
GearsQiimeRtax
(
this
))
else
None
va
l
qiimeClosed
=
if
(
config
(
"gear_use_qiime_closed"
,
default
=
false
)
)
Some
(
new
GearsQiimeClosed
(
this
))
else
None
/** Executed before running the script */
def
init
()
:
Unit
=
{
...
...
@@ -93,8 +93,7 @@ class GearsSingle(val root: Configurable) extends QScript with SummaryQScript wi
flexiprep
.
outputDir
=
new
File
(
outputDir
,
"flexiprep"
)
add
(
flexiprep
)
if
(
gearsUseKraken
)
{
val
kraken
=
new
GearsKraken
(
this
)
krakenScript
foreach
{
kraken
=>
kraken
.
outputDir
=
new
File
(
outputDir
,
"kraken"
)
kraken
.
fastqR1
=
flexiprep
.
fastqR1Qc
kraken
.
fastqR2
=
flexiprep
.
fastqR2Qc
...
...
@@ -102,16 +101,14 @@ class GearsSingle(val root: Configurable) extends QScript with SummaryQScript wi
add
(
kraken
)
}
if
(
gearsUserQiimeRtax
)
{
val
qiimeRatx
=
new
GearsQiimeRtax
(
this
)
qiimeRatx
foreach
{
qiimeRatx
=>
qiimeRatx
.
outputDir
=
new
File
(
outputDir
,
"qiime_rtax"
)
qiimeRatx
.
fastqR1
=
flexiprep
.
fastqR1Qc
qiimeRatx
.
fastqR2
=
flexiprep
.
fastqR2Qc
add
(
qiimeRatx
)
}
if
(
gearsUserQiimeClosed
)
{
val
qiimeClosed
=
new
GearsQiimeClosed
(
this
)
qiimeClosed
foreach
{
qiimeClosed
=>
qiimeClosed
.
outputDir
=
new
File
(
outputDir
,
"qiime_closed"
)
qiimeClosed
.
fastqR1
=
flexiprep
.
fastqR1Qc
qiimeClosed
.
fastqR2
=
flexiprep
.
fastqR2Qc
...
...
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