This is a read-only mirror of pymolwiki.org

Difference between revisions of "Read Molstr"

From PyMOL Wiki
Jump to navigation Jump to search
 
m
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
===DESCRIPTION===
+
==DESCRIPTION==
+
'''read_molstr''' reads an MDL MOL format file as a string
  "read_molstr" reads an MDL MOL format file as a string
 
 
   
 
   
 
===PYMOL API ONLY===
 
===PYMOL API ONLY===
<source lang="python">  
+
<source lang="python">
  cmd.read_molstr( string molstr, string name, int state=0,
+
cmd.read_molstr( string molstr, string name, int state=0, \
      int finish=1, int discrete=1 )
+
  int finish=1, int discrete=1 )
 
</source>
 
</source>
  
 
===NOTES===
 
===NOTES===
 +
*'''state''' is a 1-based state index for the object, or 0 to append.
 
   
 
   
  "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 [[:Category:Performance|performance]] when loading large numbers of objects, but you must call '''finish_object''' when you are done.
 
  "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.  
 
 
   
 
   
 +
* '''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.
  
[[Category:Commands|read_molstr]]
+
[[Category:Commands|Read Molstr]]
 +
[[Category:Performance|Read Molstr]]
 +
[[Category:States|Read Molstr]]

Revision as of 14:20, 20 June 2009

DESCRIPTION

read_molstr reads an MDL MOL format file as a string

PYMOL API ONLY

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

NOTES

  • 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.