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

export to oxView format #588

Closed
dave-doty opened this issue Apr 14, 2021 · 3 comments
Closed

export to oxView format #588

dave-doty opened this issue Apr 14, 2021 · 3 comments
Labels
closed in dev Indicates issue is closed in the dev branch, available at: https://scadnano.org/dev/ enhancement New feature or request high priority Something cruicial to get working soon.

Comments

@dave-doty
Copy link
Member

dave-doty commented Apr 14, 2021

There is a new file format for oxView, which has more information than oxDNA (such as strand names, colors, base pairs).

scadnano should be able to export directly to this format, since scadnano has such information that can be embedded in the oxView format.

See also issue UC-Davis-molecular-computing/scadnano-python-package#139

Format explained here: https://github.com/sulcgroup/oxdna-viewer/blob/master/file-format.md

@dave-doty dave-doty added enhancement New feature or request high priority Something cruicial to get working soon. labels Apr 14, 2021
@Akodiat
Copy link

Akodiat commented Apr 14, 2021

Here is the addition I wrote for converting to the .oxview format in the candano conversion script:
lorenzo-rovigatti/tacoxDNA@78ec99507420

If you can get correct positions and connectivity for oxDNA, it should be easy to output to oxView as well

I've also added oxview conversion for rpoly (vhelix) and tiamat.

There is no written standard for the oxview format yet, I'm afraid, but you can easily create and test examples by saving and loading structures in oxview: https://sulcgroup.github.io/oxdna-viewer/. And just let me know if you have any questions!

@dave-doty
Copy link
Member Author

Now that this is implemented in the Python package (UC-Davis-molecular-computing/scadnano-python-package#173), this should be easy by translating the export code to Dart.

See how the oxDNA export currently works (in middleware) for an example of how to do this sort of export in general.

@dave-doty
Copy link
Member Author

dave-doty commented Mar 28, 2024

Release notes

Export to oxView format

The scadnano web interface can now export to the oxView format, which (like oxDNA files) can be read the tool oxView.

It has been possible for a while to export to the oxDNA format, but this is nicer just for visualizing scadnano structures in oxView, because

  1. The oxDNA format has two files, whereas oxView has only one.
  2. The oxView format includes some extra data such as which bases are paired, and what color strands are. This information is populated with the relevant scadnano data. Have the strands be the same color in each tool makes it easier to figure out which strand is which.

For example, this scadnano design:

image

exports like this in oxView:

image

In particular, this provides an immediate visual cue that the view angle in oxView is reversed in both horizontal and vertical directions from that of scadnano, since the purple staple in the bottom right of scadnano appears in the top left of oxView. Rotating it 180 degrees around the y (up-down) axis, and then rotating 180 degree around the z (left-right) axis, then the oxView orientation matches scadnano's:

image

This can also be checked with the axis arrows of oxView and scadnano, which match colors:

image image

dave-doty added a commit that referenced this issue Mar 28, 2024
…to-oxview-format

closes #588: export to oxView format
@dave-doty dave-doty added the closed in dev Indicates issue is closed in the dev branch, available at: https://scadnano.org/dev/ label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed in dev Indicates issue is closed in the dev branch, available at: https://scadnano.org/dev/ enhancement New feature or request high priority Something cruicial to get working soon.
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

7 participants