Calculate the RMSD with respect to a reference structure.
To calculate the root-mean-square deviation between the atoms in two configurations you must first superimpose the two structures in some ways. Obviously, it is the internal vibrational motions of the structure - i.e. not the translations and rotations - that are interesting. It is possible to align two structures (i.e. remove the translational and rotational motions of the system). In general the aim of this colvar is to calculate something like:
\[ d(X,X_r) = \vert X-X' \vert \]
where \( X \) is the molecular dynamics snapshot and \( X' \) is a reference structure you provide as input. Here the symbols \( \vert \dots \vert \) represent some sort of norm of choice that is selected through the OPTIMAL switch (see below for examples).
Here we discuss the switch we implemented so far.
\[ d(X,X_r) = \sqrt{ \sum_i \sum_\alpha^{x,y,z} \frac{w_i}{\sum_j w_j}( X_{i,\alpha}-com_\alpha(X)-{X'}_{i,\alpha}+com_\alpha(X') )^2 } \]
with\[ com_\alpha(X)= \sum_i \frac{w'_{i}}{\sum_j w'_j}X_{i,\alpha} \]
and\[ com_\alpha(X')= \sum_i \frac{w'_{i}}{\sum_j w'_j}X'_{i,\alpha} \]
where \( com_\alpha(X) \) and \( com_\alpha(X') \) are the center of mass whenever the weights $w'$ are assigned proportional to the atomic masses, otherwise are the geometric centers of the running MD snapshot and the reference frame respectively whenever they are all set to one. Note that two set of weights exist: \( w' \) and \( w \). The first is used to calculate the center of mass (so it determines the alignment) and the second is used to calculate the actual displacement. These are assigned in the reference (that you set with e.g.: REFERENCE=whatever.pdb) frame which is, for this case, a simple pdb file containing the atoms on which you want to calculate the distance. Note that in this pdb you need to set correctly the index of the atom STARTING FROM 1 (i.e. +1 shift respect to VMD numbering) so that the program knows which atom needs to be compared with. The OCCUPANCY column (the first after the coordinates) set the \( w' \) used for the center of mass calculation and the BETA column (the second after the Cartesian coordinates) set the \( w \) which is responsible of the calculation of the displacement. Users can also use fractional values for beta and the occupancy values. We recommend you only do this when you really know what you are doing however as the results can be rather strange. In PDB files the atomic coordinates and box lengths should be in Angstroms unless you are working with natural units. If you are working with natural units then the coordinates should be in your natural length unit. For more details on the PDB file format visit http://www.wwpdb.org/docs.html\[ d(X,X_r) = \sqrt{ \sum_i \sum_\alpha^{x,y,z} \frac{w_i}{\sum_j w_j}[ X_{i,\alpha}-com_\alpha(X)- \sum_\beta M(X,X',w')_{\alpha,\beta}({X'}_{i,\beta}-com_\beta(X')) ]^2 } \]
where \( M(X,X',w') \) is the optimal alignment matrix which is calculated through the Kearsley [7] algorithm and the set of weights used for the alignment of the center of mass is also used to perform the optimal alignment. Note that the flexibility of setting only certain atoms to calculate the center of mass and optimal alignment which may be different from the one used in the displacemnt calculation is useful whenever for example you want to calculate the motion of a ligand in a protein cavity and you want to clearly use the protein as reference system. When this form of RMSD is used to calculate the secondary structure variables (ALPHARMSD, ANTIBETARMSD and PARABETARMSD) all the atoms in the segment are assumed to be part of both the alignment and displacement sets.REFERENCE | a file in pdb format containing the reference structure and the atoms involved in the CV. |
TYPE | ( default=SIMPLE ) the manner in which RMSD alignment is performed. Should be OPTIMAL or SIMPLE. |
NUMERICAL_DERIVATIVES | ( default=off ) calculate the derivatives for these quantities numerically |
NOPBC | ( default=off ) ignore the periodic boundary conditions when calculating distances |
SQUARED | ( default=off ) This should be setted if you want MSD instead of RMSD |
The following tells plumed to calculate the RMSD distance between the positions of the atoms in the reference file and their instantaneous position. The Kearseley algorithm is used so this is done optimally.
RMSD REFERENCE=file.pdb TYPE=OPTIMAL
...
Hosted by GitHub | 1.8.8 |