[gmx-users] Difference between residue (r) and residue index (ri) when selecting residue groups?

Justin Lemkul jalemkul at vt.edu
Thu Aug 15 18:32:38 CEST 2019



On 8/15/19 12:16 PM, Dhaniram Mahato wrote:
> r will select all atoms without hydrogens.
> ri will select all atoms including all hydrogens too.

This is not correct. GROMACS has default groups with and without hydrogens.

r selects based on the actual residue number. ri is supposed to select 
based on *index* - a zero-based residue numbering. In practice, however, 
they seem to have identical functions, which seems like a bug (I just 
tried it).

The code seems correct, but the output is not consistent with what one 
would expect.

-Justin

-- 
==================================================

Justin A. Lemkul, Ph.D.
Assistant Professor
Office: 301 Fralin Hall
Lab: 303 Engel Hall

Virginia Tech Department of Biochemistry
340 West Campus Dr.
Blacksburg, VA 24061

jalemkul at vt.edu | (540) 231-3129
http://www.thelemkullab.com

==================================================



More information about the gromacs.org_gmx-users mailing list