# Question regarding choice of group for Least Square Fitting Step

**URL:** <https://gromacs.bioexcel.eu/t/question-regarding-choice-of-group-for-least-square-fitting-step/1520>\
**Category:** User discussions\
**Created:** [January 31, 2021, 4:59pm UTC](https://gromacs.bioexcel.eu/t/question-regarding-choice-of-group-for-least-square-fitting-step/1520 "2021-01-31T16:59:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJP](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@DJP](https://gromacs.bioexcel.eu/u/DJP)\
**Post date:** [January 31, 2021, 4:59pm UTC](https://gromacs.bioexcel.eu/t/question-regarding-choice-of-group-for-least-square-fitting-step/1520/1 "2021-01-31T16:59:54Z")

</div>

Hello Everyone

So I have completed production MD for my Protein-Ligand System. My question is regarding gmx\_rms RMSD calculation steps.

The tutorial on MD Tutorials suggest that if I am trying to calculate RMSD for my LIGAND, I should choose BACKBONE for the least square fitting step and LIGAND for RMSD step. I have 2 questions:

(1) the silly question : if I choose BACKBONE for the least square fitting step, and LIGAND for RMSD step, will the RMSD be calculated by comparing position of LIGAND in the trajectory compared the the reference position of the LIGAND, right? Whatever (BACKBONE/PROTEIN/LIGAND) I choose for least square fitting step, the RMSD is always calculated by comparing value of X in trajectory vs value of X in reference, right? The tutorial states “By doing so, the overall rotation and translation of the protein is removed via fitting and the RMSD reported is how much the JZ4 (LIGAND) position has varied relative to the protein” - this confused me, isn’t RMSD telling position of JZ4 compared to its position in reference?

(2) why isn’t it more apt to choose LIGAND in the least square fitting step too in addition to choosing LIGAND in the RMSD step.

(3) As I understand, the least square fit works on the trajectory file and then aligns the least square fitted structure to the reference structure. Am I getting this correctly.

Thank you  
DJP

GROMACS version:Latest  
GROMACS modification: Yes/No  
Here post your question

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [February 1, 2021, 5:04pm UTC](https://gromacs.bioexcel.eu/t/question-regarding-choice-of-group-for-least-square-fitting-step/1520/2 "2021-02-01T17:04:10Z")

</div>

> [@DJP](#):
>
> isn’t RMSD telling position of JZ4 compared to its position in reference?

If you perform fitting on a very rigid ligand like the one in the tutorial, the RMSD is likely to be close to zero for all frames. Fitting to the protein allows you to see if the ligand position changed (diffusion), which would be eliminated in this case. If you fit to the protein, you can see how the ligand moves relative to the protein.

> [@DJP](#):
>
> (2) why isn’t it more apt to choose LIGAND in the least square fitting step too in addition to choosing LIGAND in the RMSD step.

See answer to (1). It might make sense in some cases. For the tutorial, it really doesn’t.

> [@DJP](#):
>
> (3) As I understand, the least square fit works on the trajectory file and then aligns the least square fitted structure to the reference structure. Am I getting this correctly.

Yes.

---

<div class="post-metadata">

**Author:** ![DJP](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@DJP](https://gromacs.bioexcel.eu/u/DJP)\
**Post date:** [February 16, 2021, 4:53am UTC](https://gromacs.bioexcel.eu/t/question-regarding-choice-of-group-for-least-square-fitting-step/1520/3 "2021-02-16T04:53:37Z")

</div>

Thank you so much for the clarifications, Dr Lemkul.

---

<div class="post-metadata">

**Author:** ![vnatarajan](https://avatars.discourse-cdn.com/v4/letter/v/4da419/32.png) [@vnatarajan](https://gromacs.bioexcel.eu/u/vnatarajan)\
**Post date:** [June 14, 2023, 2:22am UTC](https://gromacs.bioexcel.eu/t/question-regarding-choice-of-group-for-least-square-fitting-step/1520/4 "2023-06-14T02:22:16Z")

</div>

Hi Dr.Lemkul,  
When might it make sense to select the ligand for least-squares-fitting?

Based on your previous answer, I am guessing we can choose ligand for lsq if the ligand is not so rigid or if we see the ligand actually change its binding pose in the movie, is this correct?

---

<div class="post-metadata">

**Author:** ![nilanjana88](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nilanjana88](https://gromacs.bioexcel.eu/u/nilanjana88)\
**Post date:** [January 28, 2025, 12:45pm UTC](https://gromacs.bioexcel.eu/t/question-regarding-choice-of-group-for-least-square-fitting-step/1520/5 "2025-01-28T12:45:59Z")

</div>

Hi,

Sorry for jumping into this topic.  
For my simulation, it’s a small protein of 250 residue and ligand has 60 atoms. While watching the trajectory I found ligands moves a lot from the binding site. So choosing “backbone” for lsq fit, and “LIG” for RMSD calculation gives a very high RMSD value. In such cases, should I select “LIG” for both lsq fit and RMSD calculation?

Thank you
