Friends my aim is to do distance measurement of each water atom with each protein atom and do some analysis. So basically I have to loop over each water coordinates with each protein coordinates. I have a gromacs .xtc file to work with. I tried the looping just for a single frame with two different codes that have attached as text file.
In brief, i tried to access the co-ordinates using both MDAnalysis.Universe and libxdrfile.openxtc routines and i found that the execution time for the looping with libxdrfile.readxtc routine is faster
1) I feel using MDAnalysis.Universe routine is more convenient than libxdrfile routines as with one code i can work on any trajectory. If you have any suggestion to improve the efficiency of looping in code 1, It would be of great help.
2) As far as using libxdrfile, i have several queries as below.
a) In the following, why we create XTC object and then pass it to read_xtc method. What is the role of XTC, is it something like a file handle.
XTC = xdrfile_open(xtc, 'r')
status,step,time,prec = read_xtc(XTC, box, x)
--
You received this message because you are subscribed to the Google Groups "MDnalysis discussion" group.
To post to this group, send email to mdnalysis-...@googlegroups.com.
To unsubscribe from this group, send email to mdnalysis-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mdnalysis-discussion?hl=en.
--
You received this message because you are subscribed to the Google Groups "MDnalysis discussion" group.
To post to this group, send email to mdnalysis-...@googlegroups.com.
To unsubscribe from this group, send email to mdnalysis-discus...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mdnalysis-discussion?hl=en.