Skip to content

closes #200: make scadnano pitch angle agree with oxDNA#201

Merged
dave-doty merged 2 commits intodevfrom
dev-issue-200
Nov 12, 2021
Merged

closes #200: make scadnano pitch angle agree with oxDNA#201
dave-doty merged 2 commits intodevfrom
dev-issue-200

Conversation

@DanielHader
Copy link
Copy Markdown
Collaborator

closes #200: make scadnano pitch angle agree with oxDNA

Copy link
Copy Markdown
Member

@dave-doty dave-doty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seem to work as we want. See other comment below.

It might be a good idea to make up some small unit tests to express intended behavior. I'm not quite sure what good unit tests would look like, since testing exact float-point positions of bases after the rotation seems brittle and difficult to figure out.


# then the roll rotation
yaw_axis = yaw_axis.rotate(-design.roll_of_helix(helix), roll_axis)
pitch_axis = pitch_axis.rotate(-design.roll_of_helix(helix), roll_axis)
Copy link
Copy Markdown
Member

@dave-doty dave-doty Nov 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code seems suspicious to me. The variable pitch_axis is not used after this point, so if assigning to it is supposed to have some effect, it won't.

Also, it isn't what I was expecting. An example similar to that shown in UC-Davis-molecular-computing/scadnano#667, which looks like this in scadnano (second helix group has pitch=30):

image

now displays in oxDNA like this:

image

It should look like this (but with the blue axis pointing right and the green axis pointing down):

image

@DanielHader
Copy link
Copy Markdown
Collaborator Author

DanielHader commented Nov 11, 2021 via email

Copy link
Copy Markdown
Member

@dave-doty dave-doty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I implemented it in Dart and played with it a bit, and it seems to give expected results. It would be nice to have some unit tests, but like I said I'm not sure how to make them robust.

@dave-doty dave-doty merged commit 95eec57 into dev Nov 12, 2021
@dave-doty dave-doty deleted the dev-issue-200 branch November 12, 2021 18:21
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.

3 participants