def test_update_index_within_exon1(self):
     trypFragIndex = 10
     exon1Right = 20
     exon2Left = 100
     peptide = "A"  # [10,11,12],13
     trypFragIndex = novelsplices.update_tryp_index(trypFragIndex, exon1Right, exon2Left, peptide)
     self.assertEqual(trypFragIndex, 13)
 def test_update_index_2_more_than_boundary(self):
     trypFragIndex = 10
     exon1Right = 11
     exon2Left = 100
     peptide = "A"  # [10,11,100],101
     trypFragIndex = novelsplices.update_tryp_index(trypFragIndex, exon1Right, exon2Left, peptide)
     self.assertEqual(trypFragIndex, 101)
 def test_update_index_crossing_boundary(self):
     trypFragIndex = 10
     exon1Right = 13
     exon2Left = 100
     peptide = "AA"  # [10,11,12],[13,100,101],102
     trypFragIndex = novelsplices.update_tryp_index(trypFragIndex, exon1Right, exon2Left, peptide)
     self.assertEqual(trypFragIndex, 102)
 def test_update_index_up_to_exon1_right_boundary(self):
     trypFragIndex = 10
     exon1Right = 13
     exon2Left = 100
     peptide = "A"  # [10,11,12],13
     trypFragIndex = novelsplices.update_tryp_index(trypFragIndex, exon1Right, exon2Left, peptide)
     self.assertEqual(trypFragIndex, 13)
 def test_update_index_within_exon1(self):
     trypFragIndex = 10
     exon1Right = 20
     exon2Left = 100
     peptide = "A"  #[10,11,12],13
     trypFragIndex = novelsplices.update_tryp_index(trypFragIndex,
                                                    exon1Right, exon2Left,
                                                    peptide)
     self.assertEqual(trypFragIndex, 13)
 def test_update_index_2_more_than_boundary(self):
     trypFragIndex = 10
     exon1Right = 11
     exon2Left = 100
     peptide = "A"  #[10,11,100],101
     trypFragIndex = novelsplices.update_tryp_index(trypFragIndex,
                                                    exon1Right, exon2Left,
                                                    peptide)
     self.assertEqual(trypFragIndex, 101)
 def test_update_index_crossing_boundary(self):
     trypFragIndex = 10
     exon1Right = 13
     exon2Left = 100
     peptide = "AA"  #[10,11,12],[13,100,101],102
     trypFragIndex = novelsplices.update_tryp_index(trypFragIndex,
                                                    exon1Right, exon2Left,
                                                    peptide)
     self.assertEqual(trypFragIndex, 102)
 def test_update_index_up_to_exon1_right_boundary(self):
     trypFragIndex = 10
     exon1Right = 13
     exon2Left = 100
     peptide = "A"  #[10,11,12],13
     trypFragIndex = novelsplices.update_tryp_index(trypFragIndex,
                                                    exon1Right, exon2Left,
                                                    peptide)
     self.assertEqual(trypFragIndex, 13)