# Centering a protein in MD production run

**URL:** <https://gromacs.bioexcel.eu/t/centering-a-protein-in-md-production-run/2923>\
**Category:** User discussions\
**Tags:** gmx-trjconv\
**Created:** [October 6, 2021, 5:48pm UTC](https://gromacs.bioexcel.eu/t/centering-a-protein-in-md-production-run/2923 "2021-10-06T17:48:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gustavogrr](https://avatars.discourse-cdn.com/v4/letter/g/a6a055/32.png) [@gustavogrr](https://gromacs.bioexcel.eu/u/gustavogrr)\
**Post date:** [October 6, 2021, 5:48pm UTC](https://gromacs.bioexcel.eu/t/centering-a-protein-in-md-production-run/2923/1 "2021-10-06T17:48:29Z")

</div>

Hi gmx users,

I have a simulation of a system composed by a surface and a protein running for 80 ns in the production stage. This production stage is divided in four blocks of 20 ns, but I am facing a pbc problem with my protein in the second block since it is “getting out of the box”, I know this is due to the periodic boundary conditions, but I would like to know if there would be any problem in continuing running the missing stages this way and at the end of the final block just recenter the trajectory with gmx trjconv or it would be better to recenter the protein in my system before I continue with the others production blocks?

Please guide me.

---

<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:** [October 7, 2021, 12:46pm UTC](https://gromacs.bioexcel.eu/t/centering-a-protein-in-md-production-run/2923/2 "2021-10-07T12:46:55Z")

</div>

There is no need to manipulate any files during simulations. The calculation of forces does not depend on our visual convenience of having a “centered” protein (which does not actually exist in an infinite system). Centering is only really relevant for visualization and some analyses.

---

<div class="post-metadata">

**Author:** ![GustavoGR](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@GustavoGR](https://gromacs.bioexcel.eu/u/GustavoGR)\
**Post date:** [October 7, 2021, 5:46pm UTC](https://gromacs.bioexcel.eu/t/centering-a-protein-in-md-production-run/2923/3 "2021-10-07T17:46:53Z")

</div>

Thank you very much for tour helpful response.

---

<div class="post-metadata">

**Author:** ![gustavogrr](https://avatars.discourse-cdn.com/v4/letter/g/a6a055/32.png) [@gustavogrr](https://gromacs.bioexcel.eu/u/gustavogrr)\
**Post date:** [October 8, 2021, 7:17pm UTC](https://gromacs.bioexcel.eu/t/centering-a-protein-in-md-production-run/2923/4 "2021-10-08T19:17:06Z")

</div>

Dear Jalemkul,

Concerning your response. In which kind of analysis could be relevant to center with gmx trjconv?

---

<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:** [October 9, 2021, 1:12am UTC](https://gromacs.bioexcel.eu/t/centering-a-protein-in-md-production-run/2923/5 "2021-10-09T01:12:08Z")

</div>

Any analysis that depends on absolute coordinates and utilities that are not PBC-aware. RMSD is a big one, searching for molecules within a certain radius of the protein (if not PBC-aware), etc.

---

<div class="post-metadata">

**Author:** ![gustavogrr](https://avatars.discourse-cdn.com/v4/letter/g/a6a055/32.png) [@gustavogrr](https://gromacs.bioexcel.eu/u/gustavogrr)\
**Post date:** [October 9, 2021, 3:14am UTC](https://gromacs.bioexcel.eu/t/centering-a-protein-in-md-production-run/2923/6 "2021-10-09T03:14:46Z")

</div>

Thank you very much.
