Ejemplo n.º 1
0
def test_center_distance_different_chroms():
    x = Locus('1',1,100,strand='+')
    # This needs to be 201 since x starts at 1
    y = Locus('2',201,300,strand='+')
    assert x.center_distance(y) == np.inf
Ejemplo n.º 2
0
def test_center_distance():
    x = Locus('1',1,100,strand='+')
    # This needs to be 201 since x starts at 1
    y = Locus('1',201,300,strand='=')
    assert x.center_distance(y) == 200