Skip to content
GitLab
Menu
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
cec3b33e
Commit
cec3b33e
authored
Sep 04, 2018
by
cmaffeo2
Browse files
Amend of update to reader handling sequence (two commits up)
parent
0d1ed546
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnarbd/segmentmodel.py
View file @
cec3b33e
...
...
@@ -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
=
[]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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