Example #1
0
 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))
Example #2
0
 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)
Example #3
0
 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))
Example #4
0
 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')
Example #7
0
	def __init__(self, quality_base=33):
		qb = quality_base
		self.zero_cap_trans = maketrans(''.join(map(chr, range(qb))), chr(qb) * qb)
Example #8
0
	def __init__(self):
		self.double_encode_trans = maketrans('0123.', 'ACGTN')
Example #9
0
 def __init__(self):
     self.DOUBLE_ENCODE_TRANS = maketrans(b'0123.', b'ACGTN')
Example #10
0
	def __init__(self):
		self.DOUBLE_ENCODE_TRANS = maketrans(b'0123.', b'ACGTN')
Example #11
0
 def __init__(self):
     self.double_encode_trans = maketrans("0123.", "ACGTN")
Example #12
0
	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)