![]() |
Rosetta
2021.16
|
#include <motif_hash_stuff.hh>

Public Types | |
| typedef uint32_t | Key |
| typedef float | Score |
| typedef numeric::geometry::hashing::SixDCoordinateBinner | SixDCoordinateBinner |
| typedef numeric::geometry::hashing::bin_index_hasher | bin_index_hasher |
| typedef boost::unordered_map < Key, Score, bin_index_hasher > | ScoreMap |
Public Member Functions | |
| XformScore (Real cart_resl, Real ang_resl) | |
| void | set_score (Key const &, Score const &count) |
| void | add_score (Key const &, Score const &count) |
| void | max_score (Key const &, Score const &count) |
| Score | score_of_bin (Real6 const &xform) const |
| Score | score_of_bin (Xform const &xform) const |
| Score | score_of_bin (Key const &key) const |
| Real | score_of_bin_normalized (Real6 const &xform) const |
| bool | write_binary (std::ostream &out) const |
| bool | write_binary (std::string const &fname) const |
| Size | num_bins () const |
| Size | num_possible_bins () const |
| Score | tot_score () const |
| void | print_scores (std::ostream &out, std::string const tag="XH ") const |
| void | print_scores_norm (std::ostream &out, std::string const tag="XH ") const |
| void | clear () |
| Real | cart_size () const |
| Key | bin_index (Real6 const &rt) const |
| void | print_quantiles (std::ostream &out, int num) const |
| void | prune_small_bins (Score thresh) |
| void | sanity_check () const |
| void | aggregate_add (XformScore const &other) |
| void | aggregate_max (XformScore const &other) |
Static Public Member Functions | |
| static bool | read_binary (XformScoreOP &xs, std::istream &in, bool clearme=true, Real const &wt=1.0) |
| static bool | read_binary (XformScoreOP &xs, std::string const &fname, bool clearme=true, Real const &wt=1.0) |
| static bool | read_binary (XformScoreOP &xs, utility::vector1< std::string > const &fnames, Real const &wt=1.0) |
Public Attributes | |
| SixDCoordinateBinner | hasher_ |
| ScoreMap | scores_ |
| core::Real | cart_size_ |
| core::Real | cart_resl_ |
| core::Real | angle_resl_ |
Private Member Functions | |
| XformScore () | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, XformScore const &x) |
| typedef numeric::geometry::hashing::bin_index_hasher core::scoring::motif::XformScore::bin_index_hasher |
| typedef uint32_t core::scoring::motif::XformScore::Key |
| typedef float core::scoring::motif::XformScore::Score |
| typedef boost::unordered_map< Key, Score, bin_index_hasher > core::scoring::motif::XformScore::ScoreMap |
| typedef numeric:: geometry::hashing::SixDCoordinateBinner core::scoring::motif::XformScore::SixDCoordinateBinner |
References sanity_check().
|
private |
References sanity_check().
References scores_.
Referenced by aggregate_add().
| void core::scoring::motif::XformScore::aggregate_add | ( | XformScore const & | other | ) |
References add_score(), and scores_.
| void core::scoring::motif::XformScore::aggregate_max | ( | XformScore const & | other | ) |
References max_score(), and scores_.
| XformScore::Key core::scoring::motif::XformScore::bin_index | ( | Real6 const & | rt | ) | const |
References hasher_.
Referenced by score_of_bin(), and score_of_bin_normalized().
|
inline |
References cart_size_.
Referenced by read_binary(), and write_binary().
| void core::scoring::motif::XformScore::clear | ( | ) |
References scores_.
References protocols::mean_field::max(), and scores_.
Referenced by aggregate_max().
| Size core::scoring::motif::XformScore::num_bins | ( | ) | const |
References scores_.
Referenced by core::scoring::motif::operator<<(), and write_binary().
| Size core::scoring::motif::XformScore::num_possible_bins | ( | ) | const |
References hasher_.
Referenced by core::scoring::motif::operator<<().
| void core::scoring::motif::XformScore::print_quantiles | ( | std::ostream & | out, |
| int | num | ||
| ) | const |
References core::chemical::element::F, protocols::mean_field::max(), protocols::mean_field::min(), scores_, and core::chemical::element::W.
Referenced by core::scoring::motif::operator<<().
| void core::scoring::motif::XformScore::print_scores | ( | std::ostream & | out, |
| std::string const | tag = "XH " |
||
| ) | const |
| void core::scoring::motif::XformScore::print_scores_norm | ( | std::ostream & | out, |
| std::string const | tag = "XH " |
||
| ) | const |
References core::conformation::membrane::center, hasher_, and scores_.
| void core::scoring::motif::XformScore::prune_small_bins | ( | XformScore::Score | thresh | ) |
References scores_.
|
static |
References cart_size(), core::scoring::motif::MOTIF_VERSION, and protocols::hybridization::score.
Referenced by core::scoring::motif::fill_xform_score_from_file(), and read_binary().
|
static |
References core::conformation::membrane::in, and read_binary().
|
static |
References read_binary().
| void core::scoring::motif::XformScore::sanity_check | ( | ) | const |
References angle_resl_, cart_resl_, cart_size_, and core::scoring::motif::MOTIF_HASH_CART_SIZE.
Referenced by XformScore().
| XformScore::Score core::scoring::motif::XformScore::score_of_bin | ( | Real6 const & | xform | ) | const |
References bin_index(), and scores_.
Referenced by score_of_bin(), and score_of_bin_normalized().
| XformScore::Score core::scoring::motif::XformScore::score_of_bin | ( | Xform const & | xform | ) | const |
References score_of_bin().
| XformScore::Score core::scoring::motif::XformScore::score_of_bin | ( | Key const & | key | ) | const |
References scores_.
| Real core::scoring::motif::XformScore::score_of_bin_normalized | ( | Real6 const & | xform | ) | const |
References bin_index(), core::conformation::membrane::center, hasher_, and score_of_bin().
References scores_.
| XformScore::Score core::scoring::motif::XformScore::tot_score | ( | ) | const |
References scores_.
Referenced by core::scoring::motif::operator<<(), and write_binary().
| bool core::scoring::motif::XformScore::write_binary | ( | std::ostream & | out | ) | const |
References angle_resl_, cart_resl_, cart_size(), cart_size_, core::scoring::motif::MOTIF_VERSION, num_bins(), scores_, and tot_score().
Referenced by write_binary().
| bool core::scoring::motif::XformScore::write_binary | ( | std::string const & | fname | ) | const |
References core::conformation::membrane::out, and write_binary().
|
friend |
| core::Real core::scoring::motif::XformScore::angle_resl_ |
Referenced by core::scoring::motif::operator<<(), sanity_check(), and write_binary().
| core::Real core::scoring::motif::XformScore::cart_resl_ |
Referenced by core::scoring::motif::operator<<(), sanity_check(), and write_binary().
| core::Real core::scoring::motif::XformScore::cart_size_ |
Referenced by cart_size(), core::scoring::motif::operator<<(), sanity_check(), and write_binary().
| SixDCoordinateBinner core::scoring::motif::XformScore::hasher_ |
Referenced by bin_index(), num_possible_bins(), print_scores(), print_scores_norm(), and score_of_bin_normalized().
| ScoreMap core::scoring::motif::XformScore::scores_ |
1.8.7