[chimerax-users] Trajectory computation slowing down overtime

Shubham Devesh Ramgoolam sdramgoolam at uwaterloo.ca
Sat Jun 11 21:38:30 PDT 2022


Hi all,
I hope you are doing well.

I have a Python script for analyzing specific residue pairs for every frame in a trajectory.
It does so, by using 2 for loops:
For frame in list_frames:
               Set current frame to frame
               For pair in specific_residue_pairs:
                              Do computation

The computation involves defining geometric objects(centroids, axes, planes) and performing calculations with them(distance, angles).
The issue here is that as we move further in list_frames, the computation takes longer and longer. There is a somewhat linear increase in computation time, as illustrated below:

[cid:image003.png at 01D87E37.C872FDF0]

Is there a way to maintain the same computation time for every frame in the trajectory?

Regards,
Shubham Ramgoolam
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimerax-users/attachments/20220612/c75e2719/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: E0E35EA38D4345BE98A480EB08BE8CEC.png
Type: image/png
Size: 21951 bytes
Desc: E0E35EA38D4345BE98A480EB08BE8CEC.png
URL: <http://www.rbvi.ucsf.edu/pipermail/chimerax-users/attachments/20220612/c75e2719/attachment.png>


More information about the ChimeraX-users mailing list