Convert pymol session file (.pse) to UnityMol commands
- Python 2.x
- Pymol python library
$ 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.
- For now, this only works for files fetched from the PDB.
A few tests have been written in the 'tests' folder with pytest
.
You can launch them with this command:
$ python2 -m pytest
Pull requests are more than welcome !