[gmx-users] g_bundle: angle with x or y axis.
jalemkul at vt.edu
Sat Jan 19 18:57:21 CET 2013
On 1/18/13 7:09 PM, Mortuza Munna wrote:
> Dear gromacs user,
> I have found that g_bundle can measure the angle between a group from
> index file and z-axis with the option -z. Is it possible to measure the angle of that group from index file with y-axis/x-axis? Any suggestion will be appreciable.
You cannot do this directly with g_bundle without modifying the source code to
implement such functionality.
One approach would be to:
1. Use trjconv -sep to split your trajectory into individual frames (.pdb or .gro)
2. Rotate each frame to realign what was previously x or y with the z-axis.
3. Concatenate the frames with trjcat into a new trajectory
4. Apply g_bundle -z
The above approach can easily be scripted.
Justin A. Lemkul, Ph.D.
Department of Biochemistry
jalemkul[at]vt.edu | (540) 231-9080
More information about the gromacs.org_gmx-users