Difference between revisions of "Identify"

From PyMOLWiki
Jump to: navigation, search
 
m (add links to Selection and Property_selectors)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
===DESCRIPTION===
+
'''identify''' returns a list of atom IDs corresponding to the ID code of atoms in the selection.
+
 
  "identify" returns a list of atom IDs corresponding to the ID code
+
== PYMOL API ==
  of atoms in the selection.
+
<source lang="python">
+
list = cmd.identify(string selection="(all)",int mode=0)
===PYMOL API===
+
</source>
<source lang="python">
 
  list = cmd.identify(string selection="(all)",int mode=0)
 
</source>
 
  
 
===NOTES===
 
===NOTES===
+
*mode 0: only return a list of identifiers (default)
  mode 0: only return a list of identifiers (default)
+
*mode 1: return a list of tuples of the object name and the identifier  
  mode 1: return a list of tuples of the object name and the identifier  
+
 
 +
== See Also ==
 +
 
 +
[[Selection]], [[Property_Selectors]]
  
[[Category:Commands|identify]]
+
[[Category:Commands|Identify]]

Latest revision as of 00:09, 9 October 2015

identify returns a list of atom IDs corresponding to the ID code of atoms in the selection.

PYMOL API

list = cmd.identify(string selection="(all)",int mode=0)

NOTES

  • mode 0: only return a list of identifiers (default)
  • mode 1: return a list of tuples of the object name and the identifier

See Also

Selection, Property_Selectors