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
0e6920a2
Commit
0e6920a2
authored
May 25, 2016
by
Peter van 't Hof
Browse files
Code improvement
parent
43006ba6
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-tools/src/test/scala/nl/lumc/sasc/biopet/tools/VcfFilterTest.scala
View file @
0e6920a2
...
...
@@ -71,10 +71,9 @@ class VcfFilterTest extends TestNGSuite with MockitoSugar with Matchers {
/**
* This should simply not raise an exception
*/
val
tmp
=
File
.
createTempFile
(
"VCfFilter"
,
".vcf
.gz
"
)
val
tmp
=
File
.
createTempFile
(
"VCfFilter"
,
".vcf"
)
tmp
.
deleteOnExit
()
val
tmpPath
=
tmp
.
getAbsolutePath
val
arguments
:
Array
[
String
]
=
Array
(
"-I"
,
veppedPath
,
"-o"
,
tmpPath
,
val
arguments
:
Array
[
String
]
=
Array
(
"-I"
,
veppedPath
,
"-o"
,
tmp
.
getAbsolutePath
,
"--mustHaveGenotype"
,
"Sample_101:HET"
)
main
(
arguments
)
...
...
@@ -83,12 +82,11 @@ class VcfFilterTest extends TestNGSuite with MockitoSugar with Matchers {
val
tmp2
=
File
.
createTempFile
(
"VcfFilter"
,
".vcf.gz"
)
tmp2
.
deleteOnExit
()
val
tmpPath2
=
tmp2
.
getAbsolutePath
val
arguments2
:
Array
[
String
]
=
Array
(
"-I"
,
veppedPath
,
"-o"
,
tmpPath2
,
val
arguments2
:
Array
[
String
]
=
Array
(
"-I"
,
veppedPath
,
"-o"
,
tmp2
.
getAbsolutePath
,
"--mustHaveGenotype"
,
"Sample_101:HOM_VAR"
)
main
(
arguments2
)
val
size2
=
new
VCFFileReader
(
new
File
(
tmpPath2
)
,
false
).
size
val
size2
=
new
VCFFileReader
(
tmp2
,
false
).
size
size2
shouldBe
0
}
...
...
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