# How to get .edr file with only .xtc or .tpr?

**URL:** <https://gromacs.bioexcel.eu/t/how-to-get-edr-file-with-only-xtc-or-tpr/10165>\
**Category:** User discussions\
**Created:** [September 16, 2024, 5:54am UTC](https://gromacs.bioexcel.eu/t/how-to-get-edr-file-with-only-xtc-or-tpr/10165 "2024-09-16T05:54:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gromacs\_user](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@Gromacs\_user](https://gromacs.bioexcel.eu/u/Gromacs_user)\
**Post date:** [September 16, 2024, 5:54am UTC](https://gromacs.bioexcel.eu/t/how-to-get-edr-file-with-only-xtc-or-tpr/10165/1 "2024-09-16T05:54:16Z")

</div>

GROMACS version: 2024  
GROMACS modification: No  
Hello, I have done a simulation and somehow I only downloaded the xtc, tpr, topol, index files, and lost the rest. Can I get the edr file back from these files? Thanks in advance

---

<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:** [September 16, 2024, 6:59am UTC](https://gromacs.bioexcel.eu/t/how-to-get-edr-file-with-only-xtc-or-tpr/10165/2 "2024-09-16T06:59:41Z")

</div>

You cannot re-create the edr file as such. If that was possible the file would not be necessary. You’ve got two options:

1. You can use `gmx mdrun -rerun` to regenerate parts of the energy file based on the trajectory. This might work well if you’re frames are written with short intervals. See [Useful mdrun features - GROMACS 2024.3 documentation](https://manual.gromacs.org/current/user-guide/mdrun-features.html#re-running-a-simulation) for more information and caveats.
2. You can redo simulation with the tpr file, but that means that you are starting from the beginning again.

---

<div class="post-metadata">

**Author:** ![Gromacs\_user](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@Gromacs\_user](https://gromacs.bioexcel.eu/u/Gromacs_user)\
**Post date:** [September 16, 2024, 12:45pm UTC](https://gromacs.bioexcel.eu/t/how-to-get-edr-file-with-only-xtc-or-tpr/10165/3 "2024-09-16T12:45:20Z")

</div>

is there any other way to get energies information, such as kinetics, conserved energy etc from those files?

---

<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:** [September 16, 2024, 3:53pm UTC](https://gromacs.bioexcel.eu/t/how-to-get-edr-file-with-only-xtc-or-tpr/10165/4 "2024-09-16T15:53:13Z")

</div>

As far as I know, you need to redo the simulation for that. Unfortunately, it’s difficult to avoid data loss when files are deleted.

---

<div class="post-metadata">

**Author:** ![Gromacs\_user](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@Gromacs\_user](https://gromacs.bioexcel.eu/u/Gromacs_user)\
**Post date:** [September 17, 2024, 4:11am UTC](https://gromacs.bioexcel.eu/t/how-to-get-edr-file-with-only-xtc-or-tpr/10165/5 "2024-09-17T04:11:10Z")

</div>

okay thank you so much for the answer
