Commit 63a27a65 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Adding method to test scatter

parent 451f437f
......@@ -3,7 +3,6 @@ package nl.lumc.sasc.biopet.utils.intervals
import java.io.{ PrintWriter, File }
import htsjdk.samtools.reference.FastaSequenceFile
import htsjdk.samtools.util.Interval
import scala.collection.JavaConversions._
......
......@@ -124,6 +124,12 @@ class BedRecordListTest extends TestNGSuite with Matchers {
}
}
@Test def testScatter: Unit = {
val list = BedRecordList.fromList(List(BedRecord("chrQ", 0, 1000), BedRecord("chrQ", 3000, 3500)))
list.scatter(100).allRecords.size shouldBe 15
list.scatter(100).length shouldBe 1500
}
@AfterClass
def end: Unit = {
BedRecordListTest.bedFile.delete()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment