RMSD measures the deviation of a target set of coordinates (i.e. a structure) to a reference set of coordinates, with RMSD=0 indicating a perfect overlap. Then it follows that if we have a MD trajectory one would expect that the lower the RMSD the less changes happen in the time scale studied.
RMSD is defined as:
where N is the number of atoms,
- The number of atoms in the target must match the number of atoms in the reference.
- The ordering of atoms in the target must match the ordering of atoms in the reference.
The root-mean-square-fluctuation (RMSF) of a structure is the time average of the RMSD. It is calculated according to the below equation, where
Where the RMSD quantifies how much a structure diverges from a reference over time, the RMSF can reveal which areas of the system are the most mobile. While RMSD is frequently calculated to an initial state, the RMSF should be calculated to an average structure of the simulation. An area of the structure with high RMSF values frequently diverges from the average, indicating high mobility. When RMSF analysis is carried out on proteins, it is typically restricted to backbone or alpha-carbon atoms; these are more characteristic of conformational changes than the more flexible side-chains.
PCA decomposes a system of observations into linearly uncorrelated variables called principal components. The components are ordered; the first component accounts for the largest variance in the data, with following components accounting for progressively lower variance. PCA is often applied to MD trajectories to extract large-scale conformational motions (i.e. 'essential dynamics') of a protein. Greater variance = greater conformational motions. The frame-by-frame conformational fluctuation can be considered a linear combination of the essential dynamics yielded by the PCA.
Steps:
- Align each frame in trajectory.
- Contruct a
$3N * 3N$ covariance matrix for the N atoms in trajectory. - Diagonalize covariance matrix. Principal components are the eigenvectors of the covariance matrix. The associated variance are the eigenvalues.
- Sort the eigenvalues (variance) so that the principal components (eigenvectors) are ordered by variance.