Skip to content

PyMOL-wasm port's binary and html/javascript code

Notifications You must be signed in to change notification settings

yakomaxa/PyMOL-Wasm

Repository files navigation

PyMOL-Wasm

This is a repository providing a binary and html/javascript code for WebAssembly port of PyMOL.

I've checked latest google chrome and firefox can run this project.

What's PyMOL-Wasm

  • This project is based on pymol-open-source. pymol-open-source
  • The source code was slightly modified to make it compatible with emscripten and WebGL.
  • The modified source code will be available soon in different repository.

License

  • The pymol part follows original PyMOL's license: See this
  • The frontend part (Javascript and html) follows MIT license.

Demonstration page

Current Limitation

  • Selection by clicking behave slightly different from original PyMOL. Try moving the pointer after clicking.
  • Too large structures cannot be loaded.
  • The resizing window after launching PyMOL makes the click-position recogntion wrong.
  • The dot representation is very weak to see and very heavy to load.
  • Trying to show the cell (unit cell) crashes the session.

Dependency and requirements for building

How this works

  • PyMOL source code was built into whl by emscripten with help of exodide.
  • The whl is loaded by Pyodide.
  • Pyodide executes pymol commands called by Javascript.
  • Javascript controls which pymol commands should be executed.

Feedbacks

  • We appreciate your feedbacks to improve this project.

ToDo

  • Refinement/refactoring of index.html should be done. It's now quite primitive html/javascript.
  • See issues for other ideas.

About

PyMOL-wasm port's binary and html/javascript code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published