<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On May 28, 2012, at 9:57 AM, Ryan Doherty wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hello,<br><br>I'm trying to create a chimera script and am stumped. I'm trying to iterate through a series of PDB entries that contain a specific protein-protein interaction (some are NMR ensembles) to create a list of residues that within specific distances of the binding interface.<br><br>I am able to successfully iterate through pdb files and residues, but am having difficulty iterating through chains of NMR ensembles. Is there a variable like m.chains or is the number of chains accessible through chimera.openModels.list? Also, do you have any example scripts that could help me?</div></blockquote><br></div><div>Hi Ryan,</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>Do you really mean the chains, like chain A, chain B, etc.? Or do you mean the separate MODEL entries in the NMR ensemble? I'm guessing the latter (if it's the former just say so and I can fill you in on that too).</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>chimera.openModels.list() returns a list. If you have a non-NMR PDB file open, that list has exactly one element. For NMR ensembles, it has one element for every MODEL in the PDB file. So you would just iterate through that list. I'm guessing you're just using the first element of the list in your script right now?</div><div><br></div><div>--Eric</div><br><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>