Concatenating two trajectories from different simulations

GROMACS version: 2019
GROMACS modification: Yes/No
Here post your question :

Is it possible to append two trajectories with same starting point (say zero) ??

2nd trajectory is a fresh simulation by taking last pdb of first run (100ns) . So 2nd trajectory also starts from zero ( and goes till 100ns). Is it possible to join the two making a 200ns traj file.

Thanks,

Pragati

I am using trjcat for this, but it is overwriting the first trajectory and saving only second.

gmx trjcat

In case of double time frames the one in the later file is used.

So it is doing exactly what it is meant to when it saves only the second trajectory.

By specifying -settime you will be asked for the start time of each file.

Using this option will allow you to specify the second trajectory to start after the end of the first.

Another way to reach the same end is use gmx trjconv to change the start time of the second trajectory file, then use gmx trjcat in the same manner you are currently.

1 Like