Back to Mover page.

Constraint Generators

Constraint Generators are a method for automatically making and removing constraints, based on the current structure of the pose.

The AddConstraintsMover can take a Constraint Generator and add constraints to the pose, and the RemoveConstraintsMover will remove constraints added by the AddConstraintsMover.

See the RosettaScripts Mover page for a current listing of valid Constraint Generators.


This example adds and removes distance constraints to sheet residues only, and uses the pose specified by -in:file:native to obtain the coordinates.

    <SecondaryStructureSelector name="sheet" ss="E" use_dssp="1" />
    <AddConstraints name="add_csts" >
        <AtomPairConstraintGenerator name="gen_my_csts"
            residue_selector="sheet" native="1" />
    <RemoveConstraints name="rm_csts" constraint_generators="gen_my_csts" />
    <Add mover="add_csts" />
    <!-- do things with constraints -->
    <Add mover="rm_csts" />

See Also