This feature has been contributed to NAMD by the following authors:
Surjit B. Dixit and Christophe Chipot
Equipe de dynamique des assemblages membranaires
Institut nancéien de chimie moléculaire,
UMR CNRS/UHP 7565,
Université Henri Poincaré,
BP 239,
54506 Vanduvre-lès-Nancy cedex, France
A method to perform alchemical free energy perturbation (FEP)
[28,4,27,25,16,12,17,9] within NAMD has now been implemented.
In FEP, the free energy difference between two states,
and
, is expressed by:
wherein is the Boltzmann constant,
is the temperature,
and
and
are the Hamiltonians characteristic of states
and
, respectively.
denotes an ensemble average over configurations
representative of the initial state,
.
In practice, the transformation between the two thermodynamic states
is replaced by a series of transformations between non-physical,
intermediate states along a pathway that connects
to
.
This pathway is characterized by a variable, referred to as
``coupling parameter'', [4,17,15]
, that makes the free energy
a continuous function of this parameter between
and
:
![]() |
(9) |
Here, stands for the number of intermediate states, or ``windows''
between the initial and the final states.
In a typical FEP setup, that involves the transformation
of one chemical species
into another one, the atoms in the molecular topology can be
separated into three groups: (i) a group of atoms that do not change
during the simulation -- e.g.the environment, (ii)
those atoms describing the initial state, , of the system, and (iii)
those that correspond to the final state,
, at the end of the
alchemical transformation.
The atoms representative of state
do not interact with those of state
throughout the
entire molecular dynamics simulation.
Such a setup, in which atoms pertaining to both the initial and the
final states of the system are present in the molecular topology file -- i.e.
the psf file -- is referred to as ``dual topology''
paradigm. [2,19]
The hybrid Hamiltonian of the system, which is a function of the
coupling parameter
, that smoothly connects state
to state
, is evaluated as:
![]() |
(10) |
where
is the Hamiltonian for the group of atoms representative
of the initial state,
, and
characterizes the final state,
.
is the Hamiltonian for those atoms that do not undergo any
transformation during the MD simulation.
For instance, in a transformation involving the mutation of an
alanine side chain into that of glycine, using the FEP methodology,
the topology of both the methyl group of alanine
and the hydrogen borne by the C in glycine co-exist
throughout the simulation (see Figure 5).
![]() |
The energy and forces
are defined as a function of , in such a fashion that
the interaction of the methyl group of alanine with the rest of
the protein is effective at the beginning of the simulation,
i.e.
= 0, while
the glycine C
hydrogen does not interact with the rest
of the protein, and vice versa at the end of the
simulation, i.e.
= 1.
For intermediate values of
, both the alanine and the glycine
side chains participate in the non-bonded interactions with the rest
of the protein, scaled on the basis of the current value of
.
It should be emphasized that these side chains, however,
do not interact with each other.
It is, therefore, necessary to exclude explicitly in the setup those atoms that are created from those that will be annihilated in the course of the FEP calculation (see ``A tutorial to set up alchemical free energy perturbation calculations in NAMD'' available from the NAMD website).
It is also worth noting that the free energy calculation does not alter intramolecular potentials, i.e.bond stretch, valence angle deformation, torsions etc, during the simulation. In calculations targetted at the estimation of free energy differences between two states characterized by distinct environments -- e.g.a ligand bound to a protein in the first simulation, and solvated in water, in the second -- as is the case for most free energy calculations that make use of a thermodynamic cycle, perturbation of intramolecular terms, e.g.chemical bonds, can be safely avoided. [5]
The procedure implemented in NAMD is particularly
adapted for performing free
energy calculations that split the reaction path into a number of non-physical,
intermediate -states, or ``windows''. Separate simulations
can be started for each window.
Alternatively, the TCL scripting ability of
NAMD can be employed advantageously
to perform the complete simulation in a single run.
An example making use of such script is supplied at the end
of this section.
The following keywords can be used to control free energy calculations aimed at alchemical transformations.
Note: Free energy calculations that rely upon equation (8)
make use of an average temperature, which, in principle, should coincide with
the value of the thermostat. Rather than employing the computed average of ,
is estimated with the target value of the
temperature defined by the user. It is, therefore, necessary to activate
some constant-temperature scheme to carry out FEP calculations.
The following example illustrates the use of TCL scripting for running the alchemical FEP feature of NAMD:
fep on fepfile ion.fep fepCol X fepOutfile ion.fepout fepOutFreq 5 fepEquilSteps 5000 set step 0.0 set dstep 0.1 while {$step <= 0.9} { lambda $step set step [expr $step+$dstep] lambda2 $step run 10000 }
Here, the pdb file read by NAMD to extract the information
about perturbed atoms is biotin.fep. The pertinent information
is present in the X column. The output file of the free energy
calculation is biotinr.fepout, in which energies are written
every 5 steps.
, the width of the windows, is set to 0.1.
5000 MD steps are performed in each window to
equilibrate the system. In this particular instance,
the current value of
is controlled by the statement set step.
The FEP calculation is run until
reaches the
value 0.9. In every window, 10000 MD steps
are performed.
The fepOutFile contains electrostatic and van der Waals energy
data calculated at and
, written every
fepOutFreq steps. The column dE is the instantaneous energy
difference for the current configuration. dE_avg and dG
are the accumulated energy ensemble average and the corresponding
free energy at the current time step, respectively.
The temperature is specified in the penultimate column. Upon completion
of fepEquilSteps steps, the calculation of dE_avg and
dG is restarted. The accumulated net free energy change is output
at each
-value and at the end of the simulation. The cumulative
average energy dE_avg value may be summed using, for instance, the
trapezoidal rule, or a Gaussian quadrature, to obtain an approximate
TI estimate for the free energy change during the run.