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
af617116
Commit
af617116
authored
Sep 27, 2016
by
Sander Bollen
Browse files
add test
parent
26243a6b
Changes
3
Hide whitespace changes
Inline
Side-by-side
biopet-tools/src/test/resources/star_genotype.vcf.gz
0 → 100644
View file @
af617116
File added
biopet-tools/src/test/resources/star_genotype.vcf.gz.tbi
0 → 100644
View file @
af617116
File added
biopet-tools/src/test/scala/nl/lumc/sasc/biopet/tools/VcfFilterTest.scala
View file @
af617116
...
...
@@ -39,7 +39,9 @@ class VcfFilterTest extends TestNGSuite with MockitoSugar with Matchers {
}
val
veppedPath
=
resourcePath
(
"/VEP_oneline.vcf"
)
val
starPath
=
resourcePath
(
"/star_genotype.vcf.gz"
)
val
vepped
=
new
File
(
veppedPath
)
val
star
=
new
File
(
starPath
)
val
rand
=
new
Random
()
@Test
def
testOutputTypeVcf
()
=
{
...
...
@@ -183,6 +185,9 @@ class VcfFilterTest extends TestNGSuite with MockitoSugar with Matchers {
mustHaveVariant
(
record
,
List
(
"Sample_101"
))
shouldBe
true
mustHaveVariant
(
record
,
List
(
"Sample_101"
,
"Sample_102"
))
shouldBe
true
mustHaveVariant
(
record
,
List
(
"Sample_101"
,
"Sample_102"
,
"Sample_103"
))
shouldBe
false
val
starReader
=
new
VCFFileReader
(
star
,
false
)
starReader
.
iterator
().
foreach
(
x
=>
mustHaveVariant
(
x
,
List
(
"Sample_101"
))
shouldBe
false
)
}
@Test
def
testSameGenotype
()
=
{
...
...
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