Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
biopet.biopet
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Mirrors
biopet.biopet
Commits
b4c7ded4
Commit
b4c7ded4
authored
Sep 27, 2016
by
Peter van 't Hof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more job testing
parent
6f2d19e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
basty/src/test/scala/nl/lumc/sasc/biopet/pipelines/basty/BastyTest.scala
...scala/nl/lumc/sasc/biopet/pipelines/basty/BastyTest.scala
+10
-3
No files found.
basty/src/test/scala/nl/lumc/sasc/biopet/pipelines/basty/BastyTest.scala
View file @
b4c7ded4
...
...
@@ -3,9 +3,10 @@ package nl.lumc.sasc.biopet.pipelines.basty
import
java.io.
{
File
,
FileOutputStream
}
import
com.google.common.io.Files
import
nl.lumc.sasc.biopet.extensions.
{
Raxml
,
RunGubbins
}
import
nl.lumc.sasc.biopet.extensions.gatk.
{
BaseRecalibrator
,
IndelRealigner
,
PrintReads
,
RealignerTargetCreator
}
import
nl.lumc.sasc.biopet.extensions.picard.MarkDuplicates
import
nl.lumc.sasc.biopet.extensions.tools.
VcfStats
import
nl.lumc.sasc.biopet.extensions.tools.
{
BastyGenerateFasta
,
VcfStats
}
import
nl.lumc.sasc.biopet.utils.
{
ConfigUtils
,
Logging
}
import
nl.lumc.sasc.biopet.utils.config.Config
import
org.broadinstitute.gatk.queue.QSettings
...
...
@@ -41,10 +42,11 @@ class BastyTest extends TestNGSuite with Matchers {
def
multisampleCalling
:
Boolean
=
true
def
sampleCalling
=
false
def
libraryCalling
=
false
def
dbsnp
=
tru
e
def
dbsnp
=
fals
e
def
svCalling
=
false
def
cnvCalling
=
false
def
annotation
=
false
def
bootRuns
:
Option
[
Int
]
=
None
@Test
(
dataProvider
=
"bastyOptions"
)
def
testBasty
(
f
:
String
,
sample1
:
Boolean
,
sample2
:
Boolean
)
:
Unit
=
{
...
...
@@ -61,7 +63,8 @@ class BastyTest extends TestNGSuite with Matchers {
"use_base_recalibration"
->
baseRecalibration
,
"sv_calling"
->
svCalling
,
"cnv_calling"
->
cnvCalling
,
"annotation"
->
annotation
),
m
)
"annotation"
->
annotation
,
"boot_runs"
->
bootRuns
),
m
)
}
...
...
@@ -105,6 +108,10 @@ class BastyTest extends TestNGSuite with Matchers {
(
if
(
multisampleCalling
)
2
else
0
)
+
(
if
(
sampleCalling
)
numberSamples
*
2
else
0
)
+
(
if
(
libraryCalling
)
numberLibs
*
2
else
0
))
pipeline
.
functions
.
count
(
_
.
isInstanceOf
[
BastyGenerateFasta
])
shouldBe
2
+
(
2
*
numberSamples
)
pipeline
.
functions
.
count
(
_
.
isInstanceOf
[
Raxml
])
shouldBe
(
2
*
(
2
+
bootRuns
.
getOrElse
(
100
)))
pipeline
.
functions
.
count
(
_
.
isInstanceOf
[
RunGubbins
])
shouldBe
2
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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