This is a read-only mirror of pymolwiki.org
Difference between revisions of "Identify"
Jump to navigation
Jump to search
m (5 revisions) |
m (1 revision) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | |||
'''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 == | |
<source lang="python"> | <source lang="python"> | ||
list = cmd.identify(string selection="(all)",int mode=0) | list = cmd.identify(string selection="(all)",int mode=0) | ||
Line 10: | Line 9: | ||
*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 01:04, 19 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