Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 924 Bytes

README.md

File metadata and controls

46 lines (26 loc) · 924 Bytes

PymolToUnityMol

Convert pymol session file (.pse) to UnityMol commands

Requirements

  • Python 2.x
  • Pymol python library

How to run

$ python2 pymolToUMol.py -f myPymolSession.pse -o myUMolSession.py

Then import the myUMolSession.py file in UnityMol.

You should see the same representations (if they exist in UnityMol) with the same coloring, and all the selections done in Pymol.

Limitations

  • For now, this only works for files fetched from the PDB.

Tests

A few tests have been written in the 'tests' folder with pytest. You can launch them with this command:

$ python2 -m pytest

Contribute

Pull requests are more than welcome !

License

License

Result

alt tag

alt tag