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

Can I transform coordinates in LiteMol? #64

Open
filippersson opened this issue Sep 18, 2020 · 3 comments
Open

Can I transform coordinates in LiteMol? #64

filippersson opened this issue Sep 18, 2020 · 3 comments

Comments

@filippersson
Copy link

Is it possible to perform coordinate transformations in LiteMol, say apply a rotation to a molecule so that its orientation changes relative to another molecule loaded in the same "scene"?

Alternatively, can I update the coordinate data within litemol by supplying new coordinates via JSON data to LiteMol?

Nice work with LiteMol by the way :)

@dsehnal
Copy link
Owner

dsehnal commented Sep 18, 2020

You can check https://github.com/dsehnal/LiteMol/tree/master/examples/Transforms for how to do that. JSON is possible, but some work required.

Glad you like it. If you are starting out now, you should have a look into https://molstar.org (it's an "official" successor to LiteMol and NGL). I can do the transforms too (shown in one of the examples/apps there) and loading JSON is somewhat easier.

@filippersson
Copy link
Author

Thanks, I'll check it out!

I just started to look for a molecule-viewer solution to my simple web app project, so molstar seems like a nice option here. My app essentially superposes two molecules based on their surface shape, so I would like to dynamically load (user specified) two molecules into LiteMol/molstar to visualize their original orientation, and then apply the coordinate transformation in the viewer to visualize the final superposition after the search has completed. I have experimented with JSmol which works, but it is far from ideal in terms of performance (speed/footprint) and visualization quality (it is showing its age in other words).

Nice work with MolStar too - keep it up! :)

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

No branches or pull requests

2 participants