Dear Elaine and Eric,<br>Thanks for the inputs. I started the chimera interface and tried to use the StructureMeasure module using the IDLE that is present in chimera but it shows me import Error. I dnt understand why. I am using chimera 1.5 alpha version 29904. Do i need to set some path to use the module.<br>
<br>>>> from StructureMeasure import *<br>Traceback (most recent call last):<br> File "<pyshell#8>", line 1, in <module><br> from StructureMeasure import *<br>ImportError: No module named StructureMeasure<br>
<br><br>Bala<br><br><div class="gmail_quote">On Wed, May 5, 2010 at 8:37 PM, Eric Pettersen <span dir="ltr"><<a href="mailto:pett@cgl.ucsf.edu">pett@cgl.ucsf.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><div class="im"><div><div>On May 5, 2010, at 10:28 AM, Elaine Meng wrote:</div><br><blockquote type="cite"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="font-family: monospace;">With Chimera commands, you can create a distance monitor and set its stick thickness, color, etc.:<br>
open 1zik<br>alias pair1 #0:22.a@oe2:25@ne<br>dist pair1<br>setattr p drawMode 1 pair1<br>setattr p radius .05 pair1<br>setattr p color hot pink pair1<br>setattr p label " " pair1<br><br>However, it sounds like python will be necessary to conditionally set radius or color depending on the value of the distance.</span></span></blockquote>
<br></div></div><div>A little more info on this possibility. You can get the distance-monitor pseudobond group in Chimera with:</div><div><br></div><div>from StructureMeasure.DistMonitor import distanceMonitor</div><div>
<br></div><div>and run through the distance-monitor pseudobonds with:</div><div><br></div><div>for pb in distanceMonitor.pseudoBonds:</div><div><span style="white-space: pre;"> </span>...do something that sets pb.radius based on pb.length()...</div>
<div><br></div><div>--Eric</div><br><div> <span style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="">
<p style="margin: 0px;"><font style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Helvetica" size="5"><span> <span> </span></span>Eric Pettersen</font></p>
<p style="margin: 0px;"><font style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Helvetica" size="5"><span> <span> </span></span>UCSF Computer Graphics Lab</font></p>
<div class="im"><p style="margin: 0px;"><font style="font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-size-adjust: none; font-stretch: normal;" face="Helvetica" size="5"><span> </span><a href="http://www.cgl.ucsf.edu" target="_blank">http://www.cgl.ucsf.edu</a></font></p>
<br></div></div></span> </div><br></div></blockquote></div><br>