# Weird RMSF curve

**URL:** <https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643>\
**Category:** User discussions\
**Created:** [August 9, 2020, 10:56am UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643 "2020-08-09T10:56:35Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![veerubiotech](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@veerubiotech](https://gromacs.bioexcel.eu/u/veerubiotech)\
**Post date:** [August 9, 2020, 10:56am UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/1 "2020-08-09T10:56:35Z")

</div>

GROMACS version: 2020.2  
GROMACS modification: No  
Here post your question

Dear All  
I calculated the rmsf curve using “gmx rmsf -s step4.0\_minimization.tpr -f outputbox.xtc -o rmsf\_per\_resi.xvg -ox average.pdb -res”  
trajectory is after concatenating 80ns simulation followed by cluster and center.  
the rmsd curve is looks ok. Why rmsf is so weird?

 ![RMSF](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/a0cb53aeb724f394dc8d503f9695ae54936a5465.jpeg)  
 ![RMSD](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/53c1ef630d9c9299c40ed88e3ccf17a1b33e3084.jpeg)

---

<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:** [August 10, 2020, 12:37am UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/2 "2020-08-10T00:37:04Z")

</div>

Are you simulating a dimer? Chain A has residues ~420 to ~520 and chain B has 1 to ~60?

---

<div class="post-metadata">

**Author:** ![veerubiotech](https://avatars.discourse-cdn.com/v4/letter/v/e480ec/32.png) [@veerubiotech](https://gromacs.bioexcel.eu/u/veerubiotech)\
**Post date:** [August 10, 2020, 1:06am UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/3 "2020-08-10T01:06:44Z")

</div>

Yes. Its dimer. Residue no are same as you mentioned. How to fix it?

---

<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:** [August 10, 2020, 4:43pm UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/4 "2020-08-10T16:43:53Z")

</div>

Analyze each chain separately.

---

<div class="post-metadata">

**Author:** ![L\_k](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@L\_k](https://gromacs.bioexcel.eu/u/L_k)\
**Post date:** [September 14, 2020, 2:10pm UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/5 "2020-09-14T14:10:02Z")

</div>

Hello @jalemkul and @veerubiotech,

Do we analyze each group separately by making the ndx file? If so, which selections do we make to generate the rmsf curve of different residues? I created the ndx file and selected Protein + C-alpha, using the command gmx rmsf -s md1.tpr -f md1\_center.xtc -n proteinca.ndx -o rmsf\_protein.xvg -res but I get this similar curve.

Thank you in advance for your suggestions and expertise.

---

<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:** [September 14, 2020, 8:21pm UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/6 "2020-09-14T20:21:04Z")

</div>

> [@L\_k](#):
>
> but I get this similar curve.

Similar to what? What are the two conditions. Note that “Protein + C-alpha” is already a default group (C-alpha) so there’s no point in creating such a group. You would have to select by residue to get a chain into one group. Using `-res` has no effect when your selection contains only one atom per residue (Cα).

---

<div class="post-metadata">

**Author:** ![L\_k](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@L\_k](https://gromacs.bioexcel.eu/u/L_k)\
**Post date:** [September 14, 2020, 8:33pm UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/7 "2020-09-14T20:33:34Z")

</div>

Sorry for the confusion, and thank you for your reply. I am getting an RMSF curve where there are the connections as there are above when I use -res. I see that you mentioned to separate the chains, but have not been able to do so using make\_ndx.

---

<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:** [September 15, 2020, 1:36am UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/8 "2020-09-15T01:36:53Z")

</div>

You have to create index groups by ranges of residues or provide an input coordinate file (PDB) that supports chain identifiers (and has them) so you can make the selection that way.

---

<div class="post-metadata">

**Author:** ![L\_k](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@L\_k](https://gromacs.bioexcel.eu/u/L_k)\
**Post date:** [September 15, 2020, 1:55am UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/9 "2020-09-15T01:55:48Z")

</div>

I see, thank you for your reply. I attempted this by using gmx editconf -f protein.tpr -o protein.pdb to create a pdb file. Next, I used gmx make\_ndx -f protein.pdb -o prot.ndx. With this, I am not seeing the chain identifiers in the menu. Have I made some error in this approach?

---

<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:** [September 15, 2020, 12:23pm UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/10 "2020-09-15T12:23:36Z")

</div>

Does “protein.pdb” have a valid chain identifier in it?

If it does, it’s a simple matter of specifying “chain A,” “chain B,” etc. at the `make_ndx` prompt.

---

<div class="post-metadata">

**Author:** ![L\_k](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@L\_k](https://gromacs.bioexcel.eu/u/L_k)\
**Post date:** [September 15, 2020, 8:02pm UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/11 "2020-09-15T20:02:37Z")

</div>

How can I check this? It does not seem to be available through make\_ndx.

---

<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:** [September 15, 2020, 8:15pm UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/12 "2020-09-15T20:15:33Z")

</div>

Inspect the PDB file for chain identifiers. If they’re not there, add them (`editconf -label`, etc.). The option to select by chain is absolutely part of the `make_ndx` syntax. I just used it to confirm.

```
Analysing Protein...

  0 System : 1079 atoms
  1 Protein : 1001 atoms
  2 Protein-H : 1001 atoms
  3 C-alpha : 129 atoms
  4 Backbone : 387 atoms
  5 MainChain : 517 atoms
  6 MainChain+Cb : 634 atoms
  7 MainChain+H : 517 atoms
  8 SideChain : 484 atoms
  9 SideChain-H : 484 atoms
 10 Prot-Masses : 1001 atoms
 11 non-Protein : 78 atoms
 12 Water : 78 atoms
 13 SOL : 78 atoms
 14 non-Water : 1001 atoms

 nr : group '!': not 'name' nr name 'splitch' nr Enter: list groups
 'a': atom '&': and 'del' nr 'splitres' nr 'l': list residues
 't': atom type '|': or 'keep' nr 'splitat' nr 'h': help
 'r': residue 'res' nr 'chain' char
 "name": group 'case': case sensitive 'q': save and quit
 'ri': residue index

> chain A

Found 1079 atoms with chain identifier A

 15 chA : 1079 atoms
```

---

<div class="post-metadata">

**Author:** ![L\_k](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@L\_k](https://gromacs.bioexcel.eu/u/L_k)\
**Post date:** [September 16, 2020, 1:05am UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/13 "2020-09-16T01:05:44Z")

</div>

Thank you, that worked as well. But, after using the -res identifier I still get an RMSF plot as above, where some of the peaks are connected. What else may cause this?

---

<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:** [September 16, 2020, 9:38am UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/14 "2020-09-16T09:38:45Z")

</div>

@L_k please provide all relevant commands, how you created the index group, and upload/embed the image of your RMSF plot. So far, I’ve been working blind. It’s really hard to make any suggestions that way.

---

<div class="post-metadata">

**Author:** ![L\_k](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@L\_k](https://gromacs.bioexcel.eu/u/L_k)\
**Post date:** [September 16, 2020, 12:31pm UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/15 "2020-09-16T12:31:38Z")

</div>

@jalemkul I apologize for the inconvenience. Here are the steps I have carried out:

1. gmx editconf -f protein.tpr -o protein.pdb
2. gmx make\_ndx -f protein.pdb -o protA.ndx  
–make selection: chain A
3. gmx rmsf -s protein.tpr -f protein\_center.xtc -n protA.ndx -o rmsf.xvg
4. convert xvg to csv and open in Excel to create plot

The plot appears like this:

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

Thank you for your time.

---

<div class="post-metadata">

**Author:** ![Dr\_DBW](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/dr_dbw/32/42_2.png) [@Dr\_DBW](https://gromacs.bioexcel.eu/u/Dr_DBW)\
**Post date:** [September 17, 2020, 2:40am UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/16 "2020-09-17T02:40:19Z")

</div>

What do you think is wrong with the plot? Looks reasonable to me. Appears that there is a couple of segments where the residue number jumps by around 20.

---

<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:** [September 17, 2020, 9:46am UTC](https://gromacs.bioexcel.eu/t/weird-rmsf-curve/643/17 "2020-09-17T09:46:35Z")

</div>

I’m not going to try to guess what Microsoft products do, because it’s usually weird. I would strongly recommend breaking away from such software and using normal scientific plotting tools.

What do you expect from the plot? How many residues do you have in each chain? How does this output differ from what you were expecting? It looks like there may be three separate traces, indicating a homotrimer?
