<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Matt,<div><span class="Apple-tab-span" style="white-space:pre"> </span>You can find out about the (C++) attributes/methods of a class by using help() in the IDLE interpreter, e.g.:</div><div><br></div><div>help(chimera.Residue)</div><div><br></div><div>There is also declaration of the Python-visible attributes of Atom/Residue/etc. in the source distribution in libs/_chimera/pyinterface. The more convenient way nowadays to get pyinterface is by browsing our SVN repository, i.e. from:</div><div><br></div><div><a href="http://socrates2.cgl.ucsf.edu/trac/chimera/browser/trunk/libs/_chimera/pyinterface">/trunk/libs/_chimera/pyinterface – Chimera</a></div><div><br></div><div>The other thing you might want to know that seems germane to your specific query is that the PDB headers are stored in the pdbHeaders dictionary in Molecule (key: header type [e.g. REMARK], value: list of strings).</div><div><br></div><div>--Eric</div><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><div><div>On Apr 2, 2009, at 1:23 PM, Matthew Dougherty wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I was writing some python code involving PDB data.<br><br>looking at pre-existing code involving PDB:<br><br><br>m = om.open(pdb_path, 'PDB')[0]<br>rlist = m.residues<br><br>for r in rlist:<br><br><span class="Apple-tab-span" style="white-space:pre"> </span>lc = 'monomer residue %d' % (r.id.position)<br> <span class="Apple-tab-span" style="white-space:pre"> </span>if r.isHelix:<br> <span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>lc += ' HELIX'<br> <span class="Apple-tab-span" style="white-space:pre"> </span>elif r.isSheet:<br> <span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre"> </span>lc += ' SHEET'<br><br><br><br><br><br>I was trying to track down the data structure for r/rlist, to see if <br>there are any other parameters I could use besides isHelix, isSheet, <br>and id.position.<br>where would that be located in the Chimera package?<br><br>thanks, Matt<br>_______________________________________________<br>Chimera-users mailing list<br><a href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a><br>http://www.cgl.ucsf.edu/mailman/listinfo/chimera-users<br></div></blockquote></div><br></div></body></html>