![]() |
Rosetta Protocols
2014.35
|
#include <motif_hash_stuff.hh>
Public Types | |
typedef uint64_t | Key |
typedef double | Count |
typedef numeric::geometry::hashing::SixDCoordinateBinner | SixDCoordinateBinner |
typedef numeric::geometry::hashing::bin_index_hasher | bin_index_hasher |
typedef boost::unordered_map < Key, Count, bin_index_hasher > | CountMap |
Public Member Functions | |
XformScore () | |
void | add_xform_count (Real6 const &xform) |
void | set_score (Key const &, Count const &count) |
void | add_score (Key const &, Count const &count) |
Count | score_of_bin (Real6 const &xform) const |
Count | 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 |
bool | read_binary (std::istream &in, bool clearme=true) |
bool | read_binary (std::string const &fname, bool clearme=true) |
bool | read_binary (utility::vector1< std::string > const &fnames) |
Size | num_bins () const |
Size | num_samples () 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 |
Public Attributes | |
SixDCoordinateBinner | hasher_ |
CountMap | total_count_ |
double | cart_size_ |
double | cart_resl_ |
double | angle_resl_ |
Size | num_samples_ |
Friends | |
std::ostream & | operator<< (std::ostream &out, XformScore const &x) |
typedef numeric::geometry::hashing::bin_index_hasher protocols::motif_hash::XformScore::bin_index_hasher |
typedef boost::unordered_map< Key, Count, bin_index_hasher > protocols::motif_hash::XformScore::CountMap |
typedef numeric:: geometry::hashing::SixDCoordinateBinner protocols::motif_hash::XformScore::SixDCoordinateBinner |
protocols::motif_hash::XformScore::XformScore | ( | ) |
References angle_resl_, cart_resl_, cart_size_, hash_angle_resl, mh::hash_angle_resl, mh::hash_cart_resl, hash_cart_resl, mh::hash_cart_size, hash_cart_size, mh, num_samples_, option, and options.
Referenced by protocols::motif_hash::get_xform_score_from_file().
References score_of_bin(), and total_count_.
Referenced by read_binary().
void protocols::motif_hash::XformScore::add_xform_count | ( | Real6 const & | xform | ) |
References bin_index(), key, num_samples_, and total_count_.
Referenced by protocols::motif_hash::harvest_scores().
XformScore::Key protocols::motif_hash::XformScore::bin_index | ( | Real6 const & | rt | ) | const |
References numeric::geometry::hashing::SixDCoordinateBinner::bin_index(), and hasher_.
Referenced by add_xform_count(), score_of_bin(), and score_of_bin_normalized().
|
inline |
References cart_size_.
Referenced by protocols::motif_hash::MotifHash::get_matching_motifs(), read_binary(), and write_binary().
void protocols::motif_hash::XformScore::clear | ( | ) |
References num_samples_, and total_count_.
Referenced by protocols::motif_hash::MotifHits::filter_redundant(), and read_binary().
Size protocols::motif_hash::XformScore::num_bins | ( | ) | const |
References total_count_.
Referenced by protocols::motif_hash::operator<<(), and write_binary().
Size protocols::motif_hash::XformScore::num_samples | ( | ) | const |
References num_samples_.
Referenced by protocols::motif_hash::operator<<(), and write_binary().
void protocols::motif_hash::XformScore::print_quantiles | ( | std::ostream & | out, |
int | num | ||
) | const |
References N, and total_count_.
Referenced by protocols::motif_hash::operator<<().
void protocols::motif_hash::XformScore::print_scores | ( | std::ostream & | out, |
std::string const | tag = "XH " |
||
) | const |
References key, and total_count_.
void protocols::motif_hash::XformScore::print_scores_norm | ( | std::ostream & | out, |
std::string const | tag = "XH " |
||
) | const |
References add_score(), angle_resl_, cart_resl_, cart_size(), cart_size_, clear(), cout, key, and utility_exit_with_message.
Referenced by protocols::motif_hash::get_xform_score_from_file(), protocols::motif_hash::print_scores(), and read_binary().
bool protocols::motif_hash::XformScore::read_binary | ( | std::string const & | fname, |
bool | clearme = true |
||
) |
References utility::io::izstream::close(), utility::io::izstream::good(), in, and read_binary().
bool protocols::motif_hash::XformScore::read_binary | ( | utility::vector1< std::string > const & | fnames | ) |
XformScore::Count protocols::motif_hash::XformScore::score_of_bin | ( | Real6 const & | xform | ) | const |
References bin_index(), key, and total_count_.
Referenced by add_score(), and score_of_bin_normalized().
XformScore::Count protocols::motif_hash::XformScore::score_of_bin | ( | Key const & | key | ) | const |
References total_count_.
References total_count_.
bool protocols::motif_hash::XformScore::write_binary | ( | std::ostream & | out | ) | const |
References angle_resl_, cart_resl_, cart_size(), cart_size_, basic::options::OptionKeys::mh::harvest_scores_min_count, key, num_bins(), num_samples(), option, and total_count_.
Referenced by write_binary().
bool protocols::motif_hash::XformScore::write_binary | ( | std::string const & | fname | ) | const |
References utility::io::ozstream::close(), utility::io::ozstream::good(), and write_binary().
|
friend |
double protocols::motif_hash::XformScore::angle_resl_ |
Referenced by protocols::motif_hash::operator<<(), read_binary(), write_binary(), and XformScore().
double protocols::motif_hash::XformScore::cart_resl_ |
Referenced by protocols::motif_hash::operator<<(), read_binary(), write_binary(), and XformScore().
double protocols::motif_hash::XformScore::cart_size_ |
Referenced by cart_size(), protocols::motif_hash::operator<<(), read_binary(), write_binary(), and XformScore().
SixDCoordinateBinner protocols::motif_hash::XformScore::hasher_ |
Referenced by bin_index(), print_scores_norm(), and score_of_bin_normalized().
Size protocols::motif_hash::XformScore::num_samples_ |
Referenced by add_xform_count(), clear(), num_samples(), and XformScore().
CountMap protocols::motif_hash::XformScore::total_count_ |
Referenced by add_score(), add_xform_count(), clear(), num_bins(), print_quantiles(), print_scores(), print_scores_norm(), score_of_bin(), set_score(), and write_binary().