Difference between revisions of "Get Pdbstr"

From PyMOLWiki
Jump to navigation Jump to search
 
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
===DESCRIPTION===
+
 
  "get_pdbstr" in an API-only function which returns a pdb
+
'''get_pdbstr''' is an API-only function which returns a pdb corresponding to the atoms in the selection provided and that are present in the indicated state
  corresponding to the atoms in the selection provided and that are
+
 
  present in the indicated state
 
 
 
===PYMOL API ONLY===
 
===PYMOL API ONLY===
+
<source lang="python">
  cmd.get_pdbstr( string selection="all", int state=0 )
+
cmd.get_pdbstr( string selection="all", int state=0 )
+
</source>
===NOTES===
+
 
    "state" is a 1-based state index for the object.
+
====NOTES====
+
#'''state''' is a 1-based state index for the object.
  if state is zero, then current state is used.  
+
#if state is zero, then current state is used.  
 +
 
 +
===EXAMPLES===
 +
The following example lists the residues in the selection called, '''near'''.
 +
<source lang="python">
 +
import cmd # -- if required
 +
select near, sel01 around 6
 +
cmd.get_pdbstr("near")
 +
</source>
  
[[Category:Commands|get_pdbstr]]
+
[[Category:Commands|Get Pdbstr]]
 +
[[Category:States|Get Pdbstr]]

Latest revision as of 14:30, 17 November 2009

get_pdbstr is an API-only function which returns a pdb corresponding to the atoms in the selection provided and that are present in the indicated state

PYMOL API ONLY

cmd.get_pdbstr( string selection="all", int state=0 )

NOTES

  1. state is a 1-based state index for the object.
  2. if state is zero, then current state is used.

EXAMPLES

The following example lists the residues in the selection called, near.

import cmd # -- if required
select near, sel01 around 6
cmd.get_pdbstr("near")