Shortcut: DRMSD
| Module | colvar |
|---|---|
| Description | Usage |
| Calculate the distance RMSD with respect to a reference structure. | |
| output value | type |
| the DRMSD distance between the instantaneous structure and the reference structure | scalar/vector |
Details and examples
Calculate the distance 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. However, aligning two structures by removing the translational and rotational motions is not easy. Furthermore, in some cases there can be alignment issues caused by so-called frame-fitting problems. It is thus often easier to calculate the distances between all the pairs of atoms. The distance between the two structures, and can then be measured as:
where is the number of atoms and represents the distance between
atoms and . Clearly, this representation of the configuration is invariant to translation and rotation.
However, it can become expensive to calculate when the number of atoms is large. This can be resolved
within the DRMSD colvar by setting LOWER_CUTOFF and UPPER_CUTOFF. These keywords ensure that only
pairs of atoms that are within a certain range are incorporated into the above sum.
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. Click here for more details on the PDB file format.
Examples
The following tells plumed to calculate the distance RMSD between the positions of the atoms in the reference file and their instantaneous position. Only pairs of atoms whose distance in the reference structure is within 0.1 and 0.8 nm are considered.
#SETTINGS INPUTFILES=regtest/basic/rt-drmsd/test1.pdb d: DRMSDCalculate the distance RMSD with respect to a reference structure. This action is a shortcut and it has hidden defaults. More details ... REFERENCEa file in pdb format containing the reference structure and the atoms involved in the CV=regtest/basic/rt-drmsd/test1.pdbClick here to see an extract from this file.LOWER_CUTOFFonly pairs of atoms further than LOWER_CUTOFF are considered in the calculation=0.1 UPPER_CUTOFFonly pairs of atoms closer than UPPER_CUTOFF are considered in the calculation=0.8 ...
The following tells plumed to calculate the square of the DRMSD value for a pair of molecules.
#SETTINGS INPUTFILES=regtest/basic/rt-drmsd/test0.pdb d: DRMSDCalculate the distance RMSD with respect to a reference structure. This action is a shortcut. More details ... REFERENCEa file in pdb format containing the reference structure and the atoms involved in the CV=regtest/basic/rt-drmsd/test0.pdbClick here to see an extract from this file.LOWER_CUTOFFonly pairs of atoms further than LOWER_CUTOFF are considered in the calculation=0.1 UPPER_CUTOFFonly pairs of atoms closer than UPPER_CUTOFF are considered in the calculation=0.8 TYPE what kind of DRMSD would you like to calculate=INTER-DRMSD SQUARED This should be setted if you want MSD instead of RMSD ...
Notice that in the input reference file (which you can see by clicking on regtest/basic/rt-drmsd/test0.pdb ) the atoms in each of the two molecules are separated by a TER command as shown below.
In this example the INTER-DRMSD type ensures that the set of distances from which the final quantity is computed involve one atom from each of the two molecules. If this is replaced by INTRA-DRMSD then only those distances involving pairs of atoms that are both in the same molecule are computed.
Periodic boundary conditions
Notice that PLUMED does not use periodic boundary conditions when computing the reference distances. However, the instantaneous values of the distances are computed using periodic boundary conditions. If you would like not to use periodic boundary conditions when computing these instaneous distances you use the NOPBC flag as illustrated below:
#SETTINGS INPUTFILES=regtest/basic/rt-drmsd/test1.pdb d: DRMSDCalculate the distance RMSD with respect to a reference structure. This action is a shortcut and it has hidden defaults. More details ... REFERENCEa file in pdb format containing the reference structure and the atoms involved in the CV=regtest/basic/rt-drmsd/test1.pdbClick here to see an extract from this file.LOWER_CUTOFFonly pairs of atoms further than LOWER_CUTOFF are considered in the calculation=0.1 UPPER_CUTOFFonly pairs of atoms closer than UPPER_CUTOFF are considered in the calculation=0.8 NOPBC ignore the periodic boundary conditions when calculating distances ...
Full list of keywords
The following table describes the keywords and options that can be used with this action
| Keyword | Type | Default | Description |
|---|---|---|---|
| REFERENCE | compulsory | none | a file in pdb format containing the reference structure and the atoms involved in the CV |
| TYPE | compulsory | DRMSD | what kind of DRMSD would you like to calculate |
| LOWER_CUTOFF | optional | not used | only pairs of atoms further than LOWER_CUTOFF are considered in the calculation |
| UPPER_CUTOFF | optional | not used | only pairs of atoms closer than UPPER_CUTOFF are considered in the calculation |
| SQUARED | optional | false | This should be setted if you want MSD instead of RMSD |
| NOPBC | optional | false | ignore the periodic boundary conditions when calculating distances |
deprecated keywords
The keywords in the following table can still be used with this action but have been deprecated
| Keyword | Description |
|---|---|
| NUMERICAL_DERIVATIVES | Including this keyword in the input to this action makes no difference to the calculation performed it was used in older versions of PLUMED and is provided here for back compatibility only |