next up previous contents index
Next: Symmetry restraints Up: Spatial restraints Previous: Excluded pairs   Contents   Index

Rigid bodies

You can mark groups of atoms as belonging to a rigid body. They will be moved together during optimization, such that their relative orientations do not change. These are created by making a rigid_body object and adding it to the restraints.rigid_bodies list.

Creates a new rigid body which contains all of the specified atoms.

Example: examples/python/

from modeller import *

env = environ() = '../commands'
mdl = model(env, file='1fas')

# Keep residues 1-10 rigid:
r = rigid_body(mdl.residue_range('1:', '10:'))

# Randomize the coordinates of the whole model; the rigid body remains rigid
sel = selection(mdl)

Ben Webb 2007-01-19