# Trajectory processing with no water

**URL:** <https://gromacs.bioexcel.eu/t/trajectory-processing-with-no-water/629>\
**Category:** User discussions\
**Created:** [August 6, 2020, 3:12pm UTC](https://gromacs.bioexcel.eu/t/trajectory-processing-with-no-water/629 "2020-08-06T15:12:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://gromacs.bioexcel.eu/u/Dan)\
**Post date:** [August 6, 2020, 3:12pm UTC](https://gromacs.bioexcel.eu/t/trajectory-processing-with-no-water/629/1 "2020-08-06T15:12:46Z")

</div>

GROMACS version:2018+  
GROMACS modification: Yes - Plumed

I need to process a replica exchange trajectory - get the protein/ligand centered and remove pbc.

I normally remove water at the last step of processing. Is there a way to remove water on the first trjconv attempt and then continue using trjconv with no water in the subsequent trajectory files?

Thank you,

Dan

---

<div class="post-metadata">

**Author:** ![Dr\_DBW](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/dr_dbw/32/42_2.png) [@Dr\_DBW](https://gromacs.bioexcel.eu/u/Dr_DBW)\
**Post date:** [August 7, 2020, 1:57am UTC](https://gromacs.bioexcel.eu/t/trajectory-processing-with-no-water/629/2 "2020-08-07T01:57:54Z")

</div>

One of the options for group selection that `trjconv` puts up is `Select group for output:`, so then generate an index file which contains all the groups you need for the processing you are doing, plus another group that is everything but water.

---

<div class="post-metadata">

**Author:** ![Dan](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan](https://gromacs.bioexcel.eu/u/Dan)\
**Post date:** [August 7, 2020, 2:14pm UTC](https://gromacs.bioexcel.eu/t/trajectory-processing-with-no-water/629/3 "2020-08-07T14:14:33Z")

</div>

Okay, thank you. I’ve done this but then run into errors on subsequent steps even after editing the structure file to reflect the new number of atoms. And for many of the trjconv steps I need a tpr file. How do I produce a tpr file without water? Just delete the SOL line in the [molecules] section of the topology before using grompp?

Thank you,

Dan

---

<div class="post-metadata">

**Author:** ![Dr\_DBW](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/dr_dbw/32/42_2.png) [@Dr\_DBW](https://gromacs.bioexcel.eu/u/Dr_DBW)\
**Post date:** [August 9, 2020, 10:39pm UTC](https://gromacs.bioexcel.eu/t/trajectory-processing-with-no-water/629/4 "2020-08-09T22:39:18Z")

</div>

Use the index file you made, process a coordinate file using it, then adjust a topology to suit. Doesn’t actually matter what coordinate file you use, just as long as it has the correct number of each molecule in it.
