| version 1.11 | version 1.12 |
|---|
| |
| This feature has been contributed to \NAMD\ by the following authors: | %\documentclass[12pt]{article} |
| | %\usepackage{graphicx} |
| | %\usepackage{times} |
| | %\usepackage{calrsfs} |
| | %\usepackage{mathrsfs} |
| | %\usepackage{cite} |
| | %\usepackage{rotating} |
| | %\usepackage[T1]{fontenc} |
| | |
| | |
| | %\setlength{\parindent}{0.0cm} |
| | %\setlength{\parskip}{0.5cm} |
| | %\setlength{\textheight}{8.8in} |
| | %\setlength{\textwidth}{6.5in} |
| | %\setlength{\topmargin}{0pt} |
| | %\setlength{\oddsidemargin}{0pt} |
| | %\setlength{\evensidemargin}{0pt} |
| | %\setlength{\marginparwidth}{44pt} |
| | %\renewcommand{\baselinestretch}{1.2} |
| | |
| | |
| | %\newcommand{\eg}{{\it e.g.~}} |
| | %\newcommand{\ie}{{\it i.e.~}} |
| | |
| | %\newcommand{\NAMDCONF}[4]{ |
| | % {\bf \tt #1 } $<$ #2 $>$ \\ |
| | % {\bf Acceptable Values: } #3 \\ |
| | % {\bf Description: } #4 |
| | %} |
| | |
| | %\newcommand{\NAMDCONFWDEF}[5]{ |
| | % {\bf \tt #1 } $<$ #2 $>$ \\ |
| | % {\bf Acceptable Values: } #3 \\ |
| | % {\bf Default Value: } #4 \\ |
| | % {\bf Description: } #5 |
| | %} |
| | |
| | |
| | |
| | %\begin{document} |
| | |
| | |
| | %\addtolength{\baselineskip}{0.2\baselineskip} |
| | |
| | |
| | %\setlength{\abovedisplayshortskip}{-0.6cm} |
| | %\setlength{\abovedisplayskip}{-0.6cm} |
| | %\setlength{\belowdisplayshortskip}{0.5cm} |
| | %\setlength{\belowdisplayskip}{0.5cm} |
| | |
| | |
| | %\renewcommand{\rightmark}{\footnotesize{\it Alchemical free energy perturbation |
| | % calculations in NAMD}} |
| | |
| | |
| | |
| | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| | %%% TEXT |
| | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| | |
| | %\title{User guide to the alchemical free energy perturbation |
| | % calculations in NAMD} |
| | |
| | This feature has been contributed to NAMD by the following authors: |
| | |
| \begin{quote} | \begin{quote} |
| Surjit B. Dixit and Christophe Chipot \\[0.4cm] | Surjit B. Dixit, Jérôme Hénin and Christophe Chipot \\[0.4cm] |
| {\it Equipe de dynamique des assemblages membranaires }\\ | {\it Equipe de dynamique des assemblages membranaires, } \\ |
| {\it Institut nanc\'eien de chimie mol\'eculaire, }\\ | |
| {\it UMR CNRS/UHP 7565, }\\ | {\it UMR CNRS/UHP 7565, }\\ |
| {\it Universit\'e Henri Poincar\'e, }\\ | {\it Université Henri Poincaré, } \\ |
| {\it BP 239, }\\ | {\it BP 239, }\\ |
| {\it 54506 Vand\oe uvre--l\`es--Nancy cedex, France} | {\it 54506 Vand\oe uvre--lès--Nancy cedex, France } |
| \end{quote} | \end{quote} |
| | |
| Further additions have been contributed by: Jordi Cohen | |
| | |
| | %\date{\small Version: \today |
| | %\\[10.0cm] |
| | \copyright~2001--2006, {\sc Centre National de la Recherche Scientifique} |
| | |
| \subsubsection{Introduction and theoretical background} | |
| | |
| | %\maketitle |
| | |
| | |
| | %\thispagestyle{empty} |
| | |
| | |
| | %\newpage |
| | |
| | |
| | %\pagestyle{headings} |
| | |
| | |
| | \subsubsection{Introduction} |
| | |
| | |
| | \paragraph*{Theoretical background} |
| | |
| | |
| | A method to perform alchemical free energy perturbation (FEP)~\cite{Zwanzig1954,Beveridge1989,VanGunsteren1989,Straatsma1992,Kollman1993,Gilson1997, |
| | Mark1998,Chipot2002g,Chipot2007} is available in NAMD. Within the |
| | FEP framework, the free energy difference between two alternate |
| | states, $a$ and $b$, is expressed by: |
| | |
| A method to perform alchemical free energy perturbation (\FEP) | |
| ~\cite{zwan_54_1,Beveridge.89,Gunsteren.89,Straatsma.92,Kollman.93,Gilson.97, | |
| Mark.98,chip_01_1} within \NAMD\ has now been implemented. | |
| In \FEP, the free energy difference between two states, | |
| $a$ and $b$, is expressed by: | |
| | |
| \begin{equation} | \begin{equation} |
| \label{master} | \Delta A_{a \rightarrow b} = -\frac{1}{\beta} \ \ln |
| \Delta A_{a \rightarrow b} = -k_B T \ \ln | \left\langle \exp \left\{-\beta |
| \left< \exp\left[-\frac{{\cal H}_b({\bf r}, {\bf p}) - | \left[{\cal H}_b({\bf x}, {\bf p}_x) - |
| {\cal H}_a({\bf r}, {\bf p})} | {\cal H}_a({\bf x}, {\bf p}_x) |
| {k_B T}\right] | \right] |
| \right>_a | \right\} |
| | \right\rangle_a |
| | \label{fep} |
| \end{equation} | \end{equation} |
| | |
| wherein $k_B$ is the Boltzmann constant, $T$ is the temperature, | |
| and ${\cal H}_a({\bf r}, {\bf p})$ and ${\cal H}_b({\bf r}, {\bf p})$ | Here, $\beta^{-1} \equiv k_B T$, where $k_B$ |
| | is the Boltzmann constant, $T$ is the temperature. |
| | ${\cal H}_a({\bf x}, {\bf p}_x)$ and ${\cal H}_b({\bf x}, {\bf p}_x)$ |
| are the Hamiltonians characteristic of states $a$ and $b$, respectively. | are the Hamiltonians characteristic of states $a$ and $b$, respectively. |
| $\left< \cdots \right>_a$ denotes an ensemble average over configurations | $\left\langle \cdots \right\rangle_a$ denotes an ensemble average over configurations |
| representative of the initial state, $a$. | representative of the initial, reference state, $a$. |
| In practice, the transformation between the two thermodynamic states | |
| | |
| | \begin{figure}[ht] |
| | \center{\vspace{0.4cm} |
| | \includegraphics[width=4cm]{figures/overlap1} |
| | {\bfseries \sffamily (a)} |
| | \hfill |
| | \includegraphics[width=4cm]{figures/overlap2} |
| | {\bfseries \sffamily (b)} |
| | \hfill |
| | \includegraphics[width=4cm]{figures/overlap3} |
| | {\bfseries \sffamily (c)}} |
| | \caption{Convergence of an FEP calculation. If the ensembles representative |
| | of states $a$ and $b$ are too disparate, equation~({\ref{fep}}) will |
| | not converge {\bfseries \sffamily (a)}. |
| | If, in sharp contrast, the configurations of |
| | state $b$ form a subset of the ensemble of configurations |
| | characteristic of state $a$, the simulation is expected |
| | to converge {\bfseries \sffamily (b)}. |
| | The difficulties reflected in case {\bfseries \sffamily (a)} may be |
| | alleviated by the introduction of mutually overlapping intermediate |
| | states that connect $a$ to $b$ {\bfseries \sffamily (c)}. It should be |
| | mentioned that in practice, the kinetic contribution, ${\cal T}({\bf p}_x)$, |
| | is assumed to be identical for state $a$ and state $b$. |
| | \label{fig:overlap}} |
| | \end{figure} |
| | |
| | |
| | Convergence of equation~({\ref{fep}}) implies that low--energy |
| | configurations of the target state, $b$, are also configurations |
| | of the reference state, $a$, thus resulting in an appropriate overlap |
| | of the corresponding ensembles --- see Figure~\ref{fig:overlap}. |
| | In practice, transformation between the two thermodynamic states |
| is replaced by a series of transformations between non--physical, | is replaced by a series of transformations between non--physical, |
| intermediate states along a pathway that connects $a$ to $b$. | intermediate states along a well--delineated |
| This pathway is characterized by a variable, referred to as | pathway that connects $a$ to $b$. |
| ``coupling parameter'',~\cite{Beveridge.89,Mark.98,king_93_1} | This pathway is characterized by a general extent parameter, often |
| $\lambda$, that makes the free energy | referred to as ``coupling parameter''~\cite{Beveridge1989,Mark1998,King1993,Kirkwood1935}, |
| | $\lambda$, that makes the Hamiltonian and, hence, the free energy, |
| a continuous function of this parameter between $a$ and $b$: | a continuous function of this parameter between $a$ and $b$: |
| | |
| | |
| \begin{equation} | \begin{equation} |
| \Delta A_{a \rightarrow b} = -k_B T \ \sum_{k = 1}^N \ln | \Delta A_{a \rightarrow b} = -\frac{1}{\beta} \ \sum_{i = 1}^N \ln |
| \left< \exp\left[-\frac{{\mathcal H}({\bf r}, {\bf p}; \lambda_{k+1}) - | \left\langle \exp\left\{-\beta |
| {\mathcal H}({\bf r}, {\bf p}; \lambda_k)} | \left[{\cal H}({\bf x}, {\bf p}_x; \lambda_{i+1}) - |
| {k_B T}\right] | {\cal H}({\bf x}, {\bf p}_x; \lambda_i) |
| \right>_k | \right] |
| | \right\} |
| | \right\rangle_i |
| | \label{windows} |
| \end{equation} | \end{equation} |
| | |
| Here, $N$ stands for the number of intermediate states, or ``windows'' | |
| between the initial and the final states. | Here, $N$ stands for the number of intermediate stages, or ``windows'' |
| | between the initial and the final states --- see Figure~\ref{fig:overlap}. |
| | |
| | |
| | |
| | \paragraph*{The dual--topology paradigm} |
| | |
| | |
| In a typical \FEP\ setup, that involves the transformation | In a typical FEP setup involving the transformation of one chemical |
| of one chemical species | species into an alternate one in the course of the simulation, the atoms |
| into another one, the atoms in the molecular topology can be | in the molecular topology can be classified into three groups, (i) a |
| separated into three groups: (i) a group of atoms that do not change | group of atoms that do not change during the simulation --- \eg the |
| during the simulation --- \eg the environment, (ii) | environment, (ii) the atoms describing the reference state, $a$, of the |
| those atoms describing the initial state, $a$, of the system, and (iii) | system, and (iii) the atoms that correspond to the target state, |
| those that correspond to the final state, $b$, at the end of the | $b$, at the end of the alchemical transformation. The atoms |
| alchemical transformation. | representative of state $a$ should \emph{never} interact with those of state $b$ |
| The atoms representative of state $a$ | throughout the MD simulation. Such a setup, |
| do not interact with those of state $b$ throughout the | in which atoms of both the initial and the final states of the |
| entire molecular dynamics simulation. | system are present in the molecular topology file --- \ie the {\tt |
| Such a setup, in which atoms pertaining to both the initial and the | psf} file --- is characteristic of the so--called ``dual topology'' |
| final states of the system are present in the molecular topology file --- \ie | paradigm~\cite{Gao1989,Pearlman1994a,Axelsen1998}. The hybrid Hamiltonian of |
| the {\tt psf} file --- is referred to as ``dual topology'' | the system, which is a function of the general extent parameter, $\lambda$, |
| paradigm.~\cite{Axelsen.98,Pearlman.94} | that connects smoothly state $a$ to state $b$, is calculated as a linear |
| The hybrid Hamiltonian of the system, which is a function of the | combination of the corresponding Hamiltonians: |
| coupling parameter $\lambda$, that smoothly connects state $a$ | |
| to state $b$, is evaluated as: | |
| | |
| \begin{equation} | \begin{equation} |
| {\mathcal H}(\lambda) = {\mathcal H}_0 | {\cal H}({\bf x}, {\bf p}_x; \lambda) |
| + \lambda {\mathcal H}_a | = {\cal H}_0({\bf x}, {\bf p}_x) |
| + (1-\lambda) {\mathcal H}_b | + \lambda {\cal H}_b({\bf x}, {\bf p}_x) |
| | + (1-\lambda) {\cal H}_a({\bf x}, {\bf p}_x) |
| | \label{linear} |
| \end{equation} | \end{equation} |
| | |
| where ${\mathcal H}_a$ is the Hamiltonian for the group of atoms representative | |
| of the initial state, $a$, and ${\mathcal H}_b$ characterizes the final state, | where ${\cal H}_a({\bf x}, {\bf p}_x)$ describes the interaction of the group of |
| $b$. ${\mathcal H}_0$ is the Hamiltonian for those atoms that do not undergo any | atoms representative of the reference state, $a$, with the rest of the system. |
| transformation during the MD simulation. | ${\cal H}_b({\bf x}, {\bf p}_x)$ characterizes the interaction of the target topology, |
| | $b$, with the rest of the system. |
| | ${\cal H}_0({\bf x}, {\bf p}_x)$ is the Hamiltonian describing those atoms that do not |
| | undergo any transformation during the MD simulation. |
| | |
| | |
| For instance, in a transformation involving the mutation of an | For instance, in the point mutation of an |
| alanine side chain into that of glycine, using the \FEP \ methodology, | alanine side chain into that of glycine, by means of an FEP |
| the topology of both the methyl group of alanine | calculation, the topology of |
| and the hydrogen borne by the C$_\alpha$ in glycine co--exist | both the methyl group of alanine and the hydrogen borne by the |
| throughout the simulation (see Figure~\ref{fig:dual_top}). | C$_\alpha$ in glycine co--exist throughout the simulation (see |
| | Figure~\ref{fig:dual_top}), yet without actually seeing each |
| | other. |
| | |
| | |
| \begin{figure}[ht] | \begin{figure}[ht] |
| \center{\includegraphics[width=14.5cm]{figures/dual_top}} | \center{\includegraphics[width=12.5cm]{figures/dual_top}} |
| \caption{Dual topology description for an alchemical simulation. | \caption{Dual topology description for an alchemical simulation. |
| Case example of the mutation of alanine into glycine. | Case example of the mutation of alanine into serine. |
| The lighter color denotes the non--interacting, alternate | The lighter color denotes the non--interacting, alternate |
| state.} | state. |
| \label{fig:dual_top} | \label{fig:dual_top}} |
| \end{figure} | \end{figure} |
| | |
| | |
| The energy and forces | The energy and forces are defined as a function of $\lambda$, in |
| are defined as a function of $\lambda$, in such a fashion that | such a fashion that the interaction of the methyl group of alanine |
| the interaction of the methyl group of alanine with the rest of | with the rest of the protein is effective at the beginning of the |
| the protein is effective at the beginning of the simulation, | simulation, \ie $\lambda$ = 0, while the glycine C$_\alpha$ hydrogen |
| \ie $\lambda$ = 0, while | atom does not interact with the rest of the protein, and {\it vice versa} |
| the glycine C$_\alpha$ hydrogen does not interact with the rest | at the end of the simulation, \ie $\lambda$ = 1. For intermediate |
| of the protein, and {\it vice versa} at the end of the | values of $\lambda$, both the alanine and the glycine side chains |
| simulation, \ie $\lambda$ = 1. | participate in non--bonded interactions with the rest of the |
| For intermediate values of $\lambda$, both the alanine and the glycine | protein, scaled on the basis of the current value of $\lambda$. It |
| side chains participate in the non--bonded interactions with the rest | should be clearly understood that these side chains never |
| of the protein, scaled on the basis of the current value of $\lambda$. | interact with each other. Construction of an appropriate |
| It should be emphasized that these side chains, however, | list of excluded atoms, common to the two alternate topologies, |
| do not interact with each other. | is, therefore, necessary. |
| | |
| | |
| It is, therefore, necessary to exclude {\it 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 | It is also worth noting that |
| the free energy calculation does not alter intramolecular | the free energy calculation does not alter intramolecular |
| potentials, \ie bond stretch, valence angle deformation, torsions | potentials, \eg bond stretch, valence angle deformation and torsions, |
| {\it etc}, during the simulation. | in the course of the simulation. |
| In calculations targeted at the estimation | In calculations targeted at the estimation |
| of free energy differences between two states characterized by | of free energy differences between two states characterized by |
| distinct environments --- \eg a ligand bound to a protein in | distinct environments --- \eg a ligand, bound to a protein in |
| the first simulation, | the first simulation, |
| and solvated in water, in the second --- as is the | and solvated in water, in the second --- as is the |
| case for most free energy calculations that make use of a thermodynamic | case for most free energy calculations that make use of a thermodynamic |
| cycle, perturbation of intramolecular terms, | cycle, perturbation of intramolecular terms may, by and large, be safely |
| \eg chemical bonds, can be safely | avoided~\cite{Boresch1999}. |
| avoided.~\cite{Boresch.99a} | |
| | |
| | |
| | |
| \subsubsection{Implementation of free energy perturbation in \NAMD} | \subsubsection{Implementation of free energy perturbation in NAMD} |
| | |
| | |
| The procedure implemented in \NAMD\ is particularly | The procedure implemented in NAMD is particularly |
| adapted for performing free | adapted for performing free |
| energy calculations that split the reaction path into a number of non--physical, | energy calculations that split the $\lambda$ |
| intermediate $\lambda$--states, or ``windows''. Separate simulations | reaction path into a number of non--physical, |
| | intermediate states, or ``windows''. Separate simulations |
| can be started for each window. | can be started for each window. |
| Alternatively, the {\sc Tcl} scripting ability of | Alternatively, the {\sc Tcl} scripting ability of |
| \NAMD\ can be employed advantageously | NAMD can be employed advantageously |
| to perform the complete simulation in a single run. | to perform the complete simulation in a single run. |
| An example making use of such script is supplied at the end | An example making use of such script is supplied at the end |
| of this section. | of this user guide. |
| | |
| | |
| The following keywords can be used to control free | The following keywords can be used to control the alchemical free |
| energy calculations aimed at alchemical transformations. | energy calculations. |
| | |
| \begin{itemize} | |
| | |
| | \begin{itemize} |
| \item | \item |
| \NAMDCONFWDEF{fep}{ Is alchemical \FEP\ to be performed? } | \NAMDCONFWDEF{fep}{ Is alchemical FEP to be performed? } |
| {{\tt on} or {\tt off}} | {{\tt on} or {\tt off}} |
| {{\tt off}} | {{\tt off}} {Turns on hamiltonian scaling and ensemble |
| {Turns on Hamiltonian scaling and ensemble averaging for alchemical \FEP.} | averaging for alchemical FEP.} |
| | |
| \item | \item |
| \NAMDCONF{lambda}{ Coupling parameter value } | \NAMDCONF{lambda}{ Coupling parameter value } |
| |
| energy difference may be determined.} | energy difference may be determined.} |
| | |
| \item | \item |
| \NAMDCONFWDEF{fepEquilSteps}{Number of equilibration steps in the window, | \NAMDCONFWDEF{fepEquilSteps}{Number of equilibration steps in a window, |
| before data collection} | before data collection} |
| {positive integer less than {\tt numSteps} or {\tt run}} | {positive integer less than {\tt numSteps} or {\tt run}} |
| {0} | {0} |
| {In each window {\tt fepEquilSteps} steps of equilibration can be | {In each window {\tt fepEquilSteps} steps of equilibration can be |
| performed before ensemble averaging is initiated. The output also contains | performed before ensemble averaging is initiated. The output also contains |
| the data gathered during equilibration and is meant for analysis of | the data gathered during equilibration and is meant for analysis of |
| convergence properties of the \FEP\ calculation.} | convergence properties of the FEP calculation.} |
| | |
| \item | \item |
| \NAMDCONFWDEF{fepFile}{{\tt pdb} file with perturbation flags} | \NAMDCONFWDEF{fepFile}{{\tt pdb} file with perturbation flags} |
| {filename} | {filename} |
| {coordinates} | {coordinates} |
| {{\tt pdb} file to be used for indicating the \FEP\ status for each of | {{\tt pdb} file to be used for indicating the FEP status for each of |
| the atoms pertaining to the system. | the atoms pertaining to the system. |
| If this parameter is not declared specifically, then the | If this parameter is not declared specifically, then the |
| {\tt pdb} file containing the initial coordinates specified by | {\tt pdb} file specified by |
| {\tt coordinates} is utilized for this information.} | {\tt coordinates} is utilized for this information.} |
| | |
| \item | \item |
| |
| the perturbation flag} | the perturbation flag} |
| {X, Y, Z, O or B} | {X, Y, Z, O or B} |
| {B} | {B} |
| {Column of the {\tt pdb} file to use for retrieving the \FEP\ status | {Column of the {\tt pdb} file to use for retrieving the FEP status |
| of each atom, \ie a flag that indicates which atom will be perturbed | of each atom, \ie a flag that indicates which atom will be perturbed |
| in the course of the simulation. | in the course of the simulation. |
| A value of {\tt -1} in the specified column indicates the atom will | A value of {\tt -1} in the specified column indicates the atom will |
| vanish during the \FEP\ calculation, whereas a value of {\tt 1} | vanish during the FEP calculation, whereas a value of {\tt 1} |
| indicates that the atom will grow.} | indicates that the atom will grow.} |
| | |
| \item | \item |
| \NAMDCONFWDEF{fepOutFreq}{Frequency of \FEP\ energy output in time--steps} | \NAMDCONFWDEF{fepOutFreq}{Frequency of FEP energy output in time--steps} |
| {positive integer} | {positive integer} |
| {5} | {5} |
| {Every {\tt fepOutFreq} number of MD steps, the output file | {Every {\tt fepOutFreq} number of MD steps, the output file |
| |
| This variable could be set to {\tt 1} to include all the | This variable could be set to {\tt 1} to include all the |
| configurations for ensemble averaging. Yet, it is recommended | configurations for ensemble averaging. Yet, it is recommended |
| to update {\tt fepOutFile} energies at longer intervals | to update {\tt fepOutFile} energies at longer intervals |
| to avoid large correlation between consecutive configurations.} | to avoid large files containing highly correlated data.} |
| | |
| \item | \item |
| \NAMDCONFWDEF{fepOutFile}{\FEP\ energy output filename} | \NAMDCONFWDEF{fepOutFile}{FEP energy output filename} |
| {filename} | {filename} |
| {outfilename} | {\tt outfilename} |
| {An output file named {\tt fepOutFile}.fep, generated by \NAMD, | {An output file named {\tt fepOutFile}, generated by NAMD, |
| contains the \FEP\ energies, dumped every {\tt fepOutFreq} steps.} | contains the FEP energies, dumped every {\tt fepOutFreq} steps.} |
| | |
| \item | |
| \NAMDCONFWDEF {fepVdWShiftCoeff}{\FEP\ radius-shifting coefficient} | |
| {positive decimal} | |
| {5.} | |
| {This is a radius-shifting coefficient of $\lambda$ that is used | |
| to construct the modified vdW interactions during alchemical FEP. Providing a positive value for {\tt fepVdWShiftCoeff} ensures that the vdW potential is finite everywhere for small values of $\lambda$, which significantly improves the accuracy and convergence of FEP calculations, and also prevents overlapping particles from making the simulation unstable. During FEP, the inter-atomic distances used in the Lennard-Jones potential are shifted | |
| according to (assuming $\lambda = 0$ means no interaction): \\ | |
| $r^2 \rightarrow r^2 + {\tt fepVdWShiftCoeff} \times (1 - \lambda)$ | |
| } | |
| | |
| \item | |
| \NAMDCONFWDEF {fepElecLambdaStart}{\FEP\ lambda start-point for electrostatics} | |
| {positive decimal} | |
| {0.5} | |
| {In order to avoid the FEP ``end-point catastrophe", it is often important to make sure that a growing particle does not have an unbounded potential right at the moment that it is created (in case that it appears on top of another particle). One way to deal with this for electrostatic interactions, is to allow a bounded scaled vdW potential (using a positive {\tt fepVdWShiftCoeff}) to first repel all overlapping particles at low values of $\lambda$. As $\lambda$ increases, once the particles are repelled, it is now safe to turn on FEP short-range electrostatics. {\tt fepElecLambdaStart} is the value of the scaling factor $\lambda$ at which electrostatic interactions are turned on and start ramping up linearly; below this value, electrostatics are turned off for all FEP particles. {\tt fepElecLambdaStart} only applies to short-range electrostatics (and does not affect the computation of PME, which will scale linearly between 0 and 1 over the entire range of $\lambda$). Note: what is really being modified is the $\lambda$ factor that directly multiplies the interactions (\emph{i.e.}, 0 = fully off, 1 = fully on), rather than the $\lambda$ provided by the user, which may sometimes correspond to (1 - $\lambda$).} | |
| | |
| | |
| \item | |
| \NAMDCONFWDEF {fepVdwLambdaEnd}{\FEP\ lambda end-point for van der Waals} | |
| {positive decimal} | |
| {0.5} | |
| {If one is using the {\tt fepElecLambdaStart} option above, one may wish to further decouple the scaling of van der Waals and electrostatic interactions. {\tt fepVdwLambdaEnd} sets the value of $\lambda$ above which all vdW interactions will be fully on. Note: what is really being modified is the $\lambda$ factor that directly multiplies the interactions (\emph{i.e.}, 0 = fully off, 1 = fully on), rather than the $\lambda$ provided by the user, which may sometimes correspond to (1 - $\lambda$).} | |
| | |
| %\item | |
| %\NAMDCONFWDEF {fepAnnihilate}{Make the FEP moiety completely vanish.} | |
| %{{\tt on} or {\tt off}} | |
| %{{\tt on}} | |
| %{{\tt fepAnnihilate} provides the choice between either annihilating the FEP moieties or simply decoupling them from their environment. If {\tt fepAnnihilate} is set to {\tt on}, as $\lambda$ goes to zero, all the interaction energies and forces involving the FEP moiety are scaled. If {\tt fepAnnihilate} is set to {\tt off}, only the interactions between the FEP moiety and its environment are scaled, and all internal energies and interactions remain at their full strength. In certain cases, turning off {\tt fepAnnihilate} directly measures, say, the solvation energy, and would obviate the need to run a separate FEP simulation of the FEP moiety in vacuum to establish its self-energy.} | |
| | |
| | |
| | |
| | |
| \end{itemize} | \end{itemize} |
| | |
| | |
| \noindent | |
| {\it Note}: Free energy calculations that rely upon equation~({\ref{master}}) | |
| make use of an average temperature, which, in principle, should coincide with | |
| the value of the thermostat. Rather than employing the computed average of $T$, | |
| $\Delta A_{a \rightarrow b}$ 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. | |
| | |
| | |
| | \subsubsection{Examples of input files for running FEP alchemical calculations} |
| | |
| \subsubsection{Example of an input file for running \FEP\ alchemical transformations} | |
| | |
| | The first example illustrates the use of {\sc Tcl} scripting for running |
| | an alchemical transformation with the FEP feature of NAMD. In this |
| | calculation, $\lambda$ is changed continuously from 0 to 1 |
| | by increments of $\delta \lambda$ = 0.1. |
| | |
| The following example illustrates the use of {\sc Tcl} scripting for running | |
| the alchemical \FEP\ feature of \NAMD: | |
| | |
| | \begin{tabular}{ll} |
| | \begin{minipage}{8cm} |
| \begin{verbatim} | \begin{verbatim} |
| fep on | fep on |
| fepfile ion.fep | fepfile ion.fep |
| |
| set step 0.0 | set step 0.0 |
| set dstep 0.1 | set dstep 0.1 |
| | |
| while {$step <= 0.9} { | while {$step <= 1.0} { |
| lambda $step | lambda $step |
| set step [expr $step+$dstep] | set step [expr $step+$dstep] |
| lambda2 $step | lambda2 $step |
| run 10000 | run 10000 |
| } | } |
| \end{verbatim} | \end{verbatim} |
| | \end{minipage} |
| | & |
| | \begin{minipage}{7.8cm} |
| | Turn FEP functionality on. |
| | \newline |
| | File containing the information about growing/shrinking atoms |
| | described in column {\tt X}. |
| | \newline |
| | Output file containing the free energy. |
| | \newline |
| | Frequency at which {\tt fepOutFreq} is updated. |
| | \newline |
| | Number of equilibration steps per $\lambda$--state. |
| | \\[0.6cm] |
| | Starting value of $\lambda$. |
| | \newline |
| | Increment of $\lambda$, \ie $\delta \lambda$. |
| | \\[0.6cm] |
| | {\sc Tcl} script to increment $\lambda$: |
| | \newline |
| | \hspace{0.4cm} (1) set {\tt lambda} value; |
| | \newline |
| | \hspace{0.4cm} (2) increment $\lambda$; |
| | \newline |
| | \hspace{0.4cm} (3) set {\tt lambda2} value; |
| | \newline |
| | \hspace{0.4cm} (4) run 10,000 MD steps. |
| | \\ |
| | \end{minipage} |
| | \end{tabular} |
| | |
| | |
| | The user should be reminded that by setting {\tt run 10000}, |
| | 10,000 MD steps will be performed, which includes the |
| | preliminary {\tt fepEquilSteps} equilibration steps. |
| | This means that here, the ensemble average of equation~({\ref{windows}}) |
| | will be computed over 5,000 MD steps. |
| | |
| | |
| | Alternatively, $\lambda$--states may be declared |
| | explicitly, avoiding the use of {\sc Tcl} scripting: |
| | |
| | \begin{tabular}{ll} |
| | \begin{minipage}{8cm} |
| | \begin{verbatim} |
| | lambda 0.0 |
| | lambda2 0.1 |
| | run 10000 |
| | \end{verbatim} |
| | \end{minipage} |
| | & |
| | \begin{minipage}{7.8cm} |
| | (1) set {\tt lambda} value; |
| | \newline |
| | (2) set {\tt lambda2} value; |
| | \newline |
| | (3) run 10,000 MD steps. |
| | \end{minipage} |
| | \end{tabular} |
| | |
| | |
| | This option is generally preferred to set up windows of diminishing |
| | widths as $\lambda \rightarrow$ 0 or 1 --- a way to circumvent |
| | end--point singularities caused by appearing atoms that may |
| | clash with their surroundings. It may be used in conjunction |
| | with a soft--core potential (see relevant section). |
| | |
| \noindent | |
| Here, the {\tt pdb} file read by \NAMD\ to extract the information | |
| about perturbed atoms is {\tt biotin.fep}. The pertinent information | |
| is present in the {\tt X} column. The output file of the free energy | |
| calculation is {\tt biotinr.fepout}, in which energies are written | |
| every {\tt 5} steps. | |
| $\delta \lambda$, the width of the windows, is set to {\tt 0.1}. | |
| {\tt 5000} MD steps are performed in each window to | |
| equilibrate the system. In this particular instance, | |
| the current value of $\lambda$ | |
| is controlled by the statement {\tt set step}. | |
| The \FEP\ calculation is run until $\lambda$ reaches the | |
| value {\tt 0.9}. In every window, {\tt 10000} MD steps | |
| are performed. | |
| | |
| | |
| \subsubsection{Description of \FEP\ simulation output } | \subsubsection{Description of FEP simulation output } |
| | |
| | |
| The {\tt fepOutFile} contains electrostatic and van der Waals energy | The {\tt fepOutFile} contains electrostatic and van der Waals energy |
| data calculated at $\lambda$ and $\lambda2$, written every | data calculated for {\tt lambda} and {\tt lambda}, written every |
| {\tt fepOutFreq} steps. The column {\tt dE} is the instantaneous energy | {\tt fepOutFreq} steps. The column {\tt dE} is the energy |
| difference for the current configuration. {\tt dE\_avg} and {\tt dG} | difference of the single configuration, {\tt dE\_avg} and {\tt dG} |
| are the accumulated energy ensemble average and the corresponding | are the instantaneous ensemble average of the energy and the calculated |
| free energy at the current time step, respectively. | free energy at the time step specified in column 2, respectively. |
| The temperature is specified in the penultimate column. Upon completion | The temperature is specified in the penultimate column. Upon completion |
| of {\tt fepEquilSteps} steps, the calculation of {\tt dE\_avg} and | of {\tt fepEquilSteps} steps, the calculation of {\tt dE\_avg} and |
| {\tt dG} is restarted. The accumulated net free energy change is output | {\tt dG} is restarted. The accumulated net free energy change is written |
| at each $\lambda$--value and at the end of the simulation. The cumulative | at each lambda value and at the end of the simulation. The cumulative |
| average energy {\tt dE\_avg} value may be summed using, for instance, the | average energy {\tt dE\_avg} value may be summed using the |
| trapezoidal rule, or a Gaussian quadrature, to obtain an approximate | trapezoidal rule to obtain an approximate thermodynamic integration (TI) |
| TI estimate for the free energy change during the run. | estimate for the free energy change during the run. |
| | |
| | |
| | Whereas the FEP module of NAMD supplies free energy differences |
| | determined from equation~({\ref{fep}}), the wealth of information |
| | available in {\tt fepOutFile} may be utilized profitably to |
| | explore different routes towards the estimation of $\Delta A$. As |
| | commented on previously, TI may constitute one such route. The |
| | simple overlap sampling (SOS) represents an interesting alternative, |
| | that combines advantageously \emph{forward} and \emph{reverse} |
| | transformations to improve convergence and accuracy of the |
| | calculation~\cite{lu2004}. The linear scaling of the Hamiltonian |
| | highlighted in equation~({\ref{linear}}) obviates the need for |
| | |