Ejemplo n.º 1
0
    def test_write_read_data(self):
        write_read_data(self.output_file, READ_DATA)

        file_pos = self.output_file.tell()
        self.assertTrue(file_pos % 8 == 0)

        self.output_file.seek(0)
        num_flows = len(READ_DATA['flowgram_values'])
        num_bases = len(READ_DATA['Bases'])
        observed = parse_read_data(self.output_file, num_bases, num_flows)
        self.assertEqual(observed, READ_DATA)

        file_pos = self.output_file.tell()
        self.assertTrue(file_pos % 8 == 0)
Ejemplo n.º 2
0
    def test_write_read_data(self):
        write_read_data(self.output_file, READ_DATA)

        file_pos = self.output_file.tell()
        self.assertTrue(file_pos % 8 == 0)

        self.output_file.seek(0)
        num_flows = len(READ_DATA['flowgram_values'])
        num_bases = len(READ_DATA['Bases'])
        observed = parse_read_data(self.output_file, num_bases, num_flows)
        self.assertEqual(observed, READ_DATA)

        file_pos = self.output_file.tell()
        self.assertTrue(file_pos % 8 == 0)
Ejemplo n.º 3
0
 def test_parse_read_data(self):
     self.sff_file.seek(440 + 32)
     observed = parse_read_data(self.sff_file, 271, 400)
     self.assertEqual(observed, READ_DATA)
Ejemplo n.º 4
0
 def test_parse_read_data(self):
     self.sff_file.seek(440 + 32)
     observed = parse_read_data(self.sff_file, 271, 400)
     self.assertEqual(observed, READ_DATA)