<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jan 7, 2010, at 2:30 PM, Yasser Almeida Hernández wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi...<br>It's possible run a Chimera's command iteratively?<br>I have loaded several structures (more than 300) and i want to superimposed them to a reference structure. How i perform the matching command for every structure iteratively?<br><br>Thanks</div></blockquote><br></div><div>Hi Yasser,</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>You will need to resort to Python, though a simple script would do it. Assuming you are using the matchmaker command to do the matching, and that the reference structure is open as model 0, then...</div><div><br></div><div>from chimera import runCommand</div><div>numModels = 350</div><div>for modelNum in range(1, numModels+1):</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>runCommand("mmaker #0 #" + str(modelNum))</div><div><br></div><div>Put the above in a .py file and open it using File...Open or the "open" command. Change "350" in the script to however models you have.</div><div><br></div><div>--Eric</div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-size: medium;"><br></span></span></font></div><div><div><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-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; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><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; "> 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><br class="Apple-interchange-newline"></div></span></div><br><div></div></div><br></body></html>