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
634364dd
Commit
634364dd
authored
Oct 10, 2014
by
bow
Browse files
More unit test for WipeReads
parent
2f2ba67a
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-framework/src/test/scala/nl/lumc/sasc/biopet/core/apps/WipeReadsUnitTest.scala
View file @
634364dd
...
...
@@ -132,6 +132,22 @@ class WipeReadsUnitTest extends Assertions {
assert
(!
isFilteredOut
(
sBAMRecs1
(
6
)))
}
@Test
def
testSingleBAMIntervalWithoutChr
()
=
{
val
intervals
:
Iterator
[
RawInterval
]
=
Iterator
(
RawInterval
(
"Q"
,
291
,
320
),
RawInterval
(
"chrQ"
,
451
,
480
),
RawInterval
(
"P"
,
191
,
480
)
)
val
isFilteredOut
=
makeFilterOutFunction
(
intervals
,
sBAMFile1
,
bloomSize
=
1000
,
bloomFp
=
1
e
-
10
)
assert
(!
isFilteredOut
(
sBAMRecs1
(
0
)))
assert
(
isFilteredOut
(
sBAMRecs1
(
1
)))
assert
(
isFilteredOut
(
sBAMRecs1
(
2
)))
assert
(
isFilteredOut
(
sBAMRecs1
(
3
)))
assert
(!
isFilteredOut
(
sBAMRecs1
(
4
)))
assert
(!
isFilteredOut
(
sBAMRecs1
(
5
)))
assert
(!
isFilteredOut
(
sBAMRecs1
(
6
)))
}
@Test
def
testSingleBAMDefaultPartialExonOverlap
()
=
{
val
intervals
:
Iterator
[
RawInterval
]
=
Iterator
(
RawInterval
(
"chrQ"
,
881
,
1000
)
// overlaps first exon of r05
...
...
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