# Is it possible to regenerate .edr files?

**URL:** <https://gromacs.bioexcel.eu/t/is-it-possible-to-regenerate-edr-files/9752>\
**Category:** User discussions\
**Created:** [July 26, 2024, 9:19am UTC](https://gromacs.bioexcel.eu/t/is-it-possible-to-regenerate-edr-files/9752 "2024-07-26T09:19:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![carlos\_costa](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@carlos\_costa](https://gromacs.bioexcel.eu/u/carlos_costa)\
**Post date:** [July 26, 2024, 9:19am UTC](https://gromacs.bioexcel.eu/t/is-it-possible-to-regenerate-edr-files/9752/1 "2024-07-26T09:19:45Z")

</div>

GROMACS version: 2024.1  
GROMACS modification: No

Hello,

Is there any way to generate just the .edr files from the other mdrun outputs?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![milosz.wieczor](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@milosz.wieczor](https://gromacs.bioexcel.eu/u/milosz.wieczor)\
**Post date:** [July 29, 2024, 4:12pm UTC](https://gromacs.bioexcel.eu/t/is-it-possible-to-regenerate-edr-files/9752/2 "2024-07-29T16:12:33Z")

</div>

Yes, performing a rerun (running `gmx mdrun` with the `-rerun ...xtc` option) will produce new `.edr` files. Mind that you might need to adjust a few `.mdp` settings, like how often the energy is calculated.

On top of that, your `.edr` output frequency will now be determined by the frequency of your `.xtc` output. On the flipside, for most processes the correlation time is long enough that you would get correlated frames anyway.

If what you need is individual contributions from those `.edr` files, there’s a fast way of extracting these with Gromologist (which runs the same protocol under the hood):

> **[Performing interaction energy decomposition · Wiki · KBM / Gromologist · GitLab](https://gitlab.com/KomBioMol/gromologist/-/wikis/Performing-interaction-energy-decomposition)**
>
> Package to handle GROMACS topology stuff
