<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div>On Apr 29, 2009, at 3:34 AM, Jean Didier Pie Marechal wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Dear all,<br><br>I'd like to generate from my script an ensemble of structures obtained by the rotation of a subgroup of the molecule around a given bond. Said in another way, I want to do something similar to the adjust torsion tools without getting to the interfase but defining myself the value of the angle I want to test.<br>I can't figure out what is the module to load and how to use it and it seems there is no command line for this (rotation seems to accept only the atom specification for the bond as an argument). Could you give me a hand on this?</div></blockquote><div><br></div>Hi JD,</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Basically, given a bond you want to rotate around, you create a BondRot instance to do it:<br></div><div><br></div><div>br = chimera.BondRot(bond)</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Then you can change it by a delta (in degrees) from it's _original_ (not current) position with the angle() method. You also have to specify which side of the bond doesn't move:<br></div><div><br></div><div>br.angle = (10, br.biggerSide())</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>You can get back to the original position with br.reset() (or with a delta of zero). Make sure to dispose of the BondRot with br.destroy() when you're done with it.<br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>You probably want to use a daily build here, otherwise the bond-rotation GUI will pop up as you work with the BondRot. Which can be kind of cool as the adjustment dial flies around like a movie clock in a fast-forward sequence.<br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span><br><blockquote type="cite"><div>By the way, I wanted to get the to the programmers's guide but I can't. You removed it from your server correct? <br><br>All the best, <br>JD<br></div></blockquote><br></div><div>The Programmer's Guide is still there, it's just not a direct link off the home page. Instead you have to click on the "Documentation" link and it's in the list on the resulting page. We removed the auto-generated reference section since it was very big and of little utility.</div><div><br></div><div>--Eric</div></div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "><br class="Apple-interchange-newline"> Eric Pettersen</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "> UCSF Computer Graphics Lab</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="5" style="font: normal normal normal 16px/normal Helvetica; "> <a href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></div></div></div><br><div></div></body></html>