How to center the complex after simulations?

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

I have run dynamic simulations for a complex that has (protein, DNA and RNA) . At the end of simulations, a small segment of the DNA is showing outside the box.
I have used the following commands:
1- gmx trjconv -f prodrun1.gro -s prodrun1.tpr -o prodrun_nojump.gro -center -pbc nojump

2- gmx trjconv -f prodrun_nojump.gro -s prodrun1.tpr -o prodrun1_processed1.gro -center -pbc mol -ur compact
3- gmx trjconv -s prodrun1.tpr -f prodrun1_processed1.gro -o prodrun1_processed1finalnew.gro -pbc mol -center

I have used the system (0) for both centering and for the output,

DNA segment is still oustide the box, How to center the whole complex before going for analysis?

Thank you so much

Center on one species (the protein, the DNA, or the RNA) instead.

I just tried that! but didn’t solve the problem