31 #include <utility/vector1_bool.hh>
32 #include <utility/vector1.hh>
34 #include <basic/Tracer.hh>
35 #include <utility/string_util.hh>
36 #include <utility/tag/Tag.hh>
41 #include <utility/vector0.hh>
46 static basic::Tracer
TR(
"protocols.toolbox.TaskOperations.RestrictToInterfaceVectorOperation" );
50 namespace task_operations {
56 CB_dist_cutoff_( 11.0 ),
57 nearby_atom_cutoff_( 5.5 ),
58 vector_angle_cutoff_( 75.0 ),
59 vector_dist_cutoff_( 9.0 )
72 CB_dist_cutoff_( 11.0 ),
73 nearby_atom_cutoff_( 5.5 ),
74 vector_angle_cutoff_( 75.0 ),
75 vector_dist_cutoff_( 9.0 )
93 CB_dist_cutoff_( CB_dist_cutoff ),
94 nearby_atom_cutoff_( nearby_atom_cutoff ),
95 vector_angle_cutoff_( vector_angle_cutoff ),
96 vector_dist_cutoff_( vector_dist_cutoff )
107 CB_dist_cutoff_( 11.0 ),
108 nearby_atom_cutoff_( 5.5 ),
109 vector_angle_cutoff_( 75.0 ),
110 vector_dist_cutoff_( 9.0 )
115 utility::vector1_int
const movable_jumps ,
123 CB_dist_cutoff_( CB_dist_cutoff ),
124 nearby_atom_cutoff_( nearby_atom_cutoff ),
125 vector_angle_cutoff_( vector_angle_cutoff ),
126 vector_dist_cutoff_( vector_dist_cutoff )
154 utility::vector1_bool repack_full(pose.
total_residue(),
false);
158 utility::vector1_bool repack =
167 for(
core::Size ii = 1; ii <= repack.size(); ++ii){
169 repack_full[ii] =
true;
177 utility::vector1_bool repack_full(pose.
total_residue(),
false);
182 core::Size current_lower_chain = *lower_chain_it;
187 core::Size current_upper_chain = *upper_chain_it;
188 TR.Debug <<
"calculating_interface between: " << current_lower_chain <<
" " << current_upper_chain <<std::endl;
189 utility::vector1_bool repack =
191 current_lower_chain, current_upper_chain,
196 for(
core::Size ii = 1; ii <=repack.size(); ++ii)
200 repack_full[ii] =
true;
279 if( ( tag->hasOption(
"chain1_num" ) || tag->hasOption(
"chain2_num" ) ) && tag->hasOption(
"jump" ) )
280 utility_exit_with_message(
"You can't define chains and jumps" );
282 if( tag->hasOption(
"chain1_num" ) && tag->hasOption(
"chain2_num" ) ){
292 else if( tag->hasOption(
"jump") )
296 utility::vector1_int jump_vector(0);
300 int this_jump(std::atoi( it->c_str() ) );
301 jump_vector.push_back( this_jump );
303 TR <<
"Adding jump: " << this_jump <<
", ";
306 assert( jump_vector.size() > 0 );
312 utility_exit_with_message(
"Need to define either jump OR (chain1_num AND chain2_num)" );