21 #include <basic/options/option.hh>
25 #include <basic/Tracer.hh>
34 #include <basic/options/keys/packing.OptionKeys.gen.hh>
36 #include <utility/vector1.hh>
44 namespace rotamer_set {
47 static basic::Tracer
TR(
"core.pack.rotamer_set.UnboundRotamersOperation");
83 using namespace basic::options;
84 if( !option[ OptionKeys::packing::unboundrot ].active() )
return;
85 for(
Size i = 1; i <= option[ OptionKeys::packing::unboundrot ]().
size(); ++i) {
87 TR <<
"Adding 'unbound' rotamers from " << filename << std::endl;
116 newrsd->chain( existing.
chain() );
117 newrsd->seqpos( existing.
seqpos() );
118 newrsd->copy_residue_connections_from( existing );
140 bool type_is_allowed =
false;
142 j_end = rtask.allowed_residue_types_end(); j != j_end; ++j)
144 if( restype.
name() == (**j).name() ) {
145 type_is_allowed =
true;
149 if( type_is_allowed ) {
150 TR.Debug <<
"Adding 'unbound' rotamer at position " << seqnum << std::endl;
155 TR.Debug <<
"Residue names do not match. Skipping 'unbound' rotamer at position " << seqnum << std::endl;