4 def __init__(self
, offset
=33):
5 if offset
!= 33 and offset
!= 64:
6 sys
.err
.write("PhredHelper: invalid offset specified. Using default (Sanger 'Q+33')")
11 def char_to_int(self
, char
):
13 phred_val
= raw_val
- self
.offset
16 def int_to_char(self
, num
):
17 return chr(num
+ self
.offset
)