31 #include <utility/file/FileName.hh>
34 #include <basic/options/keys/OptionKeys.hh>
37 #include <basic/prof.hh>
38 #include <basic/Tracer.hh>
40 #include <utility/vector1.hh>
44 namespace frag_picker {
47 using namespace basic::options;
48 using namespace basic::options::OptionKeys;
49 using namespace core::chemical;
52 "protocols.frag_picker.scores.ProfileScoreBlosum62");
59 "ProfileScoreBlosum62")
63 for (
Size i = 1; i <= query_profile->length(); ++i) {
88 <<
" of size " << chunk->size() << std::endl;
89 PROF_START( basic::FRAGMENTPICKING_PROFILE_CAHING );
90 for (
Size i = 1; i <= size_q; ++i) {
93 for (
Size j = 1; j <= chunk->size(); ++j) {
99 for (
Size k1 = 1; k1 <= 20; k1++) {
101 for (
Size k2 = 1; k2 <= 20; k2++) {
103 Real diff = query_prof_row[k1]*sqrt(tmplt_prof_row[k2]);
115 score -= sign/(1+exp((-10*diff*blosum)+5));
134 PROF_STOP( basic::FRAGMENTPICKING_PROFILE_CAHING );
136 <<
"x" << chunk->size() << std::endl;
146 Real totalScore = 0.0;
147 for (
Size i = 1; i <= f->get_length(); i++) {
148 assert(f->get_first_index_in_query() + i - 1 <=
scores_.size());
149 assert(f->get_first_index_in_vall()
152 +=
scores_[f->get_first_index_in_query() + i - 1][f->get_first_index_in_vall()
155 totalScore /= (
Real) f->get_length();
156 empty_map->set_score_component(totalScore,
id_);
190 Size len = picker->get_vall()->get_largest_chunk_size();
193 lowest_acceptable_value, use_lowest, picker->get_query_seq(), len);