31 #include <basic/Tracer.hh>
32 #include <utility/tag/Tag.hh>
33 #include <utility/excn/Exceptions.hh>
34 #include <utility/vector1.hh>
37 static basic::Tracer
tr(
"protocols.forge.constraints.InvrotTreeRCG" );
41 namespace constraints{
58 return "InvrotTreeCstGenerator";
62 : RemodelConstraintGenerator(),
63 add_ligand_to_pose_( false ),
66 geomcst_seqpos_( NULL ),
67 setup_align_pose_( NULL )
71 : RemodelConstraintGenerator( rval ),
72 add_ligand_to_pose_( rval.add_ligand_to_pose_ ),
73 invrot_tree_( rval.invrot_tree_ ),
74 enzcst_io_( rval.enzcst_io_ ),
75 geomcst_seqpos_( rval.geomcst_seqpos_ ),
76 setup_align_pose_( rval.setup_align_pose_ )
83 : invrot_tree_(invrot_tree),
84 geomcst_seqpos_(geomcst_seqpos)
96 RemodelConstraintGenerator::parse_my_tag( tag, data, filters, movers, pose );
99 if ( cstfilename ==
"" ) {
100 throw utility::excn::EXCN_RosettaScriptsOption(
"XML tag for invrot tree does not contain a cstfile option... this will probably fail when the InvrotTreeCstGenerator mover runs." );
146 tr <<
"in invrottreercg" << std::endl;
149 runtime_assert(
invrot_tree_->num_target_states() == 1 );
150 Size target_state = 1;
152 tr <<
"generating inverse_rotamer_constraints" << std::endl;
154 tr <<
"done generating inverse_rotamer_constraints" << std::endl;
157 if( !cst_to_add ) utility_exit_with_message(
"InvrotTree failed to generate anything but NULL pointer csts. Something is wrong somewhere. Check your starting structure for whether it already has every interaction in the cstfile." );
173 enzcst_io->read_enzyme_cstfile( cstfilename );
201 vlb()->loop_mover_fold_tree_constant(
true );