This is a read-only mirror of pymolwiki.org

Difference between revisions of "Read Pdbstr"

From PyMOL Wiki
Jump to navigation Jump to search
 
m
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
===DESCRIPTION====
+
===DESCRIPTION===
+
'''read_pdbstr''' in an API-only function which reads a pdb file from a Python string.  This feature can be used to load or update structures into PyMOL without involving any temporary files.
  "read_pdbstr" in an API-only function which reads a pdb file from a
+
 
  Python string.  This feature can be used to load or update
 
  structures into PyMOL without involving any temporary files.
 
 
 
===PYMOL API ONLY===
 
===PYMOL API ONLY===
<source lang="python">
+
<source lang="python">
  cmd.read_pdbstr( string pdb-content, string object name  
+
cmd.read_pdbstr( string pdb-content, string object name  
      [ ,int state [ ,int finish [ ,int discrete ] ] ] )
+
  [ ,int state [ ,int finish [ ,int discrete ] ] ] )
</source>
+
</source>
  
 
===NOTES===
 
===NOTES===
 +
'''state''' is a 1-based state index for the object.
 
   
 
   
  "state" is a 1-based state index for the object.
+
'''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
+
'''discrete''' is a flag (0 or 1) which tells PyMOL that there will be no overlapping atoms in the PDB files being loaded. '''discrete''' objects save memory but can not be edited.  
  performance when loading large numbers of objects, but you must
+
 
  call "finish_object" when you are done.
+
 
+
[[Category:Commands|Read Pdbstr]]
  "discrete" is a flag (0 or 1) which tells PyMOL that there will be
+
[[Category:Performance|Read Pdbstr]]
  no overlapping atoms in the PDB files being loaded. "discrete"
+
[[Category:States|Read Pdbstr]]
  objects save memory but can not be edited.  
 
 
[[Category:Commands|read_pdbstr]]
 

Revision as of 14:20, 20 June 2009

DESCRIPTION

read_pdbstr in an API-only function which reads a pdb file from a Python string. This feature can be used to load or update structures into PyMOL without involving any temporary files.

PYMOL API ONLY

cmd.read_pdbstr( string pdb-content, string object name 
   [ ,int state [ ,int finish [ ,int discrete ] ] ] )

NOTES

state is a 1-based state index for the object.

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 PDB files being loaded. discrete objects save memory but can not be edited.