Difference between revisions of "Identify"

From PyMOLWiki
Jump to: navigation, search
 
Line 1: Line 1:
 
===DESCRIPTION===
 
===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
+
 
  of atoms in the selection.
 
 
 
===PYMOL API===
 
===PYMOL API===
<source lang="python">
+
<source lang="python">
  list = cmd.identify(string selection="(all)",int mode=0)
+
list = cmd.identify(string selection="(all)",int mode=0)
</source>
+
</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  
 
  
 
[[Category:Commands|identify]]
 
[[Category:Commands|identify]]

Revision as of 22:27, 2 June 2005

DESCRIPTION

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