Set Symmetry: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
mNo edit summary
m (fix typo)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
===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.


Line 13: Line 13:
=== Example ===
=== Example ===
<source lang="python">
<source lang="python">
# PyMOL command lnie
# PyMOL command line
set_symmetry 1a2p, 60, 60, 80, 90, 90, 120, P6122
set_symmetry 1a2p, 60, 60, 80, 90, 90, 120, P6122



Latest revision as of 16:25, 13 March 2019

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