Nawel Mele
unread,Apr 17, 2013, 7:09:58 AM4/17/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mdnalysis-...@googlegroups.com
Hello,
Following the results of molecular dynamics, I want to study the evolution of hydrogen bonds during the trajectory.
I therefore uses the Mdanalysis hbond packages.
However, some points are still unclear. First of all here is the command I use to extract my Hbond:
import MDAnalysis.analysis.hbonds
u = MDAnalysis.Universe("file.gro","file.xtc", permissive=True)
h = MDAnalysis.analysis.hbonds.HydrogenBondAnalysis(u, selection1="bynum 5051:6060" , selection2="bynum 1:1010" ,distance=3.0, angle=120.0,start=10000,stop=20001,step=1,update_selection1=True, update_selection2=True)
h.run()
frames=h.timeserie
My questions are:
1- What is the purpose of this option ( red bold ): h = MDAnalysis.analysis.hbonds.HydrogenBondAnalysis(u, selection1=mon1 , selection2=mon2 ,distance=3.0, angle=120.0,start=10000,stop=20001,step=1,update_selection1=True, update_selection2=True)
In fact, when I do not use this option, the results are inconsistent.
2- Why when I did this command : h =
MDAnalysis.analysis.hbonds.HydrogenBondAnalysis(u, selection1="bynum 1:1010" ,
selection2="bynum 5051:6060" ,distance=3.0, angle=120.0,start=10000,stop=20001,step=1,update_selection1=True, update_selection2=True)
I get a results.
And when I reverse my selections: h =
MDAnalysis.analysis.hbonds.HydrogenBondAnalysis(u, selection1="bynum 5051:6060" ,
selection2="bynum 1:1010" ,distance=3.0, angle=120.0,start=10000,stop=20001,step=1,update_selection1=True, update_selection2=True)
I receive an error message?
Thanks a lot for your answers.
Nawel