Fixed problematic __str__ method and useless declarations in the
OBI_Nuc_Seq_Stored class
This commit is contained in:
@ -21,10 +21,6 @@ cdef class OBI_Nuc_Seq(OBI_Seq) :
|
|||||||
|
|
||||||
|
|
||||||
cdef class OBI_Nuc_Seq_Stored(OBIView_line) :
|
cdef class OBI_Nuc_Seq_Stored(OBIView_line) :
|
||||||
cdef str id
|
|
||||||
cdef str description
|
|
||||||
cdef str sequence
|
|
||||||
|
|
||||||
cpdef set_id(self, str id)
|
cpdef set_id(self, str id)
|
||||||
cpdef get_id(self)
|
cpdef get_id(self)
|
||||||
cpdef set_description(self, str description)
|
cpdef set_description(self, str description)
|
||||||
|
@ -65,8 +65,8 @@ cdef class OBI_Nuc_Seq_Stored(OBIView_line) :
|
|||||||
cpdef get_sequence(self) :
|
cpdef get_sequence(self) :
|
||||||
return self[bytes2str(NUC_SEQUENCE_COLUMN)]
|
return self[bytes2str(NUC_SEQUENCE_COLUMN)]
|
||||||
|
|
||||||
def __str__(self) :
|
# def __str__(self) :
|
||||||
return self[bytes2str(NUC_SEQUENCE_COLUMN)] # or not
|
# return self[bytes2str(NUC_SEQUENCE_COLUMN)] # or not
|
||||||
|
|
||||||
# cpdef str reverse_complement(self) : TODO in C ?
|
# cpdef str reverse_complement(self) : TODO in C ?
|
||||||
# pass
|
# pass
|
||||||
|
Reference in New Issue
Block a user