demo.mov
generalized Turnstile Assistant (gTA) is a PyMOL plugin for performing generalized turnstile rotations on molecular structures directly inside the PyMOL GUI.
This plugin requires:
- PyMOL 3.0 or later
- scipy
Open-source PyMOL is available from conda-forge.
Run the following commands in a terminal:
conda create -n pymol-opensource
conda activate pymol-opensource
conda install -c conda-forge pymol-open-source
conda install -c conda-forge scipy
pymolAfter launching PyMOL on your computer, open the menu bar and go to Plugin -> Plugin Manager.
In the Plugin Manager dialog:
- Open the
Install New Plugintab. - Click
Choose file.... - Navigate to the gTA plugin folder in this repository.
- Select
__init__.py. - Click
OKin the remaining pop-up windows.
The plugin is then installed successfully. You should see generalized Turnstile Assistant in the Plugin menu of PyMOL.
- Launch PyMOL and load your molecular structure.
- Open
Plugin -> generalized Turnstile Assistant. - Click
Start. - In the PyMOL viewport, click the central atom.
- Click one connection atom for the first arm.
- In the PyMOL wizard panel, click
Arm Atom Selection Done. - Repeat the same process for each additional arm.
- After selecting at least two arms, click
Picking Finishedin the plugin window. - Use the angle slider to rotate the selected fragment.
- You can also type a value into the angle box and click
Set Angle. - Click
Revert Changesto return the angle to0.
- The first picked atom is treated as the central atom.
- For each arm, the first picked atom is used as the arm connection atom.
- After picking is completed, the plugin computes the rotation axis automatically.
- Rotation is then applied directly to the relevant atoms in the loaded PyMOL object.
The current implementation assumes:
- only one object is loaded in PyMOL
- the object has only one state
- arm selection requires at least two arms
If you use this software in your research, please cite:
Tao, Y.; Wang, X.; Zou, W.; Kraka, E. Generalized Turnstile Rotation: Formulation, Visualization, Workflow Implementation, and Application for Modeling Polytopal Rearrangements. Journal of Computational Chemistry 2026, 47, e70432. https://doi.org/10.1002/jcc.70432 Preprint PDF