# Inquiry Regarding Differences in Protein Centering Behavior between Amber and GROMACS

**URL:** <https://gromacs.bioexcel.eu/t/inquiry-regarding-differences-in-protein-centering-behavior-between-amber-and-gromacs/8210>\
**Category:** User discussions\
**Tags:** gmx-trjconv\
**Created:** [February 2, 2024, 7:27pm UTC](https://gromacs.bioexcel.eu/t/inquiry-regarding-differences-in-protein-centering-behavior-between-amber-and-gromacs/8210 "2024-02-02T19:27:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbhatta3](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pbhatta3](https://gromacs.bioexcel.eu/u/pbhatta3)\
**Post date:** [February 2, 2024, 7:27pm UTC](https://gromacs.bioexcel.eu/t/inquiry-regarding-differences-in-protein-centering-behavior-between-amber-and-gromacs/8210/1 "2024-02-02T19:27:55Z")

</div>

GROMACS version:2023.3  
GROMACS modification: No  
Dear all,

I have centered a membrane protein using both Amber (with CPPTRAJ) and GROMACS (with trjconv) tools. I observed that the centering performed by Amber appears to be better. In Amber, the protein remains stable without bouncing around, whereas in GROMACS, although the protein is centered, it exhibits slight movement in each frame.

I am curious about the difference in behavior between the two tools, considering that both center to the center of mass. Below are the commands used in both Amber and GROMACS:

**Amber:**

```auto
trajin prod1.nc
center :1-1310 mass origin # There are 1310 protein residues
image origin center familiar
trajout prod1_center.nc
go
``

To run the above script:

```

cpptraj -i image\_center.ptraj -p step5\_input.parm7

```auto

**GROMACS:**

```

gmx trjconv -s topol.tpr -f trajectory.xtc -pbc mol -center -o centered\_trajectory.xtc

```auto

Then select group 1 protein and group 4 system.

I would appreciate any insights into why there is a difference in behavior, despite both tools centering to the center of mass.

Thank you.
Pawan
```

---

<div class="post-metadata">

**Author:** ![pbhatta3](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pbhatta3](https://gromacs.bioexcel.eu/u/pbhatta3)\
**Post date:** [February 3, 2024, 7:14pm UTC](https://gromacs.bioexcel.eu/t/inquiry-regarding-differences-in-protein-centering-behavior-between-amber-and-gromacs/8210/2 "2024-02-03T19:14:48Z")

</div>

Dear @jalemkul, any insights in above question? Any suggestions will be appreciated. Thank you.

Pawan

---

<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 6, 2024, 1:57pm UTC](https://gromacs.bioexcel.eu/t/inquiry-regarding-differences-in-protein-centering-behavior-between-amber-and-gromacs/8210/3 "2024-02-06T13:57:19Z")

</div>

I have no insight into the cpptraj code, but it is rather magic in terms of “just working” without much user input.

---

<div class="post-metadata">

**Author:** ![MagnusL](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/magnusl/32/2380_2.png) [@MagnusL](https://gromacs.bioexcel.eu/u/MagnusL)\
**Post date:** [February 6, 2024, 5:07pm UTC](https://gromacs.bioexcel.eu/t/inquiry-regarding-differences-in-protein-centering-behavior-between-amber-and-gromacs/8210/4 "2024-02-06T17:07:42Z")

</div>

I’m just speculating, but it’s possible that Amber either ignores hydrogens or protein sidechains when centering.

Instead of using `protein` as selection group with `gmx trjconv` you could try making a selection with only the protein backbone (or C alphas) and see if that makes it more similar to the Amber `cpptraj` centering.

---

<div class="post-metadata">

**Author:** ![pbhatta3](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pbhatta3](https://gromacs.bioexcel.eu/u/pbhatta3)\
**Post date:** [February 8, 2024, 7:15pm UTC](https://gromacs.bioexcel.eu/t/inquiry-regarding-differences-in-protein-centering-behavior-between-amber-and-gromacs/8210/5 "2024-02-08T19:15:49Z")

</div>

I tried that but it did not solve the problem. I was interested in centering because I want to create a movie of the MD simulation without the jumps. With VMD’s RMSD trajectory tool (align to the protein backbone) and smoothing option, I was able to center the protein and see the conformation changes, and create movie. Thanks for you suggestions. Pawan

---

<div class="post-metadata">

**Author:** ![pbhatta3](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pbhatta3](https://gromacs.bioexcel.eu/u/pbhatta3)\
**Post date:** [February 19, 2024, 7:51pm UTC](https://gromacs.bioexcel.eu/t/inquiry-regarding-differences-in-protein-centering-behavior-between-amber-and-gromacs/8210/6 "2024-02-19T19:51:24Z")

</div>

Thank you for the reply. ( I just discovered this message was not sent) I was interested in centering because I want to create a movie of the MD simulation without the jumps. With VMD’s RMSD trajectory tool (align to the protein backbone) and smoothing option, I was able to center the protein and see the conformation changes, and create movie. Thanks for you suggestions. Pawan
