Commit 1707caf7 authored by cmaffeo2's avatar cmaffeo2
Browse files

Check for '?' in Strand.set_sequence()

parent 288ae98f
......@@ -781,7 +781,7 @@ class Segment(ConnectableElement, Group):
assert(len(self.sequence) == self.num_nt) # TODO move
for i in range(len(self.sequence)):
if self.sequence[i] is None:
if self.sequence[i] in (None,'?'):
self.sequence[i] = 'T'
raise ValueError("'fill_sequence' parameter must be one of 'random' 'A' 'T' 'C' or 'G'.")
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