Class TestCasesIntervalTree
- java.lang.Object
-
- org.snpeff.snpEffect.testCases.unity.TestCasesIntervalTree
-
- Direct Known Subclasses:
TestCasesIntervalTreeArray,TestCasesIntervalTreeOri
public class TestCasesIntervalTree extends java.lang.ObjectTest case for interval tree structure
-
-
Field Summary
Fields Modifier and Type Field Description static intCHR_SIZEprotected Chromosomechromosomeprotected booleandebugprotected Genomegenomeprotected Markersmarkersstatic intMAX_SMALL_MARKER_SIZEstatic intNUM_LARGE_INTERVALSstatic intNUM_SMALL_INTERVALSprotected java.util.Randomrandprotected booleanverbose
-
Constructor Summary
Constructors Constructor Description TestCasesIntervalTree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbefore()protected intcompareQuery(Marker m, Itree intTree)Perform a query using 'naive' lookup and interval forest.protected MarkerscreateRandomLargeMarkers(Chromosome chr, int num)protected MarkerscreateRandomMarkers()protected MarkerscreateRandomSmallMarkers(Chromosome chr, int num)protected ItreenewItree(Markers markers)protected MarkersqueryNaive(Marker query)Naively find all intervals intersecting 'marker'voidtest_01()Test small intervalsvoidtest_02()Test large intervals
-
-
-
Field Detail
-
MAX_SMALL_MARKER_SIZE
public static int MAX_SMALL_MARKER_SIZE
-
NUM_LARGE_INTERVALS
public static int NUM_LARGE_INTERVALS
-
NUM_SMALL_INTERVALS
public static int NUM_SMALL_INTERVALS
-
CHR_SIZE
public static int CHR_SIZE
-
debug
protected boolean debug
-
verbose
protected boolean verbose
-
rand
protected java.util.Random rand
-
genome
protected Genome genome
-
chromosome
protected Chromosome chromosome
-
markers
protected Markers markers
-
-
Method Detail
-
before
@BeforeEach public void before()
-
compareQuery
protected int compareQuery(Marker m, Itree intTree)
Perform a query using 'naive' lookup and interval forest. Compare results and throw an exception if any difference exists
-
createRandomLargeMarkers
protected Markers createRandomLargeMarkers(Chromosome chr, int num)
-
createRandomMarkers
protected Markers createRandomMarkers()
-
createRandomSmallMarkers
protected Markers createRandomSmallMarkers(Chromosome chr, int num)
-
queryNaive
protected Markers queryNaive(Marker query)
Naively find all intervals intersecting 'marker'
-
test_01
@Test public void test_01()
Test small intervals
-
test_02
@Test public void test_02()
Test large intervals
-
-