This is a read-only mirror of pymolwiki.org

Difference between revisions of "Set Symmetry"

From PyMOL Wiki
Jump to navigation Jump to search
 
m
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
===DESCRIPTION===
 
===DESCRIPTION===
+
'''set_symmetry''' can be used to define or redefine the crystal and spacegroup parameters for a molecule or map object.
  "set_symmetry" can be used to define or redefine the crystal
+
 
  and spacegroup parameters for a molecule or map object.
 
 
 
===USAGE===
 
===USAGE===
   
+
  set_symmetry selection, a, b, c, alpha, beta, gamma, spacegroup
  set_symmetry selection, a, b, c, alpha, beta, gamma, spacegroup
+
 
 
 
===PYMOL API===
 
===PYMOL API===
<source lang="python">
+
<source lang="python">
  cmd.set_symmetry(string selection, float a, float b, float c,
+
cmd.set_symmetry(string selection, float a, float b, float c,
        float alpha,float beta, float gamma, string spacegroup)
+
    float alpha,float beta, float gamma, string spacegroup)
</source>
+
</source>
 +
 
 +
=== Example ===
 +
<source lang="python">
 +
# PyMOL command lnie
 +
set_symmetry 1a2p, 60, 60, 80, 90, 90, 120, P6122
 +
 
 +
# API
 +
cmd.set_symmetry("1a2p", 60, 60, 80, 90, 90, 120, spacegroup="P6122")
 +
</source>
  
 
===NOTES===
 
===NOTES===
+
The new symmetry will be defined for every object referenced by the selection.
  The new symmetry will be defined for every object referenced
 
  by the selection  
 
 
  
[[Category:Commands|set_symmetry]]
+
[[Category:Commands|Set Symmetry]]

Revision as of 14:26, 20 June 2009

DESCRIPTION

set_symmetry can be used to define or redefine the crystal and spacegroup parameters for a molecule or map object.

USAGE

set_symmetry selection, a, b, c, alpha, beta, gamma, spacegroup

PYMOL API

cmd.set_symmetry(string selection, float a, float b, float c,
     float alpha,float beta, float gamma, string spacegroup)

Example

# PyMOL command lnie
set_symmetry 1a2p, 60, 60, 80, 90, 90, 120, P6122

# API
cmd.set_symmetry("1a2p", 60, 60, 80, 90, 90, 120, spacegroup="P6122")

NOTES

The new symmetry will be defined for every object referenced by the selection.