Re: [AMBER] ptraj grid by center of mass

From: Daniel Roe <daniel.r.roe.gmail.com>
Date: Mon, 26 Nov 2012 09:55:15 -0700

Hi,

Currently 'grid' doesn't do what you would like, but it shouldn't be too
difficult to modify the code. Take a look at actions.c around line 9207.
You can change the loop there so you calculate the center coords of the
atoms in the mask into temporary vars (e.g. tempX, tempY, and tempZ), then
grid the temp. coords using the same procedure from line 9212 onward.

Good luck!

-Dan

On Mon, Nov 26, 2012 at 6:55 AM, Daniel Álvarez García <
algarcia.daniel.gmail.com> wrote:

> Dear AMBER developers,
>
> ptraj's grid command is very useful to build density grids for the given
> atoms in the mask.
> However I am interested in building the density grid for the center of mass
> of the atom group
> given in the mask. Is it posible with the current Ambertools12 version of
> ptraj?
> Otherwise, would it be easy to modify the source code to allow such
> implementation of grid?? Any advice or
> tips on how to modify the code or use this feature will be highly
> appreciated!!
>
> Thanks in advance,
>
> Daniel
>
> --
> Daniel Álvarez
> algarcia.daniel.gmail.com
> PhD Student
> Computational Biology and Drug Discovery Group, UB
> http://www.ub.edu/cbdd/
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>



-- 
-------------------------
Daniel R. Roe, PhD
Department of Medicinal Chemistry
University of Utah
30 South 2000 East, Room 201
Salt Lake City, UT 84112-5820
http://home.chpc.utah.edu/~cheatham/
(801) 587-9652
(801) 585-9119 (Fax)
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Mon Nov 26 2012 - 09:00:03 PST
Custom Search