vmd.molecule.load

vmd.molecule.load()

Load a molecule from a file. Can optionally read in coordinate files as well. Coordinate data does not have to be present in structure file.

Parameters:
  • struct_type (str) – File type for structure data, or ‘graphics’ for a blank molecule to add graphics to.
  • struct_file (str) – Filename for structure data
  • coord_type (str) – File type for coordinate data. Optional.
  • coord_file (str) – Filename for coordinate data. Optional.
Returns:

(int) – Molecule ID of loaded molecule