<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 11, 2011, at 7:54 AM, Elisabeth Ortega wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi all,<br><br>I'm trying to do a script to display the "best" rotamer of all the rotamers that the funcion getRotamers give to me. I use the function useRotamers to display them but now I only want to display the rotamer with the less number of clashes and the highest number of h-bonds. I know that getRotamers return to us a list with all the rotamers of an aminoacid sorted by probability but I don't have any idea about how display only one of the rotamers. Anyone know how I can do it?</blockquote><br></div><div>It depends. If it's your code deciding which rotamer to use, you can call useRotamer with a list of "rotamers" that contains just the one rotamer you want. If you want Chimera to do the work of screening by number of h-bonds and clashes, use the useBestRotamers function. It's the function that implements the swapaa command. The arguments for the function are documented in the function itself.</div><div><br></div><div>--Eric</div><div><br></div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 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-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>Eric Pettersen</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>UCSF Computer Graphics Lab</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> </span><a href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></p><br class="Apple-interchange-newline"></div></span> </div><br></body></html>