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
bbaaa914
Commit
bbaaa914
authored
9 years ago
by
Peter van 't Hof
Browse files
Options
Downloads
Patches
Plain Diff
Fixed intermediate files
parent
09fe4d50
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
protected/biopet-gatk-pipelines/src/main/scala/nl/lumc/sasc/biopet/pipelines/gatk/Shiva.scala
+12
-4
12 additions, 4 deletions
...main/scala/nl/lumc/sasc/biopet/pipelines/gatk/Shiva.scala
with
12 additions
and
4 deletions
protected/biopet-gatk-pipelines/src/main/scala/nl/lumc/sasc/biopet/pipelines/gatk/Shiva.scala
+
12
−
4
View file @
bbaaa914
...
...
@@ -43,8 +43,12 @@ class Shiva(val root: Configurable) extends QScript with ShivaTrait {
/** Class will generate library jobs */
class
Library
(
libId
:
String
)
extends
super
.
Library
(
libId
)
{
val
useIndelRealigner
:
Boolean
=
config
(
"use_indel_realigner"
,
default
=
true
)
val
useBaseRecalibration
:
Boolean
=
config
(
"use_base_recalibration"
,
default
=
true
)
lazy
val
useIndelRealigner
:
Boolean
=
config
(
"use_indel_realigner"
,
default
=
true
)
lazy
val
useBaseRecalibration
:
Boolean
=
config
(
"use_base_recalibration"
,
default
=
true
)
override
def
summarySettings
=
super
.
summarySettings
+
(
"use_indel_realigner"
->
useIndelRealigner
)
+
(
"use_base_recalibration"
->
useBaseRecalibration
)
/** Return true when baserecalibration is executed */
protected
def
doneBaseRecalibrator
:
Boolean
=
{
...
...
@@ -69,12 +73,16 @@ class Shiva(val root: Configurable) extends QScript with ShivaTrait {
}
}
override
def
summarySettings
=
super
.
summarySettings
+
(
"use_indel_realigner"
->
useIndelRealigner
)
lazy
val
useIndelRealigner
:
Boolean
=
config
(
"use_indel_realigner"
,
default
=
true
)
/** This methods will add double preprocess steps, with GATK indel realignment */
override
protected
def
addDoublePreProcess
(
input
:
List
[
File
],
isIntermediate
:
Boolean
=
false
)
:
Option
[
File
]
=
{
if
(
input
.
size
<=
1
)
super
.
addDoublePreProcess
(
input
)
else
super
.
addDoublePreProcess
(
input
,
isIntermediate
=
true
).
collect
{
else
super
.
addDoublePreProcess
(
input
,
isIntermediate
=
useIndelRealigner
).
collect
{
case
file
=>
config
(
"
use
_i
ndel
_r
ealigner
"
,
default
=
true
).
asBoolean
match
{
use
I
ndel
R
ealigner
match
{
case
true
=>
addIndelRealign
(
file
,
sampleDir
,
isIntermediate
=
false
)
case
false
=>
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