29 #include <basic/Tracer.hh>
33 #include <utility/vector1.hh>
38 namespace interaction_graph {
40 bool const debug = {
false };
41 static basic::Tracer
T(
"core.pack.interaction_graph.otf_ig", basic::t_error );
53 rotamers_( num_states ),
54 sc_bounding_spheres_( num_states, std::make_pair(
Vector( 0.0 ),
Real( 0.0 ) ) ),
55 bb_bounding_sphere_( std::make_pair(
Vector( 0.0 ),
Real( 0.0 ) )),
56 num_aa_types_( get_on_the_fly_owner()->get_num_aatypes() ),
57 num_states_for_aatype_( num_aa_types_, 0 ),
58 state_offset_for_aatype_( num_aa_types_, 0 ),
59 sparse_mat_info_for_state_( num_states ),
60 one_body_energies_( num_states, 0.0 ),
61 distinguish_backbone_and_sidechain_( false )
78 for (
Size ii = 1; ii <= rotamer_set_->num_rotamers(); ++ii ) {
79 rotamers_[ ii ] = rotamer_set_->rotamer( ii );
89 Size curr_restype = 1;
90 Size count_for_restype = 1;
99 while ( count_for_restype > rotamers->get_n_rotamers_for_residue_group( curr_restype )) {
102 count_for_restype = 1;
103 if ( curr_restype > num_aa_types_ )
break;
113 utility_exit_with_message(
"ERROR:: Must set distinguish_backbone_and_sidechain before adding edges" );
181 int edge_making_energy_request,
186 using namespace scoring;
187 using namespace scoring::methods;
310 iter != iter_end; ++iter ) {
311 (*iter)->residue_pair_energy(
355 FixedBBEdge( owner, first_node_ind, second_node_ind ),
356 long_range_interactions_exist_( false ),
357 short_range_interactions_exist_( false )
359 bool distinguish_sc_bb[ 2 ];
360 for (
int ii = 0; ii < 2; ++ii) {
366 if ( distinguish_sc_bb[ 0 ] && distinguish_sc_bb[ 1 ] ) {
368 }
else if ( ! distinguish_sc_bb[ 0 ] && distinguish_sc_bb[ 1 ] ) {
371 }
else if ( distinguish_sc_bb[ 0 ] && ! distinguish_sc_bb[ 1 ] ) {
384 int node_not_necessarily_proline,
395 sc_probb_E + 0.5 * bb_probb_E -
396 (sc_nonprobb_E + 0.5 * bb_nonprobb_E);
408 return total_memory_usage;
443 Size max_nresgroups = 0;
446 if ( ii_nresgroups > max_nresgroups ) max_nresgroups = ii_nresgroups;
466 if (
pose_ ) (*score_function_)(*pose_);
530 FArray2_bool
const & sparse_conn_info
543 int node_not_neccessarily_proline,
555 node_not_neccessarily_proline, state,
556 bb_nonprobb_E, bb_probb_E, sc_nonprobb_E, sc_probb_E );