Back to TaskOperations page.

TaskOperation to restrict the palette of ResidueTypes to those with the given properties.

Usage

RosettaScripts

Autogenerated Tag Syntax Documentation:


Restrict the palette of ResidueTypes to those with the given properties.

<RestrictToResidueProperties name="(&string;)" properties="(&string_cslist;)"
        selector="(&string;)" />
  • properties: A comma-separated list of ResidueProperties, all of which must be present in a ResidueType to design with it.
  • selector: If provided, the TaskOperation will apply to the subset of residues specified. If not provided, the TaskOperation will apply to all residues in the Pose.

C++

The following code is used to create a PackerTask in which residue 2 is limited to only hydrophobic residues.

ResidueIndexSelectorOP selector( make_shared< ResidueIndexSelector >() );
selector->set_index( "2" );

operation::RestrictToResiduePropertiesOP task_op(
    make_shared< operation::RestrictToResidueProperties >(
    vector1< ResidueProperty >( { HYDROPHOBIC } ), selector ) );

TaskFactory tf;
tf.push_back( task_op );

PackerTaskOP task( tf.create_task_and_apply_taskoperations( pose ) );

RestrictToResidueProperties::set_properties() — Pass a vector of ResiduePropertys with which to restrict design. RestrictToResidueProperties::set_selector() — Pass a ResidueSelector to specificy to which residue(s) the list of allowed ResiduePropertys applies. If no ResidueSelector is specified, Rosetta assumes that this TaskOperation applies to all residues in the Pose.

See Also