Ejemplo n.º 1
0
def test_centimorgen_to_phred():
	assert round(centimorgen_to_phred(0.10010013353365396)) == 30
	assert round(centimorgen_to_phred(0.0010000100001343354)) == 50
	assert round(centimorgen_to_phred(1e-38)) == 400
Ejemplo n.º 2
0
def test_centimorgen_to_phred_zero():
	assert centimorgen_to_phred(0)
Ejemplo n.º 3
0
def test_centimorgen_to_phred_zero():
    with raises(ValueError):
        assert centimorgen_to_phred(0)