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
4afd6909
Commit
4afd6909
authored
Aug 20, 2019
by
cmaffeo2
Browse files
Fixed sequence assignment in segmentmodel_from_lists
parent
4acb9595
Changes
1
Hide whitespace changes
Inline
Side-by-side
mrdna/readers/segmentmodel_from_lists.py
View file @
4afd6909
...
...
@@ -290,9 +290,9 @@ def model_from_basepair_stack_3prime(coordinates, basepair, stack, three_prime,
## Assign sequence
if
sequence
is
not
None
:
for
hid
in
range
(
len
(
allSegments
)):
resids
=
np
.
sort
(
np
.
where
(
(
hmap
==
hid
)
*
(
fwd
==
1
)
)[
0
]
)
resids
=
np
.
where
(
(
hmap
==
hid
)
*
(
fwd
==
1
)
)[
0
]
s
=
allSegments
[
hid
]
s
.
sequence
=
[
sequence
[
r
]
for
r
in
resids
]
s
.
sequence
=
[
sequence
[
r
]
for
r
in
sorted
(
resids
,
key
=
lambda
x
:
hrank
[
x
])
]
## Build model
model
=
SegmentModel
(
allSegments
,
...
...
Write
Preview
Markdown
is supported
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