21 #include <basic/Tracer.hh>
32 #include <utility/string_util.hh>
33 #include <utility/tag/Tag.hh>
35 #include <utility/vector0.hh>
36 #include <utility/vector1.hh>
40 static basic::Tracer
tr(
"protocols.simple_filters.ConservedPosMutationFilter");
43 namespace simple_filters {
47 parent(
"ConservedPosMutationFilter"),
48 conserved_pos_taskop_(new toolbox::task_operations::RestrictConservedLowDdgOperation()),
49 max_allowed_conserved_pos_mutations_(0)
76 conserved_pos_mutations++;
78 tr <<
"Pose has at least " << conserved_pos_mutations <<
" mutations at conserved positions, but only " <<
max_allowed_conserved_pos_mutations_ <<
" are allowed, returnig false..." << std::endl;
82 using namespace core::chemical;
91 if( verbose )
tr <<
"Forbidden mutations detected: " << mutstring << std::endl;
97 tr <<
"Pose has " << conserved_pos_mutations <<
" mutations at conserved positions, <= than the allowed value of " <<
max_allowed_conserved_pos_mutations_ <<
", returnig true..." << std::endl;
107 if (tag->hasOption(
"max_conserved_pos_mutations")) {