def test_set_clip_qual_left(self): orig_header, orig_reads = parse_binary_sff(open(self.sff_fp), True) orig_reads = list(orig_reads) _, clip_reads = set_clip_qual_left((orig_header, orig_reads), 8) for read, orig_read in zip(clip_reads, orig_reads): self.assertEqual(read['clip_qual_left'], 9) # Check that eveything else is the same between original # reads and trimmed reads. orig_read['clip_qual_left'] = 9 self.assertEqual(read, orig_read)
def test_set_clip_qual_left(self): orig_header, orig_reads = parse_binary_sff(open(self.sff_fp), True) orig_reads = list(orig_reads) _, clip_reads = set_clip_qual_left((orig_header, orig_reads), 8) for read, orig_read in zip(clip_reads, orig_reads): self.assertEqual(read["clip_qual_left"], 9) # Check that eveything else is the same between original # reads and trimmed reads. orig_read["clip_qual_left"] = 9 self.assertEqual(read, orig_read)