Question r/e PCA in MDAnalysis

42 views
Skip to first unread message

Dhanushka Weerakoon

unread,
Sep 13, 2023, 4:15:20 AM9/13/23
to MDnalysis discussion
Hello,

I have a protein trajectory made up of multiple units in which all alpha carbons are pre-aligned to a crystal structure. I then want to run PCA on one unit. To decide whether to use the align argument in the pca.PCA class, I took a look into the source code and realised that on calculating the mean of the trajectory, the .run() method of the class appears to calculate the mean of the un-aligned trajectory? See the image, which part of the _prepare function - as I understand there should be an extra line within the if self.align statement:
self.mean += mobile_atoms.positions

If I have misunderstood I apologise - but if this is the case, would you suggest using my pre-aligned trajectory for PCA calculation and simply setting align=False?

Best wishes,
Dhanushka WeerakoonScreenshot from 2023-09-13 13-02-31.png




Reply all
Reply to author
Forward
0 new messages