def __init__(self, quality_base=33): qb = quality_base if sys.version_info[0] < 3: self.ZERO_CAP_TRANS = maketrans(''.join(map(chr, range(qb))), chr(qb) * qb) else: self.ZERO_CAP_TRANS = maketrans(bytes(range(qb)), bytes([qb] * qb))
def __init__(self, quality_base=33): qb = quality_base if PY3: self.zero_cap_trans = maketrans(bytes(range(qb)), bytes([qb] * qb)) else: self.zero_cap_trans = maketrans(''.join(map(chr, range(qb))), chr(qb) * qb)
def __init__(self, quality_base=33): qb = quality_base if sys.version_info[0] < 3: self.ZERO_CAP_TRANS = maketrans("".join(map(chr, range(qb))), chr(qb) * qb) else: self.ZERO_CAP_TRANS = maketrans(bytes(range(qb)), bytes([qb] * qb))
def __init__(self): self.DOUBLE_ENCODE_TRANS = maketrans(b"0123.", b"ACGTN")
def __init__(self, quality_base=33): qb = quality_base self.zero_cap_trans = maketrans(''.join(map(chr, range(qb))), chr(qb) * qb)
def __init__(self): self.double_encode_trans = maketrans('0123.', 'ACGTN')
def __init__(self): self.DOUBLE_ENCODE_TRANS = maketrans(b'0123.', b'ACGTN')
def __init__(self): self.double_encode_trans = maketrans("0123.", "ACGTN")