Cython: Sequence objects: Quality strings are now returned as bytes

instead of str
This commit is contained in:
Celine Mercier
2018-10-17 11:24:44 +02:00
parent 8a9ba8b0a8
commit 11032ec90b
3 changed files with 17 additions and 17 deletions

View File

@ -363,9 +363,9 @@ cdef class Nuc_Seq_Stored(Seq_Stored) :
# quality character string property getter
# WARNING: default offset used
@property
def quality_str(self):
def quality_bytes(self):
if QUALITY_COLUMN in self:
return self._view.get_column(QUALITY_COLUMN).get_str_line(self._index)
return self._view.get_column(QUALITY_COLUMN).get_bytes_line(self._index)
else:
return None