Rosetta
|
A simple graph class for calculating pairwise decomposable energies as sidechains are moving on a fixed backbone. This class is responsible for calculating energy changes, but is passive about how the sidechains are changing. There are two main ways to drive the graph: one where the graph ACTIVELY takes charge of updating pointers to the sidechains, where, each external change of one pointer triggers an update to the energies; and a second, where the graph is PASSIVE wrt the pointers, and they must be maintained by an external driver. More...
#include <NPDHBSimpleInteractionGraph.hh>
Public Types | |
typedef SimpleInteractionGraph | parent |
Public Member Functions | |
NPDHBSimpleInteractionGraph () | |
~NPDHBSimpleInteractionGraph () override | |
void | set_scorefunction (scoring::ScoreFunction const &sfxn) override |
void | initialize (pose::Pose const &pose) override |
Initialization where the graph adds its own edges. More... | |
void | set_pose_no_initialize (pose::Pose const &pose) override |
Initialize the graph so that all nodes take their current state from the input Pose – this does not add any edges to the graph. More... | |
void | setup_after_edge_addition () override |
If set_pose_no_initialize was called, then after edges have been added. This function will also do any bookkeeping necessary before the start of simulated annealing. More... | |
void | commit_change (Size node_id) override |
void | reject_change (Size node_id, conformation::ResidueCOP res, basic::datacache::BasicDataCache &residue_data_cache) override |
scoring::hbonds::HBondDatabase const & | hbond_database () const |
scoring::hbonds::HBondOptions const & | hbond_options () const |
scoring::hbonds::NPDHBondSet const & | npd_hbond_set () const |
Real | consider_substitution (Size node_id, conformation::ResidueCOP new_state, basic::datacache::BasicDataCache &residue_data_cache) override |
Real | total_energy () override |
utility::vector1< char > & | hbonding_to_res () |
NPDHBondOP | unused_hbond () |
void | return_hbond_to_queue (NPDHBondOP const &hbond) |
Real | npd_hb_weight (scoring::hbonds::HBEvalType eval_type, bool intra_res) |
Size | count_static_memory () const override |
Size | count_dynamic_memory () const override |
void | delete_edge (utility::graph::Edge *) override |
NPDHBSimpleNode * | get_npdhb_simple_node (Size ind) |
NPDHBSimpleNode const * | get_npdhb_simple_node (Size ind) const |
![]() | |
SimpleInteractionGraph () | |
~SimpleInteractionGraph () override | |
scoring::ScoreFunction const & | scorefunction () const |
std::list< scoring::methods::EnergyMethodCOP > const & | setup_for_scoring_for_residue_energy_methods () |
pose::Pose const & | pose () const |
pose::PoseCOP | pose_cop () const |
virtual void | initialize (pose::Pose const &pose, task::PackerTaskCOP task) |
Initialization where the graph creates a packer-neighbor graph from the input packer task so that edges between residues that might become larger than they are in the input Pose (e.g., GLY --> ARG mutation) can be added to the graph. More... | |
Size | count_static_memory () const override |
Size | count_dynamic_memory () const override |
void | delete_edge (utility::graph::Edge *) override |
SimpleNode * | get_simple_node (Size ind) |
SimpleNode const * | get_simple_node (Size ind) const |
conformation::ResidueCOP | get_current_for_node (Size id) const |
conformation::ResidueCOP | get_alternate_for_node (Size id) const |
Protected Member Functions | |
utility::graph::Node * | create_new_node (Size node_index) override |
utility::graph::Edge * | create_new_edge (Size index1, platform::Size index2) override |
NPDHBSimpleNode * | npdhb_cast (utility::graph::Node *) |
NPDHBSimpleNode const * | npdhb_cast (utility::graph::Node const *) const |
![]() | |
utility::graph::Node * | create_new_node (Size node_index) override |
utility::graph::Edge * | create_new_edge (Size index1, platform::Size index2) override |
Private Attributes | |
scoring::hbonds::HBondDatabaseCOP | hbond_database_ |
scoring::hbonds::HBondOptionsCOP | hbond_options_ |
scoring::hbonds::NPDHBondSetCOP | npd_hbond_set_ |
Real | npd_hbond_weight_ |
utility::vector1< char > | hbonding_to_res_ |
std::list< NPDHBondOP > | hbonds_queue_ |
A simple graph class for calculating pairwise decomposable energies as sidechains are moving on a fixed backbone. This class is responsible for calculating energy changes, but is passive about how the sidechains are changing. There are two main ways to drive the graph: one where the graph ACTIVELY takes charge of updating pointers to the sidechains, where, each external change of one pointer triggers an update to the energies; and a second, where the graph is PASSIVE wrt the pointers, and they must be maintained by an external driver.
core::pack::interaction_graph::NPDHBSimpleInteractionGraph::NPDHBSimpleInteractionGraph | ( | ) |
|
overridedefault |
|
overridevirtual |
Reimplemented from core::pack::interaction_graph::SimpleInteractionGraph.
|
overridevirtual |
Note, this function returns (currE - altE) which represents the negative of the change in energy for the substition
Reimplemented from core::pack::interaction_graph::SimpleInteractionGraph.
References core::pack::interaction_graph::SimpleInteractionGraph::consider_substitution(), and core::pack::interaction_graph::NPDHBSimpleNode::get_npdhb_deltaE_for_substitution().
|
inlineoverride |
|
inlineoverride |
|
overrideprotected |
|
overrideprotected |
|
override |
|
inline |
Referenced by total_energy().
|
inline |
scoring::hbonds::HBondDatabase const & core::pack::interaction_graph::NPDHBSimpleInteractionGraph::hbond_database | ( | ) | const |
References hbond_database_.
Referenced by core::pack::interaction_graph::NPDHBSimpleNode::find_curr_hbonds_to_upper_neighbors(), core::pack::interaction_graph::NPDHBSimpleNode::find_hbs_for_nbrs_alt_state_step1(), and core::pack::interaction_graph::NPDHBSimpleNode::get_npdhb_deltaE_for_substitution().
scoring::hbonds::HBondOptions const & core::pack::interaction_graph::NPDHBSimpleInteractionGraph::hbond_options | ( | ) | const |
References hbond_options_.
Referenced by core::pack::interaction_graph::NPDHBSimpleNode::find_curr_hbonds_to_upper_neighbors(), core::pack::interaction_graph::NPDHBSimpleNode::find_hbs_for_nbrs_alt_state_step1(), and core::pack::interaction_graph::NPDHBSimpleNode::get_npdhb_deltaE_for_substitution().
utility::vector1< char > & core::pack::interaction_graph::NPDHBSimpleInteractionGraph::hbonding_to_res | ( | ) |
References hbonding_to_res_.
Referenced by core::pack::interaction_graph::NPDHBSimpleNode::find_curr_hbonds_to_upper_neighbors(), core::pack::interaction_graph::NPDHBSimpleNode::find_hbs_for_nbrs_alt_state_step1(), and core::pack::interaction_graph::NPDHBSimpleNode::find_hbs_for_nbrs_alt_state_step2().
|
overridevirtual |
Initialization where the graph adds its own edges.
Reimplemented from core::pack::interaction_graph::SimpleInteractionGraph.
References hbonding_to_res_, core::pack::interaction_graph::SimpleInteractionGraph::initialize(), core::pack::interaction_graph::SimpleInteractionGraph::pose(), setup_after_edge_addition(), and core::pose::Pose::total_residue().
Real core::pack::interaction_graph::NPDHBSimpleInteractionGraph::npd_hb_weight | ( | scoring::hbonds::HBEvalType | eval_type, |
bool | intra_res | ||
) |
scoring::hbonds::NPDHBondSet const & core::pack::interaction_graph::NPDHBSimpleInteractionGraph::npd_hbond_set | ( | ) | const |
References npd_hbond_set_.
Referenced by core::pack::interaction_graph::NPDHBSimpleNode::find_curr_hbonds_to_upper_neighbors(), core::pack::interaction_graph::NPDHBSimpleNode::find_hbs_for_nbrs_alt_state_step1(), and core::pack::interaction_graph::NPDHBSimpleNode::get_npdhb_deltaE_for_substitution().
|
protected |
Referenced by setup_after_edge_addition().
|
protected |
|
overridevirtual |
Reimplemented from core::pack::interaction_graph::SimpleInteractionGraph.
void core::pack::interaction_graph::NPDHBSimpleInteractionGraph::return_hbond_to_queue | ( | NPDHBondOP const & | hbond | ) |
|
overridevirtual |
Initialize the graph so that all nodes take their current state from the input Pose – this does not add any edges to the graph.
Reimplemented from core::pack::interaction_graph::SimpleInteractionGraph.
References core::scoring::Energies::data(), core::pose::Pose::energies(), hbond_database_, hbond_options_, hbonding_to_res_, core::scoring::EnergiesCacheableDataType::NPD_HBOND_SET, npd_hbond_set_, core::pack::interaction_graph::SimpleInteractionGraph::pose(), core::pack::interaction_graph::SimpleInteractionGraph::set_pose_no_initialize(), and core::pose::Pose::total_residue().
|
overridevirtual |
Reimplemented from core::pack::interaction_graph::SimpleInteractionGraph.
References protocols::mean_field::max(), core::scoring::npd_hbond, core::scoring::npd_hbond_bb_sc, core::scoring::npd_hbond_lr_bb, core::scoring::npd_hbond_sc, core::scoring::npd_hbond_sr_bb, npd_hbond_weight_, core::pack::interaction_graph::SimpleInteractionGraph::set_scorefunction(), and core::scoring::ScoreFunction::weights().
|
overridevirtual |
If set_pose_no_initialize was called, then after edges have been added. This function will also do any bookkeeping necessary before the start of simulated annealing.
Reimplemented from core::pack::interaction_graph::SimpleInteractionGraph.
References npdhb_cast().
Referenced by initialize().
|
overridevirtual |
Reimplemented from core::pack::interaction_graph::SimpleInteractionGraph.
References core::pack::interaction_graph::NPDHBSimpleNode::get_curr_upper_hbond_energies(), get_npdhb_simple_node(), core::pack::interaction_graph::SimpleInteractionGraph::pose(), core::pack::interaction_graph::SimpleInteractionGraph::total_energy(), and core::pose::Pose::total_residue().
NPDHBondOP core::pack::interaction_graph::NPDHBSimpleInteractionGraph::unused_hbond | ( | ) |
References hbonds_queue_.
Referenced by core::pack::interaction_graph::create_hbonds_one_way().
|
private |
Referenced by hbond_database(), and set_pose_no_initialize().
|
private |
Referenced by hbond_options(), and set_pose_no_initialize().
|
private |
Referenced by hbonding_to_res(), initialize(), and set_pose_no_initialize().
|
private |
Referenced by return_hbond_to_queue(), and unused_hbond().
|
private |
Referenced by npd_hbond_set(), and set_pose_no_initialize().
|
private |
Referenced by set_scorefunction().