32 #include <utility/file/FileName.hh>
35 #include <basic/options/keys/OptionKeys.hh>
38 #include <basic/prof.hh>
39 #include <basic/Tracer.hh>
41 #include <utility/vector1.hh>
45 namespace frag_picker {
48 using namespace basic::options;
49 using namespace basic::options::OptionKeys;
50 using namespace core::chemical;
53 "protocols.frag_picker.scores.ProfileScoreSubMatrix");
60 "ProfileScoreSubMatrix")
67 for (
Size i = 1; i <= sequence.size(); ++i) {
92 <<
" of size " << chunk->size() << std::endl;
93 PROF_START( basic::FRAGMENTPICKING_PROFILE_CAHING );
96 for (
Size i = 1; i <= size_q; ++i) {
101 for (
Size j = 1; j <= chunk->size(); ++j) {
111 PROF_STOP( basic::FRAGMENTPICKING_PROFILE_CAHING );
113 <<
"x" << chunk->size() << std::endl;
123 Real totalScore = 0.0;
124 for (
Size i = 1; i <= f->get_length(); i++) {
127 assert(f->get_first_index_in_query() + i - 1 <=
scores_.size());
128 assert(f->get_first_index_in_vall() + i - 1<=
scores_[1].size());
130 totalScore +=
scores_[f->get_first_index_in_query() + i - 1][f->get_first_index_in_vall() + i - 1];
132 totalScore /= (
Real) f->get_length();
133 empty_map->set_score_component(totalScore,
id_);
148 Size len = picker->get_vall()->get_largest_chunk_size();
154 lowest_acceptable_value,
156 picker->get_query_seq()->sequence(),