Exemplo n.º 1
0
 def test_extract_residue_numbers_has_correct_start_and_end(self):
     lines = mapper.get_query_sequence_lines(
         self.lines[self.line_ranges[0][0]:self.line_ranges[0][1]])
     start1, end1 = mapper.extract_residue_range_from_sequence_line(lines[0])
     start2, end2 = mapper.extract_residue_range_from_sequence_line(lines[1])
     self.assertEqual(start1, 30)
     self.assertEqual(end1, 109)
     self.assertEqual(start2, 110)
     self.assertEqual(end2, 166)
Exemplo n.º 2
0
 def test_extract_sequence_from_sequence_line_has_correct_sequence(self):
     lines = mapper.get_query_sequence_lines(
         self.lines[self.line_ranges[0][0]:self.line_ranges[0][1]])
     seq = mapper.extract_sequence_from_sequence_line(lines[0])
     self.assertTrue(seq.startswith('GYL'))
     self.assertTrue(seq.endswith('SYN'))
Exemplo n.º 3
0
 def test_gather_query_sequence_lines_gets_correct_lines(self):
     lines = mapper.get_query_sequence_lines(
         self.lines[self.line_ranges[0][0]:self.line_ranges[0][1]])
     self.assertEqual(len(lines), 2)
     self.assertTrue(lines[0].startswith('Q T0644'))
     self.assertTrue(lines[1].startswith('Q T0644'))