Removing jumps from the simulation trajectory

Hello, dear gromacs users.
I have a question about removing jumps from the simulation trajectory in Gromacs.

I did the membrane-drug simulation in Gromacs, but the drug has a lot of jumps, which I realized is related to pbc.

First, I used the following command, and it did not work.
gmx trjconv -f output.xtc -s output.tpr -o md_noPBC.xtc -pbc mol -ur compact

Then I tried to remove these jumps with the following commands:

gmx trjconv - f output.xtc - s output.tpr - o new1.xtc - pbc whole (select system)

gmx trjconv - f new1.xtc - s output.tpr - o new2.xtc - pbc nojump (select system)

gmx trjconv - f new2.xtc - s output.tpr - o new3.xtc - pbc cluster - center yes (select drug for cluster and center, select system for output)

And I did not get an answer again. I wanted to get help to solve this problem. Is there another way to do this?

which one shows issue? membrane or drug?

Thank you. The drug has jumps.

you need to approach multiple step like you did above. once you got the membrane fixed. work on drug starting from -pbc mol -center -ur compact and select drug for making it center. if that didnt fix please share the image.

Hey @Elahe !

I am facing the exact same issue. Can you tell me how long your simulation was and at what point in the simulation did the drug start jumping?

I ran a 200 ns protein-ligand simulation and the drug started jumping around only in the final 50-60 ns of the simulation.

Hi @FreaX_997
Thanks for your attention.
I also ran for 100 ns. In the first 30 ns, the drug has 3-4 jumps. but in the last 30 ns, it has alot of junps and the last 20 ns completely placed in the down of lower leaflet the membrane.



Thanks, I will try it and share the result.

Hey @scinikhil

I tried this approach but it did not work.

FYI: It’s just the ligand (drug molecule) which is showing the jumps for me. The protein is fine.

I have faced a similar problem. The molecule of interest was placed above the lipid bilayer, it crossed the top of the box and, due to PBC, appeared from below the box. This resulted in molecule being present towards the inner leaflet. This gave an illusion that the molecule has crossed the membrane (when comparing the start and end snapshots of simulation) while it actually hadn’t. I was wondering if this could be fixed?

Thanks,
Raman

Doesn’t it work if you just do:

gmx trjconv -f traj.xtc -s topol.tpr -o traj_nojump.xtc -pbc nojump (select system)

?
If the molecules were broken across the periodic boundary at the start, you might need to do:

gmx trjconv -f traj.xtc -s topol.tpr -o traj_whole.xtc -pbc whole (select system)
gmx trjconv -f traj_whole.xtc -s topol.tpr -o traj_whole_nojump.xtc -pbc nojump (select system)

If you need to make sure the molecule of interest does not reach the inner leaflet without permeating the membrane, you should make a stacked mirrored image of the system - so that the interior and exterior are separated.

Dear Raman
My simulation has the same situation as you described and I still haven’t been able to find a solution to it.

Dear @MagnusL thanks for your attention
it doesn’t work.

I will try it. Isn’t there a need for the -center?

Is it possible to guide us on how to do this?

You only need -center if you wish to center something in the simulation box. My reply just addressed what was explicitly requested, i.e., to remove jumps from the trajectory. I think it’s good to do things one step at a time and try to decide what you want to do with your trajectory. It is always risky to use examples from someone else.

Does this part of the manual help you Terminology - GROMACS 2024.2 documentation?

EDIT: I realised that my answer a few posts above will not work if the molecules are broken in the tpr. Follow the instructions in the manual in that case.

Does that mean I need to use a double bilayer and place the molecule between the two bilayers?

what was the length of your water box?

I don’t know what the goal with your simulation is, so it is difficult to say.

You don’t need to use a double bilayer just to avoid molecules jumping across the periodic boundary when you view the trajectory, such visualisation artefacts can be resolved using gmx trjconv. But if you want to make sure that the molecule does not reach the other side of the bilayer without crossing the bilayer, you will need two bilayers (mirrored if they are not symmetric). With one bilayer in the simulation, the solvent is continuous.

Thank you @MagnusL. Indeed I have an asymmetric membrane. gmx trjconv was not helpful so I was looking for alternatives. I will try with the two bilayers.

@scinikhil The water box was more than 15 nm on either side of the membrane. Simulation time was 500 ns.