24 #include <basic/Tracer.hh>
41 #include <utility/signals/Link.hh>
44 #include <basic/options/option.hh>
45 #include <basic/options/keys/enzdes.OptionKeys.gen.hh>
46 #include <basic/options/keys/in.OptionKeys.gen.hh>
48 #include <utility/vector1.hh>
53 namespace match_enzdes_util {
55 static basic::Tracer
tr(
"protocols.enzdes.EnzdesCacheableObserver");
63 using namespace core::pose::datacache;
83 using namespace core::pose::datacache;
97 seq_recovery_cache_(NULL),
107 seq_recovery_cache_(NULL),
108 favor_native_constraints_(other.favor_native_constraints_),
109 enz_loops_file_(other.enz_loops_file_ ),
110 lig_rigid_body_confs_( other.lig_rigid_body_confs_ )
166 if( remappedcst ) new_favor_native_csts.push_back( remappedcst );
193 std::map< core::Size, utility::vector1< core::conformation::ResidueCOP > >
const &
207 for(
core::Size i = 1; i <= rg_confs.size(); ++i ){
209 res->seqpos( seqpos );
210 resvec.push_back( res );
222 std::map< core::Size, utility::vector1< core::conformation::ResidueCOP > >::iterator conf_it(
lig_rigid_body_confs_.find( seqpos ) );
261 using namespace basic::options;
263 if( option[OptionKeys::enzdes::favor_native_res].user() ) {
264 using namespace core::scoring::constraints;
266 core::Real bonus = option[OptionKeys::enzdes::favor_native_res].value();
268 tr.Info <<
"favor_native_res: adding a bonus of " << bonus <<
" for native residues to pose." << std::endl;
272 tr.Info <<
"Warning: when setting up favor native constraints, there might already be some previously generated favor_native constraints in the pose, trying to remove these first." << std::endl;
280 if( task->design_residue(i) ){
288 }
else if (option[ OptionKeys::in::file::pssm ].user() ) {
291 using namespace core;
292 using namespace scoring;
293 using namespace constraints;
294 using namespace sequence;
296 using namespace protocols;
298 tr <<
" Starting MSA design " << std::endl;
308 profile->read_from_file( filename );
309 profile->convert_profile_to_probs( 1 );
311 tr << *profile << std::endl;
331 tr.Info <<
"Warning: some of the favor native constraints that were previously added to the pose are not there anymore, something's a little unclean somewhere." << std::endl;