![]() |
Rosetta Protocols
2014.35
|
#include <FlexbbInteractionGraph.hh>
Public Member Functions | |
virtual | ~FlexbbInteractionGraph () |
GRAPH. More... | |
FlexbbInteractionGraph (int num_nodes) | |
virtual void | initialize (core::pack::rotamer_set::RotamerSetsBase const &rot_sets) |
int | get_num_aa_types () const |
utility::vector1< Size > const & | flexseg_members (int flexseg) const |
int | get_flexseg_for_bb (int bb) const |
int | get_flexseg_bb_offset (int flexseg_id) const |
bool | nodes_from_same_flexseg (int node1, int node2) const |
int | get_num_states_per_backbone_for_node (int node, int bb) const |
int | get_bb_for_state (int node, int state) const |
virtual void | consider_backbone_move (int bb_id, core::PackerEnergy &delta_energy, core::PackerEnergy &prev_flexseg_energy, bool &valid_motion, int &num_nodes_changing_state)=0 |
virtual void | consider_bbmove_w_state_substitution (int node_ind, int new_state, core::PackerEnergy &delta_energy, core::PackerEnergy &prev_energy_for_flexseg, bool &valid_motion, int &num_nodes_changing_state)=0 |
virtual PackerEnergy | commit_considered_backbone_move (ObjexxFCL::FArray1_int &rotamer_on_node)=0 |
void | get_accessible_states (Subsitution move_mode, utility::vector1< Size > &rotlist) const |
void | get_backbone_list (utility::vector1< Size > &bblist) const |
bool | get_backbone_currently_assigned (int bbid) const |
Is the backbone conformation (in the global enumertion of backbone conformations) already assigned to the network? False if any residue on the flexible segment that this bbid corresponds to is assigned state 0. More... | |
bool | get_enforce_bb_contiguity () const |
FlexbbNodes will ask: am I allowed to have a state that breaks the backbone? There are brief periods when the backbone is "broken" as the graph assigns new states to nodes on the same flexible segment. More... | |
void | increment_count_nodes_in_flexseg () |
Owner keeps a count of the number of nodes undergoing a simultaneous rotamer substitution as the backbone moves. More... | |
virtual unsigned int | count_dynamic_memory () const |
Private Member Functions | |
void | set_num_flexsegs (int num_flexsegs) |
Private functions called during initialize() More... | |
void | set_total_num_backbones (int num_backbones) |
void | set_num_bb_for_node (int node, int numbb) |
void | set_num_states_per_backbone_for_node (int node, utility::vector1< int > const &states_per_bb) |
void | set_aatypes_for_node (int node_ind, utility::vector1< int > const &aatypes) |
void | set_closest_states_on_other_bbs (int node_index, ObjexxFCL::FArray2D_int const &) |
FlexbbInteractionGraph () | |
FlexbbInteractionGraph (FlexbbInteractionGraph const &) | |
Static Private Attributes | |
static const int | COMMIT_LIMIT_BETWEEN_UPDATES = 20 |
typedef core::pack::interaction_graph::EdgeBase protocols::flexpack::interaction_graph::FlexbbInteractionGraph::EdgeBase |
typedef core::PackerEnergy protocols::flexpack::interaction_graph::FlexbbInteractionGraph::PackerEnergy |
typedef core::pack::interaction_graph::InteractionGraphBase protocols::flexpack::interaction_graph::FlexbbInteractionGraph::parent |
|
virtual |
GRAPH.
protocols::flexpack::interaction_graph::FlexbbInteractionGraph::FlexbbInteractionGraph | ( | int | num_nodes | ) |
|
private |
|
private |
|
inlineprotected |
Referenced by update_internal_energy_totals().
|
inlineprotected |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
virtual |
Reimplemented in protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph, and protocols::flexpack::interaction_graph::OTFFlexbbInteractionGraph.
References flexseg_bb_offset_, flexseg_for_bb_, flexseg_members_, num_bb_alternatives_for_flexseg_, and protocols::analysis::total.
Referenced by protocols::flexpack::interaction_graph::OTFFlexbbInteractionGraph::count_dynamic_memory().
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Only allowed to ask for the flexible segment considering an alternate backbone conformation during a backbone-moving substitution.
References flexseg_considering_alt_bb_.
Referenced by protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::commit_considered_backbone_move(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::complete_deltaE_prediction_for_bbmove(), and protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::resolve_uncommitted_substitution().
|
inline |
References flexseg_members_.
Referenced by protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::commit_considered_backbone_move(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::complete_deltaE_prediction_for_bbmove(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::consider_backbone_move(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::consider_bbmove_w_state_substitution(), and protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::resolve_uncommitted_substitution().
void protocols::flexpack::interaction_graph::FlexbbInteractionGraph::get_accessible_states | ( | Subsitution | move_mode, |
utility::vector1< Size > & | rotlist | ||
) | const |
bool protocols::flexpack::interaction_graph::FlexbbInteractionGraph::get_backbone_currently_assigned | ( | int | bbid | ) | const |
Is the backbone conformation (in the global enumertion of backbone conformations) already assigned to the network? False if any residue on the flexible segment that this bbid corresponds to is assigned state 0.
References flexseg_for_bb_, flexseg_members_, protocols::flexpack::interaction_graph::FlexbbNode::get_backbone_for_current_state(), and get_flexbb_node().
void protocols::flexpack::interaction_graph::FlexbbInteractionGraph::get_backbone_list | ( | utility::vector1< Size > & | bblist | ) | const |
References num_total_bb_.
bool protocols::flexpack::interaction_graph::FlexbbInteractionGraph::get_enforce_bb_contiguity | ( | ) | const |
FlexbbNodes will ask: am I allowed to have a state that breaks the backbone? There are brief periods when the backbone is "broken" as the graph assigns new states to nodes on the same flexible segment.
References enforce_bb_contiguity_.
|
inlineprotected |
Downcasts.
Referenced by protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::consider_backbone_move(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::consider_bbmove_w_state_substitution(), get_accessible_states(), get_backbone_currently_assigned(), get_bb_for_state(), get_num_states_per_backbone_for_node(), initialize(), set_aatypes_for_node(), set_closest_states_on_other_bbs(), set_num_bb_for_node(), set_num_states_per_backbone_for_node(), and update_internal_energy_totals().
|
inlineprotected |
|
inline |
References num_aa_types_.
|
protected |
void protocols::flexpack::interaction_graph::FlexbbInteractionGraph::increment_count_nodes_in_flexseg | ( | ) |
Owner keeps a count of the number of nodes undergoing a simultaneous rotamer substitution as the backbone moves.
I don't remember what this is for... prev: increment_count_nodes_in_moving_fragment.
References num_nodes_changing_state_.
Referenced by protocols::flexpack::interaction_graph::FlexbbNode::inform_edges_of_alt_state_before_bbjump().
|
virtual |
Reimplemented in protocols::flexpack::interaction_graph::OTFFlexbbInteractionGraph, and protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph.
References numeric::xyzVector< class >::distance_squared(), flexseg_bb_offset_, flexseg_for_bb_, flexseg_for_moltenres_, flexseg_members_, protocols::flexpack::rotamer_set::FlexbbRotamerSets::flexsegid_for_moltenres(), protocols::flexpack::rotamer_set::FlexbbRotamerSets::flexsegment_start_moltenresid(), protocols::flexpack::rotamer_set::FlexbbRotamerSets::flexsegment_stop_moltenresid(), get_flexbb_node(), protocols::flexpack::interaction_graph::FlexbbNode::get_num_states_for_bb(), protocols::flexpack::rotamer_set::FlexbbRotamerSets::local_rotid_start_for_moltenres_in_bbconf(), core::conformation::Residue::name(), core::conformation::Residue::natoms(), protocols::flexpack::rotamer_set::FlexbbRotamerSets::nbackbone_conformations(), protocols::flexpack::rotamer_set::FlexbbRotamerSets::nbbconfs_for_moltenres(), protocols::flexpack::rotamer_set::FlexbbRotamerSets::nflexible_segments(), protocols::flexpack::rotamer_set::FlexbbRotamerSets::nmoltenres(), nn, protocols::flexpack::rotamer_set::FlexbbRotamerSets::nrotamers_for_moltenres(), num_aa_types_, num_bb_alternatives_for_flexseg_, num_flexible_segments_, protocols::flexpack::rotamer_set::FlexbbRotamerSets::num_states_per_backbone_for_moltenres(), num_total_bb_, protocols::flexpack::rotamer_set::FlexbbRotamerSets::rotset_for_moltenres(), set_aatypes_for_node(), protocols::flexpack::interaction_graph::FlexbbNode::set_closest_states_on_other_bbs(), protocols::flexpack::interaction_graph::FlexbbNode::set_num_distinct_backbones(), set_num_flexsegs(), protocols::flexpack::interaction_graph::FlexbbNode::set_num_states_per_backbone(), set_total_num_backbones(), and core::conformation::Residue::xyz().
Referenced by protocols::flexpack::interaction_graph::OTFFlexbbInteractionGraph::initialize().
|
inlineprotected |
References last_considered_backbone_sub_unresolved_.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
References last_considered_backbone_sub_unresolved_, and last_considered_fixedbb_sub_unresolved_.
Referenced by protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::consider_backbone_move(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::consider_bbmove_w_state_substitution(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::consider_substitution(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::resolve_uncommitted_substitution(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::set_network_state(), and protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::set_state_for_node().
|
inlineprotected |
Only allowed to ask for the node considering an alternate state during a fixed-backbone substitution.
References node_considering_alt_state_.
Referenced by protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::commit_considered_backbone_move(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::commit_considered_substitution(), and protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::resolve_uncommitted_substitution().
bool protocols::flexpack::interaction_graph::FlexbbInteractionGraph::nodes_from_same_flexseg | ( | int | node1, |
int | node2 | ||
) | const |
References flexseg_for_moltenres_.
|
inlineprotected |
|
inlineprotected |
|
protected |
References last_considered_backbone_sub_unresolved_.
Referenced by protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::blanket_assign_state_0(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::commit_considered_backbone_move(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::commit_considered_substitution(), and protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::resolve_uncommitted_substitution().
|
protected |
at the beginning of backbone-changing substitutions, derived classes must invoke this function to get a proper count of the number of nodes undergoing a simultaneous rotamer substitution
References num_nodes_changing_state_.
Referenced by protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::consider_backbone_move(), and protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::consider_bbmove_w_state_substitution().
|
private |
References get_flexbb_node(), and protocols::flexpack::interaction_graph::FlexbbNode::set_amino_acid_types().
Referenced by initialize().
|
private |
|
protected |
References enforce_bb_contiguity_.
|
inlineprotected |
Track the last flexible segment at which a moving-backbone substitution took place.
References flexseg_considering_alt_bb_, and node_considering_alt_state_.
Referenced by protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::consider_backbone_move(), and protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::consider_bbmove_w_state_substitution().
|
inlineprotected |
|
inlineprotected |
Track the last node at which a fixed-backbone substitution took place.
References flexseg_considering_alt_bb_, and node_considering_alt_state_.
Referenced by protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::blanket_assign_state_0(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::consider_substitution(), and protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::set_state_for_node().
|
private |
Only call once. – depricated!
Must include initial backbone as well all the alternative backbones.
References get_flexbb_node(), and protocols::flexpack::interaction_graph::FlexbbNode::set_num_distinct_backbones().
|
private |
Private functions called during initialize()
References flexseg_bb_offset_, flexseg_members_, num_bb_alternatives_for_flexseg_, and num_flexible_segments_.
Referenced by initialize().
|
private |
|
inlineprotected |
|
protected |
References COMMIT_LIMIT_BETWEEN_UPDATES, num_commits_since_last_update_, total_energy_current_state_assignment_, and update_internal_energy_totals().
Referenced by protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::blanket_assign_state_0(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::commit_considered_backbone_move(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::commit_considered_substitution(), and protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::set_state_for_node().
|
private |
References flexseg_bb_offset_, flexseg_for_bb_, and num_total_bb_.
Referenced by initialize().
|
inlineprotected |
|
inlineprotected |
References total_energy_current_state_assignment_.
Referenced by protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::commit_considered_backbone_move(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::commit_considered_substitution(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::complete_deltaE_prediction_for_bbmove(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::consider_substitution(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::get_energy_current_state_assignment(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::set_network_state(), and protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::set_state_for_node().
|
protectedvirtual |
References cast_flexbb_edge(), protocols::flexpack::interaction_graph::FlexbbEdge::cur_energy(), protocols::flexpack::interaction_graph::FlexbbNode::curr_state_one_body_energy(), get_flexbb_node(), num_commits_since_last_update_, total_energy_current_state_assignment_, and protocols::flexpack::interaction_graph::FlexbbNode::update_internal_energy_sums().
Referenced by protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::set_network_state(), protocols::flexpack::interaction_graph::MinimalistFlexbbInteractionGraph::set_state_for_node(), and set_total_energy_current_state_assignment().
|
staticprivate |
Referenced by set_total_energy_current_state_assignment().
|
private |
Referenced by get_enforce_bb_contiguity(), and set_enforce_bb_contiguity().
|
private |
Referenced by count_dynamic_memory(), get_flexseg_bb_offset(), initialize(), set_num_flexsegs(), and set_total_num_backbones().
|
private |
Referenced by flexseg_considering_alt_bb(), set_flexseg_considering_alt_bb(), and set_node_considering_alt_state().
|
private |
|
private |
Referenced by flexseg_for_moltenres(), initialize(), and nodes_from_same_flexseg().
|
private |
Referenced by count_dynamic_memory(), flexseg_members(), get_backbone_currently_assigned(), initialize(), and set_num_flexsegs().
|
private |
|
private |
Referenced by last_considered_backbone_sub_valid(), and set_last_considered_backbone_sub_valid().
|
private |
Referenced by last_considered_substitution_unresolved(), and note_fixedbb_substitution().
|
private |
|
private |
Referenced by node_considering_alt_state(), set_flexseg_considering_alt_bb(), and set_node_considering_alt_state().
|
private |
Referenced by get_num_aa_types(), and initialize().
|
private |
Referenced by count_dynamic_memory(), initialize(), and set_num_flexsegs().
|
private |
Referenced by set_total_energy_current_state_assignment(), and update_internal_energy_totals().
|
private |
Referenced by initialize(), and set_num_flexsegs().
|
private |
|
private |
Referenced by get_backbone_list(), initialize(), and set_total_num_backbones().
|
private |
|
private |