how to measure distance between two beta sheet in pymol?
i have tried below commands:
color skyblue, ss s
select sheet1, resid 1-10
select sheet2, resid 20-30
distance dist, sheet1, sheet2, mode=4
But i got distance between centroid distance.
is there other option to calculate distances between two sheets in pymol?
this is not an answer, just trying to figure out the question better. To help people to answer. Using this .pdb file
6e5c.pdb, https://www.rcsb.org/structure/6e5cwith this code:
I got this results using :
cmd.distance('dist' , '1st' , '2nd' , mode = 4)that is according to https://pymolwiki.org/index.php/Distance :
4: distance between centroids (new in 1.8.2).On a side note https://pymol.org/pymol-command-ref.html#distance reports up to 8 different modes , not sure there are still usable , please point me toward the most recent and better updated command references.
the two yellow spheres represent the
centroidhttps://pymolwiki.org/index.php/Centroid , obtained by scriptcentroid.pyhttps://raw.githubusercontent.com/Pymol-Scripts/Pymol-script-repo/master/centroid.py [not sure why centroid command is not in the API since it is used bycmd.distance.cmd.centroidgivesAttributeError: module 'pymol.cmd' has no attribute 'centroid'].I selected the two beta-sheets residues by hands, getting worst result than the question
color skyblue, ss s, nevetheless I am wondering about how else I could figure out a measure of distance , between the two sheets:some form of averaged/weighted distances between some of the resi involved ?? I'll try to ggole for it. Tried to calculate the volume between the two B-sheets as difference between the volumes of the entire protein minus the volumes of the single B-sheet halves of the protein but got negative value, need to think more about this approach, I'll try other ways like surfaces between ghe two