I am following standard structural analysis section of the PCA tutorial on Bio3d website: http://thegrantlab.org/bio3d/tutorials/principal-component-analysis
My question is that besides RMSD and RMSF is it possible to compute distance or angle for equivalent positions for all structures in the ensemble even though sequence is different?
Specifically, for example what would be an easy way to compute distance between residue 178 and residue 112 of 1TAG and for all other 103 structures in the ensemble at the equivalent position? I am hoping to get a distance vector of length 103 as an output.
Jepps. You'll need to dig into the xyz component of your pdbs object. (pdbs is just a multiple sequence alignment together with aligned coordinate data and associated attributes). Thus to fetch the coordinates of individual residues you can access the pdbs$xyz matrix like this:
You can then use dist.xyz(). e.g.:
which will give you the pair-wise distances between residues 50 for the chosen structures (here structure 1-5).
Basically, by understanding how the pdbs$xyz matrix is composed you should be able to do the things you aim for here.