Skip to content
Snippets Groups Projects
Commit 4afd6909 authored by cmaffeo2's avatar cmaffeo2
Browse files

Fixed sequence assignment in segmentmodel_from_lists

parent 4acb9595
No related branches found
No related tags found
No related merge requests found
...@@ -290,9 +290,9 @@ def model_from_basepair_stack_3prime(coordinates, basepair, stack, three_prime, ...@@ -290,9 +290,9 @@ def model_from_basepair_stack_3prime(coordinates, basepair, stack, three_prime,
## Assign sequence ## Assign sequence
if sequence is not None: if sequence is not None:
for hid in range(len(allSegments)): 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 = 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 ## Build model
model = SegmentModel( allSegments, model = SegmentModel( allSegments,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment