Ejemplo n.º 1
0
 def testAlignDNA(self):
     self.assertEqual(hw.align("ATTGC", "GATC"), [3, '-ATTGC', 'GAT--C'])
Ejemplo n.º 2
0
 def testAlignNoCommonSeq(self):
     self.assertTrue((hw.align("cs", "amazing") == [0, 'cs-------', '--amazing']) or (hw.align("cs", "amazing") == [0, '-------cs', 'amazing--']))
Ejemplo n.º 3
0
 def testAlignSamePosition(self):
     self.assertEqual(hw.align("hi", "high"), [2, 'hi--', 'high'])
Ejemplo n.º 4
0
 def testAlignEmptyString(self):
     self.assertEqual(hw.align("", "spam"), [0, '----', 'spam'])
Ejemplo n.º 5
0
 def testAlignSingleChars(self):
     self.assertTrue((hw.align("a", "z") == [0, 'a-', '-z']) or (hw.align("a", "z") == [0, '-a', 'z-']))
Ejemplo n.º 6
0
 def testAlignDNA(self):
     self.assertEqual(hw.align("ATTGC", "GATC"), [3, '-ATTGC', 'GAT--C'])
Ejemplo n.º 7
0
 def testAlignSamePosition(self):
     self.assertEqual(hw.align("hi", "high"), [2, 'hi--', 'high'])
Ejemplo n.º 8
0
 def testAlignNoCommonSeq(self):
     self.assertTrue(
         (hw.align("cs", "amazing") == [0, 'cs-------', '--amazing'])
         or (hw.align("cs", "amazing") == [0, '-------cs', 'amazing--']))
Ejemplo n.º 9
0
 def testAlignSingleChars(self):
     self.assertTrue((hw.align("a", "z") == [0, 'a-', '-z'])
                     or (hw.align("a", "z") == [0, '-a', 'z-']))
Ejemplo n.º 10
0
 def testAlignEmptyString(self):
     self.assertEqual(hw.align("", "spam"), [0, '----', 'spam'])