Hi,
You can do this in cpptraj via a combination of 'hbond' and 'outtraj'.
First, generate hydrogen bond time series data with the hbond command:
parm myparm.parm7
trajin mytraj.nc
hbond <hbond args> series uuseries UU.dat
run
See the manual for the description of the arguments available for
'hbond'. The time series data for each hydrogen bond contains a 1 for
the frame if the hydrogen bond is present and 0 otherwise. Once you've
got the hbond time series data, you can read it back in and in and use
'outtraj' with 'maxmin' to extract frames where the particular
hydrogen bonds are present, e.g.
parm myparm.parm7
trajin mytraj.nc
readdata UU.dat index 1 name UU
outtraj hb1.nc maxmin UU:2 min 0.5 max 1.5
outtraj hb2.nc maxmin UU:3 min 0.5 max 1.5
...
Hope this helps,
-Dan
On Wed, May 2, 2018 at 11:31 AM, Stejskal, Lenka
<lenka.stejskal.15.ucl.ac.uk> wrote:
> Hello Amber users!
>
> I want to ask whether anyone knows of a way to extract frames from a trajectory with a particular hbonds between particular residues. I have four hbonds and I would like to find out the percentage of the frames that have all of them, three of them….
>
> Thank you very much for your help!
>
> Lenka
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
--
-------------------------
Daniel R. Roe
Laboratory of Computational Biology
National Institutes of Health, NHLBI
5635 Fishers Ln, Rm T900
Rockville MD, 20852
https://www.lobos.nih.gov/lcb
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Thu May 03 2018 - 08:00:05 PDT