From: Daniel Roe <>
Date: Thu, 4 Mar 2021 11:17:50 -0500


This might not be exactly what you want, but cpptraj can generate
sander distance restraint syntax using Amber mask syntax via the 'rst'
command, e.g. to create a distance restraint between the atoms of
residues 1 and 12 in tz2.parm7:

parm test/tz2.parm7
rst :1 :12 r1 2 r2 3 r3 4 r4 5 rk2 5 rk3 5 out temp.rst

Contents of temp.rst:

 &rst iat=-1,-1,0
   r1=2.000000, r2=3.000000, r3=4.000000, r4=5.000000, rk2=5.000000,
   nstep1=0, nstep2=0,

Hope this is helpful,


On Thu, Mar 4, 2021 at 12:04 AM Ming Tang <> wrote:
> Dear Amber experts,
> In this tutorial(<>), makeDIST_RST can generate sander distance restraint format between two atoms with a 7 colomn input file. May I ask is there a similar script that can generate the sander format of distance restraint between the center of mass of two group of atoms (atoms in each group are from the same residue) automatically by providing similar input as 7col.dist except that 1 residue has a number of atoms in one row?
> Many thanks,
> Ming
> _______________________________________________
> AMBER mailing list

AMBER mailing list
Received on Thu Mar 04 2021 - 08:30:02 PST
Custom Search