コード例 #1
0
ファイル: test_Locus.py プロジェクト: brohammer/LocusPocus
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
コード例 #2
0
ファイル: test_Locus.py プロジェクト: brohammer/LocusPocus
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