<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I guess I should also mention the the "atom specifier" can just be "sel" to get whatever is currently selected.<div><br></div><div>--Eric</div><div><br><div><div>On Nov 17, 2014, at 4:45 PM, Eric Pettersen <<a href="mailto:pett@cgl.ucsf.edu">pett@cgl.ucsf.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Nov 17, 2014, at 4:26 PM, Boris Steipe <<a href="mailto:boris.steipe@utoronto.ca">boris.steipe@utoronto.ca</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><blockquote type="cite" style="font-family: monospace; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><blockquote type="cite">For example I would like to perform some simple calculations on the coordinates of a set of selected atoms, and I see many functions that take a "sel" argument, but I can't seem to find documentation on exactly what that argument is expected to contain, or the function that would return such a selection list (is it even a list) of objects.</blockquote></blockquote></blockquote><br></div><div>If we are talking about the the 'sel' argument given to many of the functions in Midas/__init__.py, that argument is usually "polymorphic", and can be any one of these:</div><div><br></div><div> -- an atom specifier (e.g. "#1@ca")</div><div> -- a list/tuple of Atoms/Residues/Molecules (homogeneous list/tuple though)</div><div> -- a set of Atoms/Residues/Molecules (also homogenous, and unlike the list/tuple the set has to be at the right "level" for the function called [e.g. Atoms for distance])</div><div> -- a Selection/OSLSelection (which Tom mentioned)</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; 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="margin: 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></div><div style="margin: 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></div><div style="margin: 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></div><br class="Apple-interchange-newline"></span>
</div>
<br></div>_______________________________________________<br>Chimera-dev mailing list<br><a href="mailto:Chimera-dev@cgl.ucsf.edu">Chimera-dev@cgl.ucsf.edu</a><br>http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev<br></blockquote></div><br></div></body></html>