Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helix order when importing from cadnano #217

Merged
merged 2 commits into from
Feb 12, 2022
Merged

Conversation

tcosmo
Copy link
Collaborator

@tcosmo tcosmo commented Feb 12, 2022

Description

Cadnano's helix order was not conserved when using from_cadnano_v2. That happened because @dave-doty thought that the constructor of Design would automatically handle this ordering (by correctly setting helices_view_order) but it does not. I have given more details in the related issue: #202

In order to fix this bug I uncommented the following instruction which sets the helix order directly in the import code instead of relying on Design's constructor:

design.set_helices_view_order([num for num in helices]) l.4648

Related Issue

#202

How Has This Been Tested?

I added the test tests.scadnano_tests.TestImportCadnanoV2.test_helices_order2

@tcosmo tcosmo requested a review from dave-doty as a code owner February 12, 2022 09:40
@dave-doty dave-doty merged commit fad3b98 into dev Feb 12, 2022
@dave-doty dave-doty deleted the bug_helix_order_issue branch February 12, 2022 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants