Back to TaskOperations page.

TaskOperation to prohibit the palette of ResidueTypes from using those with any of the given properties.

Usage

RosettaScripts

Autogenerated Tag Syntax Documentation:


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

<ProhibitResidueProperties name="(&string;)" properties="(&string_cslist;)"
        selector="(&string;)" />
  • properties: A comma-separated list of ResidueProperties, none of which may 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 prohibited from using residues with a side-chain thiol functionality.

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

operation::ProhibitResiduePropertiesOP task_op(
    make_shared< operation::ProhibitResidueProperties >(
		vector1< ResidueProperty >( { SIDECHAIN_THIOL } ), selector ) );

TaskFactory tf;
tf.push_back( task_op );

PackerTaskOP task( tf.create_task_and_apply_taskoperations( pose ) );

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

See Also