# Gmx\_mindist number of contacts to output by residue number

**URL:** <https://gromacs.bioexcel.eu/t/gmx-mindist-number-of-contacts-to-output-by-residue-number/4534>\
**Category:** User discussions\
**Tags:** analysis-tools, gmx-mindist\
**Created:** [July 31, 2022, 7:47am UTC](https://gromacs.bioexcel.eu/t/gmx-mindist-number-of-contacts-to-output-by-residue-number/4534 "2022-07-31T07:47:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TreeLife](https://avatars.discourse-cdn.com/v4/letter/t/ed655f/32.png) [@TreeLife](https://gromacs.bioexcel.eu/u/TreeLife)\
**Post date:** [July 31, 2022, 7:47am UTC](https://gromacs.bioexcel.eu/t/gmx-mindist-number-of-contacts-to-output-by-residue-number/4534/1 "2022-07-31T07:47:50Z")

</div>

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

Hi there,

I used gmx\_mindist to output min-dist and number of contacts. I wanted to get the ouput.xvg for all residues of the group of interest. I used \> -or option. However apparently it only output resnumbers for mindist and not for contacts.

Does this mean we have to repeat mindist function for each residue or atom to get number of contacts with a specific another group?

Or is there a way to output one file for number of contacts for all residues of interest using an option here?

Thanks.
