Hello,
This is more a conceptual question.
Let's say you want to visualize conformational changes between different crystal structures of the same protein on a per amino acid level. To do this, you decide to do PCA. So you need to do eigen decomposition on the covariance matrix.
For simplicity, let's say just 2 crystal structures and 2 residues. Each residue consists of 3-coordinates and thus you will have a 3Nx3N matrix (where N is the number of amino acids), resulting in 3N eigenvectors for each N. So in the case setup here, our covariance matrix will be a 6x6 with 6 eigenvectors. The x,y, and z co-ordinates for each residue can be given as such:
Protein 1
residue1=[20,50,8]
residue2=[25,84,15]
Protein2
residue1=[21,49,8]
residue2=[24,80,14]
So if these were to be represented as a matrix (whose covariance would be taken), it would be as such (a Mx3N matrix where M is the number of protein structures being compared, and N is the number of residues). In our case a 2x6 matrix:
[20 21 #x of amino acid 1 for 2 proteins
50 49 #y of amino acid 1 for 2 proteins
8 8 #z of amino acid 1 for 2 proteins
25 24 #x of amino acid 2 for 2 proteins
84 80 #y of amino acid 2 for 2 proteins
15 14] #z of amino acid 2 for 2 proteins
The covariance matrix, to just break down one line, would be such:
["variance of x of the first residue between 2 structures" "covariance of x and y of the first residue between 2 structures" "covariance of x and z of the first residue between 2 structures" "covariance of x and x between amino acid 1 and amino acid 2" "covariance of x amino acid 1 and y of amino acid 2 for both structures" "covariance of x amino acid 1 and z of amino acid 2 for both structures"]
This is the covariance matrix that then undergoes eigen decomposition to yield you eigenvalues and eigenvectors. You can see the covariance matrix will be a 6x6 (I wrote out what the first row would be).
If you look at the eigenvector of the highest eigenvalue, it will have 6 elements. From my understanding, the first 3 is the eigenvector for x,y,z for amino acid 1, and the next 3 for x,y,z for amino acid 2. The eigenvalue tells you how much the overall change for these 2 amino acids is, and the eigenvector values tell you individually, how much has each co-ordinate moved.
In this manner, one can determine how much has an individual amino acid changes between 2 crystal structures. Is my understanding of PCA correct?