|
Rosetta 3.5
|
holds particular score components, weights and calculates the total score for a fragment candidate More...
#include <FragmentScoreManager.hh>


Public Member Functions | |
| virtual | ~FragmentScoreManager () |
| Automatically generated virtual destructor for class deriving directly from ReferenceCount. More... | |
| FragmentScoreManager () | |
| creates an empty manager More... | |
| FragmentScoreMapOP | create_empty_map () |
| creates an empty score map More... | |
| void | add_scoring_method (FragmentScoringMethodOP, Real) |
| registers a new scoring method in this manager More... | |
| Size | count_components () |
| says how many scoring methods have already been registered More... | |
| FragmentScoringMethodOP | get_component (Size index) |
| Returns a desired scoring method. More... | |
| utility::vector1< Real > | get_weights () |
| returns a vector of weights that are used to compute the total score More... | |
| void | show_scoring_methods (std::ostream &out) |
| prints a nice table showing the registered scores More... | |
| Real | total_score (FragmentScoreMapOP) |
| calculates the total score More... | |
| virtual bool | score_fragment_from_cache (FragmentCandidateOP, FragmentScoreMapOP) |
| calculates all the small scores for a given fragment More... | |
| virtual bool | score_fragment (FragmentCandidateOP, FragmentScoreMapOP) |
| calculates all the small scores for a given fragment More... | |
| void | use_late_scoring_for_zeros (const bool if_true) |
| those score metohods that have weight = 0.0 will be computed after the fragments are picked More... | |
| bool | if_late_scoring_for_zeros () |
| says if late scoring is used or not More... | |
| bool | score_zero_scores (FragmentCandidateOP, FragmentScoreMapOP) |
| calculates all these small scores for a given fragment whose weight is 0.0 More... | |
| void | register_score_maker (MakeFragmentScoringMethodOP) |
| registers a maker object that will be used to create a scoring method object More... | |
| void | create_scoring_method (std::string const &, Size, Real, Real, bool, FragmentPickerOP, std::string) |
| creates a new scoring method object More... | |
| void | create_scores (std::string const &, FragmentPickerOP) |
| reads a config file and creates scoring methods More... | |
| void | do_caching (VallChunkOP chunk) |
| calls do_caching() for each FragmentScoringMethod object, if it is possible More... | |
| void | clean_up () |
| calls clean_up() for each FragmentScoringMethod object, if it is possible More... | |
| void | set_width (FragmentScoringMethodOP which_score, Size width) |
| sets up a new number of characters spend to print fragment score value More... | |
| void | set_precision (FragmentScoringMethodOP which_score, Size precision) |
| sets up a new precision used to print fragment score value More... | |
| virtual void | describe_fragments (utility::vector1< std::pair< FragmentCandidateOP, scores::FragmentScoreMapOP > > const &, std::ostream &) |
| prints a flat table with all scores for all the fragments in a given vector More... | |
Public Attributes | |
| Size | default_width_ |
| default width used to print a score value, equal to 6 More... | |
| Size | default_precision_ |
| default precision used to print a score value, equal to 1 More... | |
Static Public Attributes | |
| static const Size | TOTAL_PRECISION = 3 |
| precision used to display the total score for each fragment More... | |
Protected Attributes | |
| utility::vector1 < FragmentScoringMethodOP > | scores_ |
| std::map < FragmentScoringMethodOP, Size > | width_ |
| std::map < FragmentScoringMethodOP, Size > | precision_ |
Private Attributes | |
| utility::vector1< Real > | score_weights_ |
| std::map< std::string, MakeFragmentScoringMethodOP > | registered_makers_ |
| bool | zeros_score_later_ |
holds particular score components, weights and calculates the total score for a fragment candidate
Definition at line 42 of file FragmentScoreManager.hh.
|
virtual |
Automatically generated virtual destructor for class deriving directly from ReferenceCount.
Auto-generated virtual destructor
Definition at line 84 of file FragmentScoreManager.cc.
| protocols::frag_picker::scores::FragmentScoreManager::FragmentScoreManager | ( | ) |
creates an empty manager
Definition at line 287 of file FragmentScoreManager.cc.
References default_precision_, default_width_, register_score_maker(), and zeros_score_later_.
| void protocols::frag_picker::scores::FragmentScoreManager::add_scoring_method | ( | FragmentScoringMethodOP | scoring_term, |
| Real | weight | ||
| ) |
registers a new scoring method in this manager
Definition at line 99 of file FragmentScoreManager.cc.
References default_precision_, default_width_, precision_, score_weights_, scores_, protocols::frag_picker::scores::sort_scores(), and width_.
Referenced by create_scoring_method().
| void protocols::frag_picker::scores::FragmentScoreManager::clean_up | ( | ) |
calls clean_up() for each FragmentScoringMethod object, if it is possible
Definition at line 153 of file FragmentScoreManager.cc.
References scores_.
|
inline |
says how many scoring methods have already been registered
Definition at line 65 of file FragmentScoreManager.hh.
References scores_.
| FragmentScoreMapOP protocols::frag_picker::scores::FragmentScoreManager::create_empty_map | ( | ) |
creates an empty score map
Definition at line 89 of file FragmentScoreManager.cc.
References score_weights_.
| void protocols::frag_picker::scores::FragmentScoreManager::create_scores | ( | std::string const & | file_name, |
| FragmentPickerOP | picker | ||
| ) |
reads a config file and creates scoring methods
Definition at line 353 of file FragmentScoreManager.cc.
References create_scoring_method().
| void protocols::frag_picker::scores::FragmentScoreManager::create_scoring_method | ( | std::string const & | score_name, |
| Size | priority, | ||
| Real | weight, | ||
| Real | lowest, | ||
| bool | use_lowest, | ||
| FragmentPickerOP | picker, | ||
| std::string | config_line | ||
| ) |
creates a new scoring method object
Definition at line 338 of file FragmentScoreManager.cc.
References add_scoring_method(), and registered_makers_.
Referenced by create_scores().
|
virtual |
prints a flat table with all scores for all the fragments in a given vector
Reimplemented in protocols::frag_picker::scores::PValuedFragmentScoreManager.
Definition at line 175 of file FragmentScoreManager.cc.
References precision_, scores_, TOTAL_PRECISION, total_score(), protocols::frag_picker::scores::tr(), and width_.
| void protocols::frag_picker::scores::FragmentScoreManager::do_caching | ( | VallChunkOP | chunk) |
calls do_caching() for each FragmentScoringMethod object, if it is possible
Definition at line 142 of file FragmentScoreManager.cc.
References score_weights_, scores_, and zeros_score_later_.
|
inline |
Returns a desired scoring method.
Definition at line 71 of file FragmentScoreManager.hh.
References scores_.
|
inline |
returns a vector of weights that are used to compute the total score
Definition at line 77 of file FragmentScoreManager.hh.
References score_weights_.
|
inline |
says if late scoring is used or not
late scoring means that some scores (those with weight=0, such as crmsd) are evaluated only for the selected fragments rather than for all the candidates
Definition at line 107 of file FragmentScoreManager.hh.
References zeros_score_later_.
| void protocols::frag_picker::scores::FragmentScoreManager::register_score_maker | ( | MakeFragmentScoringMethodOP | scoring_term_maker) |
registers a maker object that will be used to create a scoring method object
Definition at line 281 of file FragmentScoreManager.cc.
References registered_makers_.
Referenced by FragmentScoreManager().
|
virtual |
calculates all the small scores for a given fragment
results are properly stored inside a FragmentScoreMap object
Reimplemented in protocols::frag_picker::scores::PValuedFragmentScoreManager.
Definition at line 237 of file FragmentScoreManager.cc.
References score_weights_, scores_, and zeros_score_later_.
Referenced by protocols::frag_picker::scores::PValuedFragmentScoreManager::score_fragment().
|
virtual |
calculates all the small scores for a given fragment
results are properly stored inside a FragmentScoreMap object
Reimplemented in protocols::frag_picker::scores::PValuedFragmentScoreManager.
Definition at line 261 of file FragmentScoreManager.cc.
References score_weights_, scores_, and zeros_score_later_.
Referenced by protocols::frag_picker::scores::PValuedFragmentScoreManager::score_fragment_from_cache().
| bool protocols::frag_picker::scores::FragmentScoreManager::score_zero_scores | ( | FragmentCandidateOP | candidate, |
| FragmentScoreMapOP | empty_map | ||
| ) |
calculates all these small scores for a given fragment whose weight is 0.0
Definition at line 249 of file FragmentScoreManager.cc.
References score_weights_, and scores_.
|
inline |
sets up a new precision used to print fragment score value
Definition at line 143 of file FragmentScoreManager.hh.
References core::io::raw_data::precision(), and precision_.
|
inline |
sets up a new number of characters spend to print fragment score value
Definition at line 138 of file FragmentScoreManager.hh.
References width_.
| void protocols::frag_picker::scores::FragmentScoreManager::show_scoring_methods | ( | std::ostream & | out) |
prints a nice table showing the registered scores
Definition at line 163 of file FragmentScoreManager.cc.
References score_weights_, and scores_.
| Real protocols::frag_picker::scores::FragmentScoreManager::total_score | ( | FragmentScoreMapOP | f) |
calculates the total score
Definition at line 125 of file FragmentScoreManager.cc.
References score_weights_.
Referenced by protocols::frag_picker::scores::PValuedFragmentScoreManager::describe_fragments(), and describe_fragments().
|
inline |
those score metohods that have weight = 0.0 will be computed after the fragments are picked
Definition at line 100 of file FragmentScoreManager.hh.
References zeros_score_later_.
| Size protocols::frag_picker::scores::FragmentScoreManager::default_precision_ |
default precision used to print a score value, equal to 1
Definition at line 52 of file FragmentScoreManager.hh.
Referenced by add_scoring_method(), and FragmentScoreManager().
| Size protocols::frag_picker::scores::FragmentScoreManager::default_width_ |
default width used to print a score value, equal to 6
Definition at line 50 of file FragmentScoreManager.hh.
Referenced by add_scoring_method(), and FragmentScoreManager().
|
protected |
Definition at line 154 of file FragmentScoreManager.hh.
Referenced by add_scoring_method(), protocols::frag_picker::scores::PValuedFragmentScoreManager::describe_fragments(), describe_fragments(), and set_precision().
|
private |
Definition at line 157 of file FragmentScoreManager.hh.
Referenced by create_scoring_method(), and register_score_maker().
|
private |
Definition at line 156 of file FragmentScoreManager.hh.
Referenced by add_scoring_method(), create_empty_map(), do_caching(), get_weights(), score_fragment(), score_fragment_from_cache(), score_zero_scores(), show_scoring_methods(), and total_score().
|
protected |
Definition at line 152 of file FragmentScoreManager.hh.
Referenced by add_scoring_method(), clean_up(), count_components(), protocols::frag_picker::scores::PValuedFragmentScoreManager::describe_fragments(), describe_fragments(), do_caching(), get_component(), protocols::frag_picker::scores::PValuedFragmentScoreManager::score_fragment(), score_fragment(), protocols::frag_picker::scores::PValuedFragmentScoreManager::score_fragment_from_cache(), score_fragment_from_cache(), score_zero_scores(), and show_scoring_methods().
|
static |
precision used to display the total score for each fragment
Definition at line 48 of file FragmentScoreManager.hh.
Referenced by protocols::frag_picker::scores::PValuedFragmentScoreManager::describe_fragments(), and describe_fragments().
|
protected |
Definition at line 153 of file FragmentScoreManager.hh.
Referenced by add_scoring_method(), protocols::frag_picker::scores::PValuedFragmentScoreManager::describe_fragments(), describe_fragments(), and set_width().
|
private |
Definition at line 158 of file FragmentScoreManager.hh.
Referenced by do_caching(), FragmentScoreManager(), if_late_scoring_for_zeros(), score_fragment(), score_fragment_from_cache(), and use_late_scoring_for_zeros().
1.8.4