Load coords

From PyMOLWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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')

See Also