Back to TaskOperations page.

TaskOperation to prohibit ResidueTypes with the given properties from the palette.

Usage

RosettaScripts

Autogenerated Tag Syntax Documentation:


Prohibit the base ResidueTypes provided by name from the palette of ResidueTypes.

<ProhibitSpecifiedBaseResidueTypes name="(&string;)"
        base_types="(&string_cslist;)" selector="(&string;)" />
  • base_types: A comma-separated list of ResidueTypes (by full base name).
  • 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 designing to a histidine residue.

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

operation::ProhibitSpecifiedBaseResidueTypesOP task_op(
    make_shared< operation::ProhibitSpecifiedBaseResidueTypes >(
		utility::vector1< std::string >( { "HIS", "HIS_D" } ), selector ) );

TaskFactory tf;
tf.push_back( task_op );

PackerTaskOP task( tf.create_task_and_apply_taskoperations( pose ) );

ProhibitSpecifiedBaseResidueTypes::set_base_types() — Pass a vector of strings to set the list of base ResidueTypes forbidden (by full base name). ProhibitSpecifiedBaseResidueTypes::set_selector() — Pass a ResidueSelector to specificy to which residue(s) the list of prohibited ResidueTypes applies. If no ResidueSelector is specified, Rosetta assumes that this TaskOperation applies to all residues in the Pose.

See Also