Class TestCasesIntervalTree
java.lang.Object
org.snpeff.snpEffect.testCases.unity.TestCasesIntervalTree
- Direct Known Subclasses:
TestCasesIntervalTreeArray,TestCasesIntervalTreeOri
Test case for interval tree structure
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intprotected Chromosomeprotected booleanprotected Genomeprotected Markersstatic intstatic intstatic intprotected Randomprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbefore()protected intcompareQuery(Marker m, Itree intTree) Perform a query using 'naive' lookup and interval forest.protected MarkerscreateRandomLargeMarkers(Chromosome chr, int num) protected Markersprotected MarkerscreateRandomSmallMarkers(Chromosome chr, int num) protected Itreeprotected MarkersqueryNaive(Marker query) Naively find all intervals intersecting 'marker'voidtest_01()Test small intervalsvoidtest_02()Test large intervals
-
Field Details
-
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
-
genome
-
chromosome
-
markers
-
-
Constructor Details
-
TestCasesIntervalTree
public TestCasesIntervalTree()
-
-
Method Details
-
before
@BeforeEach public void before() -
compareQuery
Perform a query using 'naive' lookup and interval forest. Compare results and throw an exception if any difference exists -
createRandomLargeMarkers
-
createRandomMarkers
-
createRandomSmallMarkers
-
newItree
-
queryNaive
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
-