Commit cec3b33e authored by cmaffeo2's avatar cmaffeo2
Browse files

Amend of update to reader handling sequence (two commits up)

parent 0d1ed546
......@@ -2100,6 +2100,17 @@ class SegmentModel(ArbdModel):
crossovers.append(tmp)
return crossovers
def set_sequence(self, sequence, force=True):
if force:
self.strands[0].set_sequence(sequence)
else:
try:
self.strands[0].set_sequence(sequence)
except:
...
for s in self.segments:
s.randomize_unset_sequence()
def _generate_strands(self):
self.strands = strands = []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment