I performed a simulation of a protein-ligand complex in gromacs and I wish now to calculate the frequency of contact (any kind of contact) between the ligand and the protein residues over a certain range of frames. I am new in gromacs and I do not know the right command (or script) to do this.