def test_softclip_to_first_match_uncommonMatchOpOk(self): util = cigar.CigarUtil(0, "1M") self.assertEquals((45, "SS" "XPNDISH"), util._softclip_to_first_match(42, "SDNIP" "XPNDISH")) util = cigar.CigarUtil(0, "1M") self.assertEquals((45, "SS" "=PNDISH"), util._softclip_to_first_match(42, "SDNIP" "=PNDISH"))
def test_softclip_to_first_match_posIsAdjusted(self): util = cigar.CigarUtil(0, "1M") self.assertEquals((45, "SS" "MPNDISH"), util._softclip_to_first_match(42, "SDNIP" "MPNDISH"))
def test_softclip_to_first_noMatchesPassesThrough(self): util = cigar.CigarUtil(0, "1M") self.assertEquals((45, "SS"), util._softclip_to_first_match(45, "SS"))
def test_softclip_to_first_match(self): util = cigar.CigarUtil(0, "1M") self.assertEquals((45, "MM"), util._softclip_to_first_match(45, "MM"))