def test_trim_variant_deletion(): loc, ref, alt = trim_variant(Variant("chr1", 10, "CG", "C")) eq_(loc, 11) eq_(ref, "G") eq_(alt, "")
def test_trim_variant_insertion(): loc, ref, alt = trim_variant(Variant("chr1", 10, "C", "CG")) eq_(loc, 10) eq_(ref, "") eq_(alt, "G")
def test_trim_variant_substitution(): loc, ref, alt = trim_variant(Variant("chr1", 10, "C", "G")) eq_(loc, 10) eq_(ref, "C") eq_(alt, "G")