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
23e05373
Commit
23e05373
authored
Mar 08, 2016
by
Peter van 't Hof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed tests
parent
25f487cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
public/shiva/src/test/scala/nl/lumc/sasc/biopet/pipelines/shiva/ShivaSvCallingTest.scala
...lumc/sasc/biopet/pipelines/shiva/ShivaSvCallingTest.scala
+3
-3
public/shiva/src/test/scala/nl/lumc/sasc/biopet/pipelines/shiva/ShivaVariantcallingTest.scala
...sasc/biopet/pipelines/shiva/ShivaVariantcallingTest.scala
+2
-5
No files found.
public/shiva/src/test/scala/nl/lumc/sasc/biopet/pipelines/shiva/ShivaSvCallingTest.scala
View file @
23e05373
...
...
@@ -129,7 +129,7 @@ class ShivaSvCallingTest extends TestNGSuite with Matchers {
)
val
pipeline
=
initPipeline
(
map
)
pipeline
.
inputBams
=
Map
(
"bam"
->
Shiva
Variantc
allingTest
.
inputTouch
(
"bam"
+
".bam"
))
pipeline
.
inputBams
=
Map
(
"bam"
->
Shiva
SvC
allingTest
.
inputTouch
(
"bam"
+
".bam"
))
if
(!
del
&&
!
dup
&&
!
inv
&&
!
tra
)
intercept
[
IllegalArgumentException
]
{
pipeline
.
init
()
...
...
@@ -149,7 +149,7 @@ class ShivaSvCallingTest extends TestNGSuite with Matchers {
val
map
=
Map
(
"sv_callers"
->
List
(
"this is not a caller"
))
val
pipeline
=
initPipeline
(
map
)
pipeline
.
inputBams
=
Map
(
"bam"
->
Shiva
Variantc
allingTest
.
inputTouch
(
"bam"
+
".bam"
))
pipeline
.
inputBams
=
Map
(
"bam"
->
Shiva
SvC
allingTest
.
inputTouch
(
"bam"
+
".bam"
))
intercept
[
IllegalArgumentException
]
{
pipeline
.
init
()
...
...
@@ -181,7 +181,7 @@ object ShivaSvCallingTest {
val
outputDir
=
Files
.
createTempDir
()
outputDir
.
deleteOnExit
()
new
File
(
outputDir
,
"input"
).
mkdirs
()
def
inputTouch
(
name
:
String
)
:
File
=
{
private
def
inputTouch
(
name
:
String
)
:
File
=
{
val
file
=
new
File
(
outputDir
,
"input"
+
File
.
separator
+
name
).
getAbsoluteFile
Files
.
touch
(
file
)
file
...
...
public/shiva/src/test/scala/nl/lumc/sasc/biopet/pipelines/shiva/ShivaVariantcallingTest.scala
View file @
23e05373
...
...
@@ -96,16 +96,13 @@ class ShivaVariantcallingTest extends TestNGSuite with Matchers {
pipeline
.
functions
.
count
(
_
.
isInstanceOf
[
VcfFilter
])
shouldBe
(
if
(
raw
)
bams
else
0
)
}
}
@AfterClass
def
removeTempOutputDir
()
=
{
FileUtils
.
deleteDirectory
(
ShivaVariantcallingTest
.
outputDir
)
}
}
object
ShivaVariantcallingTest
{
val
outputDir
=
Files
.
createTempDir
()
outputDir
.
deleteOnExit
()
new
File
(
outputDir
,
"input"
).
mkdirs
()
def
inputTouch
(
name
:
String
)
:
File
=
{
private
def
inputTouch
(
name
:
String
)
:
File
=
{
val
file
=
new
File
(
outputDir
,
"input"
+
File
.
separator
+
name
).
getAbsoluteFile
Files
.
touch
(
file
)
file
...
...
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