Re: [AMBER] CPPTRAJ, Comparing H-bonding in two trajectories

From: Daniel Roe <daniel.r.roe.gmail.com>
Date: Mon, 14 Feb 2022 19:23:22 -0500

Hi,

Right now, something like what Kenneth has done is probably the best way.
However I have some ideas on this to make it simpler, and hope to implement
them soon so stay tuned!

-Dan

On Mon, Feb 14, 2022 at 2:09 PM Kenneth Huang <khuang8.student.gsu.edu>
wrote:

> Hi,
>
> Not exactly a built in solution (think it involves readdata after you've
> run the hbond, but someone else may remember more than me) but here's a
> bash script I made a while back to brute force a comparision from the
> hbond_avg output-
> #print out from input to temp in range- make sure to have range defined to
> avoid solute solvent hbond
> awk 'NR>1 && NR<279 {print $1,$3,$5}' hbond_avg.*.out | awk '$3 > .05
> {print ;}' > test
>
> #parse out the weird name to just res #, percent, and remove duplicate
> entries
> awk -F"_" '$1=$1' OFS=" " test | awk -F"." '$1=$1' OFS="\t" | awk '{print
> $2,$5,$7}' | awk '!_[$1,$2]++' > test2a
>
> #have to do two passes for this part- won't work on first pass, so run
> over other hbond_avg output for other traj to compare
>
> #match by col 1+2
> awk 'FNR==NR{a[$1,$2];b[$1,$2];next} (($1,$2) in a) || (($1,$2) in b) '
> test2a test3
> It's rough and you may have to fiddle with it, but it might be a useful
> start.
>
> Best,
>
> Kenneth
>
> ________________________________
> From: Matthew Guberman-Pfeffer <matthew.guberman-pfeffer.uconn.edu>
> Sent: Monday, February 14, 2022 1:44 PM
> To: AMBER Mailing List <amber.ambermd.org>
> Subject: [AMBER] CPPTRAJ, Comparing H-bonding in two trajectories
>
> Dear Amber Community,
>
> Is there a built-in way to compare the H-bonding in two difference
> trajectories to see how many are the same and how many are different (i.e.,
> involve the same/different donor and acceptor pairs)?
>
> Best,
> Matthew
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
>
> https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.ambermd.org%2Fmailman%2Flistinfo%2Famber&amp;data=04%7C01%7Ckhuang8%40student.gsu.edu%7C15b45f2fd01b4514b20208d9efea10b0%7C704d822c358a47849a1649e20b75f941%7C0%7C1%7C637804610857379324%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=DjvD2iHJwPIINrurPNOMCANXWFbqPFpVUDub19rPJZg%3D&amp;reserved=0
> CAUTION: This email was sent from someone outside of the university. Do
> not click links or open attachments unless you recognize the sender and
> know the content is safe.
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Mon Feb 14 2022 - 16:30:02 PST
Custom Search