Generating the Grid

Authors: Tiba Aynechi and P. Therese Lang
Last updated August 15, 2024 by Scott Brozell

This tutorial describes the generation of the grids used for grid-based scoring in DOCK. We study the complex L-Arabinose-Binding Protein bound to L-Arabinose (PDB ID 1ABE ) as an example system. However, these techniques should be transferable to any protein-ligand system.

To start this tutorial, obtain the rec_charged.mol2 and the selected_spheres.sph files from the "Structure Preparation Tutorial" and the " Sphere Generation and Selection Tutorial," respectively. The programs showbox and grid that are distributed and installed with DOCK are required.

STEP 1: Creating a box around the active site.

The interactive program showbox is used to visualize and define the location and size of the grid to be calculated using grid. The output of the program is in PDB format and can be visualized using a program capable of displaying PDB files. When you run the program interactively, you will be presented with a set of questions below, some of which may or may not appear depending on your answer.

Flow Chart of Questions for Showbox
(Red path is followed in this tutorial)

Run the command "showbox" to generate the question tree and calculate the grid box. Alternatively, you can list the answers to the questions in a text file, which can then be piped into showbox with the command "showbox < box.in."

The output rec_box.pdb is shown in the graphical representation below:

Image generated using Chimera (https://www.cgl.ucsf.edu/chimera)

STEP 2: Generating the Grid.

Grid creates the grid files necessary for rapid score evaluation in DOCK. Two types of scoring are available: contact and energy scoring. The scoring grids are stored in files ending in *. cnt and *. nrg respectively. When docking, each scoring function is applied independent of the others and the results are written to separate output files. Grid also computes a bump grid which identifies whether a ligand atom is in severe steric overlap with a receptor atom. The bump grid is identified with a *.bmp file extension. The file containing the bump grid also stores the size, position and grid spacing of all the grids.

The grid calculation must be performed prior to docking. The calculation can take up to 45 minutes, but needs to be done only once for each receptor site. Since DOCK can perform continuum scoring without a grid, the grid calculation is not always required. However, for most docking tasks, such as when multiple binding modes for a molecule or multiple molecules are considered, it is more time efficient to precompute the scoring grids.

This tutorial uses the grid-based energy scoring function. The energy scoring component of DOCK is a type of force field scoring. Force field scores are approximate molecular mechanics interaction energies, consisting of van der Waals and electrostatic components:

where each term is a double sum over ligand atoms i and receptor atoms j.

To generate the grid itself you need to use the program grid that is distributed as an accessory to DOCK (Kuntz et al. J. Mol. Biol. 1982. 161: 269-288). Using the box generated in Step 1, the program grid pre-computes the contact and electrostatic potentials for the active site at a specified grid spacing. In order to run grid, you must generate an input file, here named grid.in, either interactively by answering questions or manually by creating a text file.

Usage: grid [-i [input_file]] [-o [output_file]] [-stv]

OPTIONS:
-i input_file #Input parameters extracted from input_file, or grid.in if not specified
-o output_file #Output written to output_file, or grid.out if not specified
-s #Input parameters entered interactively
-t #Reduced output level
-v #Increased output level

grid.in and grid.out are the default input/output names, but you may specify others. Below are the parameters that may be declared for the grid calculation. Those in bold were used for the calculation in this tutorial.

NOTE: The following parameter definitions will use the format below:

parameter_name [default] (value):
#description

In some cases, parameters are only needed (questions will only be asked) if the parameter above is enforced. These parameters are indicated below by additional indentation.

u = United atom model. These hydrogens are assigned a zero VDW well-depth and the partial charge is transferred to the carbon.
a = All atom model. These hydrogens have regular VDW well-depth and the partial charge is not modified.

NOTE: You should specify the full paths for the rec_charged.mol2, rec_box.pdb and vdw definition files. A more detailed explanation of the scoring functions and the input parameters can be found in the DOCK 6 Manual.

The program will generate separate grid files for the contact, energy, and bump calculations, with .cnt, .nrg, and .bmp extensions respectively. In this example, the grid files are named using the prefix 'grid' specified in grid.in: grid.nrg and grid.bmp. The DOCK grid files are binary files. Since binary files are platform dependent, the energy and bump grids available for download here may not be compatible with your platform. For reference these were produced on x86_64 hardware running Linux with GNU 4.1.2 compilers. There is also an output file named grid.out summarizing the parameters used and the grids generated. Be sure to read this file and investigate any warnings.