예제 #1
0
 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"))
예제 #2
0
 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"))
예제 #3
0
 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"))
예제 #4
0
 def test_softclip_to_first_noMatchesPassesThrough(self):
     util = cigar.CigarUtil(0, "1M")
     self.assertEquals((45, "SS"), util._softclip_to_first_match(45, "SS"))
예제 #5
0
 def test_softclip_to_first_match(self):
     util = cigar.CigarUtil(0, "1M")
     self.assertEquals((45, "MM"), util._softclip_to_first_match(45, "MM"))
예제 #6
0
 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"))
예제 #7
0
 def test_softclip_to_first_noMatchesPassesThrough(self):
     util = cigar.CigarUtil(0, "1M")
     self.assertEquals((45, "SS"),
                       util._softclip_to_first_match(45, "SS"))
예제 #8
0
 def test_softclip_to_first_match(self):
     util = cigar.CigarUtil(0, "1M")
     self.assertEquals((45, "MM"),
                       util._softclip_to_first_match(45, "MM"))