def test_pos_profiles_trailingHardclips(self): util = cigar.CigarUtil(0, "1M") actual = util._pos_profiles("SDMHH") self.assertEquals((2, ["S", "D", "M", "HH"]), actual)
def test_pos_profiles_insertOk(self): util = cigar.CigarUtil(0, "1M") actual = util._pos_profiles("SIM") self.assertEquals((1, ["S", "IM"]), actual)
def test_pos_profiles_deleteOk(self): util = cigar.CigarUtil(0, "1M") actual = util._pos_profiles("SDM") self.assertEquals((2, ["S", "D", "M"]), actual)
def test_pos_profiles_uncommonMatchOpOk(self): util = cigar.CigarUtil(0, "1M") actual = util._pos_profiles("=MM") self.assertEquals((0, ["=", "M", "M"]), actual)
def test_pos_profiles_leadingSoftclips(self): util = cigar.CigarUtil(0, "1M") actual = util._pos_profiles("SMM") self.assertEquals((1, ["S", "M", "M"]), actual)
def test_pos_profiles(self): util = cigar.CigarUtil(0, "1M") actual = util._pos_profiles("MMM") self.assertEquals((0, ["M", "M", "M"]), actual)