<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Oops. The module name is "StructMeasure", not "StructureMeasure", so the correct line of Python would be:<div><br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; position: static; z-index: auto; "><div><div>from StructMeasure.DistMonitor import distanceMonitor</div></div></blockquote></div><div><br></div>--Eric</div><div><br></div><div><br><div><div>On May 10, 2010, at 3:36 AM, Bala subramanian wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; position: static; z-index: auto; "> <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=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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></div> <div class="im"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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></div> <br></div></div></span> </div><br></div></blockquote></div><br></blockquote></div></div><br></body></html>