# How to explain different PCA results by projecting onto reference eigenvector

**URL:** <https://gromacs.bioexcel.eu/t/how-to-explain-different-pca-results-by-projecting-onto-reference-eigenvector/2421>\
**Category:** User discussions\
**Created:** [June 28, 2021, 4:09pm UTC](https://gromacs.bioexcel.eu/t/how-to-explain-different-pca-results-by-projecting-onto-reference-eigenvector/2421 "2021-06-28T16:09:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![minghao2121](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@minghao2121](https://gromacs.bioexcel.eu/u/minghao2121)\
**Post date:** [June 28, 2021, 4:09pm UTC](https://gromacs.bioexcel.eu/t/how-to-explain-different-pca-results-by-projecting-onto-reference-eigenvector/2421/1 "2021-06-28T16:09:31Z")

</div>

GROMACS version: 2021.1  
GROMACS modification: No

Hello community,

I want to study the single pint mutation (or double mutations) effect on the structural conformation.  
Suppose the protein name is prot\_A. I obtained the wild type pdb structure from rcsb pdb (named WT.pdb) and I did  
the single point mutation from its sequence and build the homology model from swiss-model (named MUT.pdb).

I did 300-ns Gromacs simulation by following the tutorial (Lysozyme in Water; [Lysozyme in Water](http://www.mdtutorials.com/gmx/lysozyme/index.html)).

Finally, I performed PCA study in order to compare the 2D PCA plot.

Learning from this forum (@alevilla), I need project both WT and MUT proteins production trajectory onto the same  
eigenvector (only backbone with same number of atoms. Either WT as reference eigenvector or MUT as reference eigenvector) for comparison.

I did both ways as below. For the 1st experiment, I used the WT as the reference structure and reference eigenvector,  
and in the 2nd experiment, I used the MUT as the reference structure and reference eigenvector.

After obtaining corresponding xvg files, I make the 2D PCA plot and calculate the approximate areas (convex hull).

################################

# WT as the reference

################################

# Extract reference backbone structure from WT

echo 4 | gmx trjconv -s WT.tpr -f WT.xtc -o WT\_bb\_ref.pdb -dump 0

# Extract reference backbone eigenvector

echo 4 | gmx trjconv -s WT.tpr -f WT.xtc -o WT\_bb.xtc  
echo 0 0 | gmx covar -s WT\_bb\_ref.pdb -f WT\_bb.xtc -o WT\_eigenval\_bb.xvg -v WT\_eigenvec\_bb.trr

# Project to both reference structure and eigenvector

echo 0 0 | gmx anaeig -s WT\_bb\_ref.pdb -f WT\_bb.xtc -v WT\_eigenvec\_bb.trr -2d WT\_pca\_2d.xvg -first 1 -last 2  
echo 0 0 | gmx anaeig -s WT\_bb\_ref.pdb -f MUT\_bb.xtc -v WT\_eigenvec\_bb.trr -2d MUT\_pca\_2d.xvg -first 1 -last 2

################################

# MUT as the reference

################################

# Extract reference backbone structure from MUT

echo 4 | gmx trjconv -s MUT.tpr -f MUT.xtc -o MUT\_bb\_ref.pdb -dump 0

# Extract reference backbone eigenvector

echo 4 | gmx trjconv -s MUT.tpr -f MUT.xtc -o MUT\_bb.xtc  
echo 0 0 | gmx covar -s MUT\_bb\_ref.pdb -f MUT\_bb.xtc -o MUT\_eigenval\_bb.xvg -v MUT\_eigenvec\_bb.trr

# Project to both reference structure and eigenvector

echo 0 0 | gmx anaeig -s MUT\_bb\_ref.pdb -f WT\_bb.xtc -v MUT\_eigenvec\_bb.trr -2d WT\_pca\_2d.xvg -first 1 -last 2  
echo 0 0 | gmx anaeig -s MUT\_bb\_ref.pdb -f MUT\_bb.xtc -v MUT\_eigenvec\_bb.trr -2d MUT\_pca\_2d.xvg -first 1 -last 2

# PCA plot

 ![askGmxForumPca](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/0089d3612c79516f6d0838dbd296ec910ca63d3b.png)

My questions are:  
(1) In the 1st row of the figure (WT as the reference structure and eigenvector), I found that MUT protein showed the  
smaller area by comparing WT protein. Can I get a conclusion that MUT protein limited the protein flexibility comparing with WT?  
Or can I say that the mutation on WT protein made the protein more rigid?  
(2) In the 2nd row of the figure (MUT as the reference structure and eigenvector), I found the conclusion is just opposite where  
it seems that WT gave the smaller area by comparing the MUT. Can you help me figure out what is the possible reason for this different  
conclusion?  
(3) Can I directly compare the PCA plot area in order to comparing the MD trajectories for WT and MUT proteins?  
(4) Is PCA a good method to study the effect of mutation on protein structural conformation? It will be helpful if giving me some suggestions  
on what metrics/methods/techniques can be used to study the mutation effect on structural conformation.

Sorry for these questions but I am just a new GMX user.

Thanks.

---

<div class="post-metadata">

**Author:** ![krawinsp](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@krawinsp](https://gromacs.bioexcel.eu/u/krawinsp)\
**Post date:** [March 14, 2022, 2:23pm UTC](https://gromacs.bioexcel.eu/t/how-to-explain-different-pca-results-by-projecting-onto-reference-eigenvector/2421/2 "2022-03-14T14:23:02Z")

</div>

Hello,  
I want to do something similar with my system and was just wondering if you figured out how to do this? I would be grateful if you could share with me how this is done.

Best wishes,  
Pawel
