patch a bug adding an 'evaluatued' key to sequences
This commit is contained in:
@@ -455,8 +455,8 @@ class SubSequence(WrappedBioSequence):
|
|||||||
location=None,
|
location=None,
|
||||||
start=None,stop=None,
|
start=None,stop=None,
|
||||||
id=None,definition=None,
|
id=None,definition=None,
|
||||||
evaluatued=True,**info):
|
evaluated=True,**info):
|
||||||
WrappedBioSequence.__init__(self,reference,id=None,definition=None,evaluatued=evaluatued,**info)
|
WrappedBioSequence.__init__(self,reference,id=None,definition=None,evaluated=evaluated,**info)
|
||||||
|
|
||||||
if isinstance(location, slice):
|
if isinstance(location, slice):
|
||||||
self._location = location
|
self._location = location
|
||||||
@@ -474,6 +474,11 @@ class SubSequence(WrappedBioSequence):
|
|||||||
self._info['cut']='[%d,%d,%s]' % self._indices
|
self._info['cut']='[%d,%d,%s]' % self._indices
|
||||||
self._eval['cut']=True
|
self._eval['cut']=True
|
||||||
|
|
||||||
|
def getId(self):
|
||||||
|
d = self._id or ("%s_SUB" % self.wrapped.id)
|
||||||
|
return d
|
||||||
|
|
||||||
|
|
||||||
def clone(self):
|
def clone(self):
|
||||||
seq = WrappedBioSequence.clone(self)
|
seq = WrappedBioSequence.clone(self)
|
||||||
seq._location=self._location
|
seq._location=self._location
|
||||||
@@ -499,6 +504,7 @@ class SubSequence(WrappedBioSequence):
|
|||||||
return DNAComplementSequence(self)
|
return DNAComplementSequence(self)
|
||||||
raise AttributeError
|
raise AttributeError
|
||||||
|
|
||||||
|
id = property(getId,BioSequence.setId, None, "Sequence Identifier")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user