[Chimera-users] weighted distance

Eric Pettersen pett at cgl.ucsf.edu
Wed May 5 11:37:36 PDT 2010


On May 5, 2010, at 10:28 AM, Elaine Meng wrote:

> With Chimera commands, you can create a distance monitor and set its  
> stick thickness, color, etc.:
> open 1zik
> alias pair1 #0:22.a at oe2:25 at ne
> dist pair1
> setattr p drawMode 1 pair1
> setattr p radius .05 pair1
> setattr p color hot pink pair1
> setattr p label " " pair1
>
> However, it sounds like python will be necessary to conditionally  
> set radius or color depending on the value of the distance.

A little more info on this possibility.  You can get the distance- 
monitor pseudobond group in Chimera with:

from StructureMeasure.DistMonitor import distanceMonitor

and run through the distance-monitor pseudobonds with:

for pb in distanceMonitor.pseudoBonds:
	...do something that sets pb.radius based on pb.length()...

--Eric

                         Eric Pettersen
                         UCSF Computer Graphics Lab
                         http://www.cgl.ucsf.edu


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20100505/0a61d725/attachment.html>


More information about the Chimera-users mailing list