Fixed the OBI_Nuc_Seq_Stored cython class not being up to date with the
new properties of its parent class
This commit is contained in:
@ -56,7 +56,7 @@ cdef class OBI_Nuc_Seq(OBI_Seq) :
|
|||||||
|
|
||||||
cdef class OBI_Nuc_Seq_Stored(OBIView_line) :
|
cdef class OBI_Nuc_Seq_Stored(OBIView_line) :
|
||||||
|
|
||||||
# TODO store the str version of column name macros
|
# TODO store the str version of column name macros?
|
||||||
|
|
||||||
cpdef set_id(self, object id) :
|
cpdef set_id(self, object id) :
|
||||||
self[bytes2str(ID_COLUMN)] = id
|
self[bytes2str(ID_COLUMN)] = id
|
||||||
@ -80,13 +80,13 @@ cdef class OBI_Nuc_Seq_Stored(OBIView_line) :
|
|||||||
if (type(quality) == list) or (quality is None) :
|
if (type(quality) == list) or (quality is None) :
|
||||||
self[bytes2str(QUALITY_COLUMN)] = quality
|
self[bytes2str(QUALITY_COLUMN)] = quality
|
||||||
else : # Quality is in str form
|
else : # Quality is in str form
|
||||||
(((self.view).columns)[bytes2str(QUALITY_COLUMN)]).set_str_line(self.index, quality)
|
(((self._view).columns)[bytes2str(QUALITY_COLUMN)]).set_str_line(self._index, quality)
|
||||||
|
|
||||||
cpdef object get_quality(self) :
|
cpdef object get_quality(self) :
|
||||||
return self[bytes2str(QUALITY_COLUMN)]
|
return self[bytes2str(QUALITY_COLUMN)]
|
||||||
|
|
||||||
cpdef object get_str_quality(self) :
|
cpdef object get_str_quality(self) :
|
||||||
return ((self.view).columns)[bytes2str(QUALITY_COLUMN)].get_str_line(self.index)
|
return ((self._view).columns)[bytes2str(QUALITY_COLUMN)].get_str_line(self._index)
|
||||||
|
|
||||||
# def __str__(self) :
|
# def __str__(self) :
|
||||||
# return self[bytes2str(NUC_SEQUENCE_COLUMN)] # or not
|
# return self[bytes2str(NUC_SEQUENCE_COLUMN)] # or not
|
||||||
|
Reference in New Issue
Block a user