# Gmx dcovar

**URL:** <https://gromacs.bioexcel.eu/t/gmx-dcovar/331>\
**Category:** User discussions\
**Created:** [June 17, 2020, 11:14am UTC](https://gromacs.bioexcel.eu/t/gmx-dcovar/331 "2020-06-17T11:14:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhagya](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Bhagya](https://gromacs.bioexcel.eu/u/Bhagya)\
**Post date:** [June 17, 2020, 11:14am UTC](https://gromacs.bioexcel.eu/t/gmx-dcovar/331/1 "2020-06-17T11:14:11Z")

</div>

GROMACS version:  
GROMACS modification: No

Hi,  
I tried to calculate the average structure of my system (125 molecules of an organic molecule) using dcovar tool (See below for the command) but the resulted average structure was blown up with many unusual bonds. Can someone help me on this?

gmx dcovar –f traj.xtc –s topol.tpr –b 801 –e 1000 –av .pdb

Regards  
Bhagya

---

<div class="post-metadata">

**Author:** ![Mikel](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@Mikel](https://gromacs.bioexcel.eu/u/Mikel)\
**Post date:** [June 17, 2020, 11:26am UTC](https://gromacs.bioexcel.eu/t/gmx-dcovar/331/2 "2020-06-17T11:26:12Z")

</div>

Hello there

When you calculate an average structure, it is a ‘geometrical’ average, meaning that the result does not have to be (and usually is not) physically relevant (that is why your bond lengths are wrong, and thus are represented in a very weird way).

Think of the following example: You have a pendulum, and you have a simulation of it swinging from left to right along a curve. If you take the average of the most-left and most-right configurations, the average structure will be in the middle, but higher than the resting position of the pendulum: the average structure corresponds to a configuration that your simulation cannot reach!

If you want to find a representative structure of the trajectory, try with the `gmx cluster` module

Kind regards

---

<div class="post-metadata">

**Author:** ![Bhagya](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@Bhagya](https://gromacs.bioexcel.eu/u/Bhagya)\
**Post date:** [June 18, 2020, 9:46am UTC](https://gromacs.bioexcel.eu/t/gmx-dcovar/331/3 "2020-06-18T09:46:08Z")

</div>

Hi Mikel,

Thank you for the detailed explanation. I used the cluster module to generate a representation of the largest cluster.

Regards  
Bhagya
