This is a read-only mirror of

Read Molstr

From PyMOL Wiki
Revision as of 03:08, 28 March 2014 by Bell (talk | contribs) (10 revisions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

read_molstr reads an MDL MOL format file as a string


cmd.read_molstr( string molstr, string name, int state=0, \
  int finish=1, int discrete=1 )


  • state is a 1-based state index for the object, or 0 to append.
  • finish is a flag (0 or 1) which can be set to zero to improve performance when loading large numbers of objects, but you must call finish_object when you are done.
  • discrete is a flag (0 or 1) which tells PyMOL that there will be no overlapping atoms in the file being loaded. discrete objects save memory but can not be edited.