Home > PyMOL > Cavity and Pocket
Cavity
- Preparation
First, turn off all displays and display the surface and ribbon models.
(*This operation is OK as long as the surface is displayed. You can turn off the cartoon model or display the
ribbon model as you like.)
From the command line or the object panel.
hide everything
show surface
show ribbon
- Display cavity
From External GUI
Setting → surface → Cavities & Pockets(Culled)

- Adjustment
Even small cavities are displayed, adjust the numbers to remove the small cavities.
set cavity_cull, 34
- Change color
Change the surface to your preferred color.
set surface_color, marine
- Transparent
To make a surface transparent, go to External GUI
Settings → Transparency → surface → 40% (the number is up to you).
Pocket
Let's try displaying the molecular surface only around the ligand.
The example uses PDB ID: 3A7E. The ligand is displayed as a ball-and-stick model.
- Select the area around the ligand
Use the following command. This means "select 8 Å around sam with the name pocket." Replace sam with the
name
of the ligand and replace the number around 8 with the distance you want to display.
select pocket, resn sam around 8
If you don't know the name of the ligand, display the sequence with
Display → Sequence and look for the three-letter name (SAM is used in this example).

- Show Surface
From the panel (pocket) created in step 1, select
Show → surface
to display the molecular surface.

- Change the color
Change the surface color with the following command.
set surface_color, marine
↓
