Back to TaskOperations page.
TaskOperation
to prohibit ResidueType
s with the given properties from the palette.
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;)" />
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 ResidueType
s forbidden (by full base name).
ProhibitSpecifiedBaseResidueTypes::set_selector()
— Pass a ResidueSelector
to specificy to which residue(s) the list of prohibited ResidueType
s applies. If no ResidueSelector
is specified, Rosetta assumes that this TaskOperation
applies to all residues in the Pose
.