Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tbgl
tools
mrdna
Commits
1707caf7
Commit
1707caf7
authored
May 20, 2021
by
cmaffeo2
Browse files
Check for '?' in Strand.set_sequence()
parent
288ae98f
Changes
1
Hide whitespace changes
Inline
Side-by-side
mrdna/segmentmodel.py
View file @
1707caf7
...
...
@@ -781,7 +781,7 @@ class Segment(ConnectableElement, Group):
else
:
assert
(
len
(
self
.
sequence
)
==
self
.
num_nt
)
# TODO move
for
i
in
range
(
len
(
self
.
sequence
)):
if
self
.
sequence
[
i
]
i
s
None
:
if
self
.
sequence
[
i
]
i
n
(
None
,
'?'
)
:
self
.
sequence
[
i
]
=
'T'
else
:
raise
ValueError
(
"'fill_sequence' parameter must be one of 'random' 'A' 'T' 'C' or 'G'."
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment