Jump to content

Rama

From PyMOL Wiki
Revision as of 05:42, 18 November 2026 by JeremyTame (talk | contribs)
Type Python Script
Download rama.py
Author(s) Jeremy Tame
License
This code has been put under version control in the project Pymol-script-repo

Introduction

rama.py provides an interactive Ramachandran plot for a PyMOL selection or object.

The plot displays residue backbone phi/psi angles and allows residues to be selected interactively by clicking points in the plot. This centres the view in the main window on the residue in question. Glycine, proline, cysteine and tryptophan residues are highlighted using different colours. Examining unusual backbone conformations and crowded regions of Ramachandran space is made easier by limiting the range of residues selected.

Installation

Download rama.py and load it in PyMOL with:

run rama.py

Usage

First create or load a PyMOL object or selection, for example:

fetch 2dn2
select alpha1, chain A and resi 1-141

Then run the Ramachandran plot command:

rama alpha1

The matplotlib plot title uses the name of the selected object or selection by default. The title can be edited in the plot window before saving the file to disk.

Clicking a point in the Ramachandran plot selects the corresponding residue in PyMOL.

Features

  • Interactive Ramachandran plot linked to PyMOL selections.
  • Clickable residues.
  • Glycine and proline are displayed with distinctive colours.
  • Additional residue types can be highlighted to aid interpretation.
  • Works with pre-existing PyMOL objects and selections.

Download

The latest version is available from GitHub: https://github.com/JezTame/pymol-rama

Example

Interactive Ramachandran plot produced by rama.py.


See also