This is a read-only mirror of pymolwiki.org
Difference between revisions of "Load coords"
Jump to navigation
Jump to search
(created) |
m (1 revision) |
(No difference)
|
Latest revision as of 22:50, 21 April 2015
load_coords is an API only function to load selection coordinates.
CHANGED IN VERSION 1.7.3: This used to be the load_coordset function. load_coordset may load coordinates in different order (original order from PDB file) than load_coords (atom sorted order).
PyMOL API
cmd.load_coords(sequence coords, str selection, int state=1)
Arguments
- coords = list: Nx3 float array
- selection = str: atom selection
- state = int: object state {default: 1}
Example
cmd.fragment('ala')
coords = cmd.get_coords('ala')
coords += 5.0
cmd.load_coords(coords, 'ala')