27 #include <basic/options/option.hh>
28 #include <basic/options/keys/in.OptionKeys.gen.hh>
31 #include <basic/Tracer.hh>
33 #include <utility/vector1.hh>
37 namespace frag_picker {
41 "protocols.frag_picker.scores.ABEGO_SS_Score");
45 Real totalScore = 0.0;
46 for (
Size i = 1; i <= f->get_length(); i++) {
48 VallResidueOP r = chunk->at(f->get_first_index_in_vall() + i - 1);
52 if(
maps_[j]->check_status(s,bin)) {
53 totalScore += 1.0 -
ratios_[i][j];
58 totalScore /= (
Real) f->get_length();
59 empty_map->set_score_component(totalScore,
id_);
73 trABEGO_SS_Score.Debug <<
"caching ABEGO-SS score for " << chunk->get_pdb_id()
74 <<
" of size " << chunk->size() << std::endl;
77 for (
Size j = 1; j <= chunk->size(); ++j) {
81 bool if_found =
false;
83 if(
maps_[i]->check_status(s,bin)) {
84 chunk_bins_.push_back(i);
91 trABEGO_SS_Score.Warning <<
"Can't find a feature label for the following combination of ss,abego: "
92 <<s<<
","<<
maps_[1]->abego_char(bin)<<std::endl;
97 for (
Size j = 1; j <= chunk->size(); ++j) {
101 trABEGO_SS_Score.Debug <<
"precomputed matrix of scores " <<
scores_.size()
102 <<
"x" << chunk->size() << std::endl;
113 for (
Size i = 1; i <= f->get_length(); ++i) {
114 assert(f->get_first_index_in_query() + i - 1 <=
scores_.size());
115 assert(f->get_first_index_in_vall() + i - 1<=
scores_[1].size());
116 totalScore +=
scores_[f->get_first_index_in_query() + i - 1][f->get_first_index_in_vall() + i - 1];
119 totalScore /= (
Real) f->get_length();
120 empty_map->set_score_component(totalScore,
id_);
129 using namespace basic::options;
130 using namespace basic::options::OptionKeys;
131 Size vall_max_len = picker->get_vall()->get_largest_chunk_size();
133 if ( !option[ in::file::torsion_bin_probs ].user() ) {
134 utility_exit_with_message(
"Error: no input file specified for ABEGO_SS score; use in::file::torsion_bin_probs option");
137 lowest_acceptable_value, use_lowest,option[ in::file::torsion_bin_probs ](),