Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
biopet.biopet
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
biopet.biopet
Commits
92dd97f7
Commit
92dd97f7
authored
10 years ago
by
bow
Browse files
Options
Downloads
Patches
Plain Diff
Add test for overlapping intervals
parent
ed34dc05
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
biopet-framework/src/test/resources/rrna02.bed
+6
-0
6 additions, 0 deletions
biopet-framework/src/test/resources/rrna02.bed
biopet-framework/src/test/scala/nl/lumc/sasc/biopet/tools/WipeReadsUnitTest.scala
+12
-0
12 additions, 0 deletions
...t/scala/nl/lumc/sasc/biopet/tools/WipeReadsUnitTest.scala
with
18 additions
and
0 deletions
biopet-framework/src/test/resources/rrna02.bed
0 → 100644
+
6
−
0
View file @
92dd97f7
chrQ 300 350 rRNA03 0 +
chrQ 350 400 rRNA03 0 +
chrQ 450 480 rRNA02 0 -
chrQ 470 475 rRNA04 0 -
chrQ 1 200 rRNA01 0 .
chrQ 150 250 rRNA01 0 .
This diff is collapsed.
Click to expand it.
biopet-framework/src/test/scala/nl/lumc/sasc/biopet/tools/WipeReadsUnitTest.scala
+
12
−
0
View file @
92dd97f7
...
...
@@ -122,6 +122,7 @@ class WipeReadsUnitTest extends TestNGSuite with MockitoSugar with Matchers {
val
pBamFile3
=
new
File
(
resourcePath
(
"/paired03.bam"
))
val
BedFile1
=
new
File
(
resourcePath
(
"/rrna01.bed"
))
val
BedFile2
=
new
File
(
resourcePath
(
"/rrna02.bed"
))
val
RefFlatFile1
=
new
File
(
resourcePath
(
"/rrna01.refFlat"
))
val
GtfFile1
=
new
File
(
resourcePath
(
"/rrna01.gtf"
))
...
...
@@ -168,6 +169,17 @@ class WipeReadsUnitTest extends TestNGSuite with MockitoSugar with Matchers {
intervals
.
last
.
getEnd
shouldBe
3063
}
@Test
def
testMakeIntervalFromBedOverlap
()
=
{
val
intervals
:
List
[
Interval
]
=
makeIntervalFromFile
(
BedFile2
)
intervals
.
length
shouldBe
4
intervals
.
head
.
getSequence
should
===(
"chrQ"
)
intervals
.
head
.
getStart
shouldBe
451
intervals
.
head
.
getEnd
shouldBe
480
intervals
.
last
.
getSequence
should
===(
"chrQ"
)
intervals
.
last
.
getStart
shouldBe
2
intervals
.
last
.
getEnd
shouldBe
250
}
@Test
def
testSingleBamDefault
()
=
{
val
intervals
:
List
[
Interval
]
=
List
(
new
Interval
(
"chrQ"
,
291
,
320
),
// overlaps r01, second hit,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment