Examples of JunctionLocationMap


Examples of org.bioinfo.ngs.qc.qualimap.common.JunctionLocationMap

public class JunctionLocationMapTest {

    @Test
    public void simpleTests() {

        JunctionLocationMap locationMap = new JunctionLocationMap();

        locationMap.put("chr1", 25, 30);
        locationMap.put("chr1", 25, 80);
        locationMap.put("chr1", 100, 200);
        assert(locationMap.size("chr1") == 4);


        locationMap.setupIntervalTreeMap();

        assertTrue(locationMap.hasOverlap("chr1", 26));
        assertTrue(locationMap.hasOverlap("chr1", 79));
        assertFalse(locationMap.hasOverlap("chr1", 780));




View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.