20 #include <basic/options/option.hh>
21 #include <basic/options/keys/OptionKeys.hh>
22 #include <basic/options/keys/in.OptionKeys.gen.hh>
23 #include <basic/options/keys/frags.OptionKeys.gen.hh>
26 #include <basic/Tracer.hh>
31 #include <utility/vector1.hh>
35 namespace frag_picker {
38 using namespace basic::options;
39 using namespace basic::options::OptionKeys;
42 "protocols.frag_picker.scores.GunnCostScore");
49 CachingScoringMethod(priority, lowest_acceptable_value, use_lowest,
"GunnCostScore") , gunn_cost_( -0.01 ) {
54 for(
Size j=1;j<=frag_sizes.size();j++) {
56 trGunnScore <<
"Preparing Gunn score for fragments size: "<<frag_sizes[j]<<std::endl;
61 trGunnScore <<
"Prepared "<<v.size()<<
" Gunn tuples for the vall structure"<<std::endl;
67 trGunnScore <<
"Prepared "<<vn.size()<<
" Gunn tuples for the reference structure"<<std::endl;
76 Size iv = f->get_first_index_in_vall();
77 Size iq = f->get_first_index_in_query();
84 empty_map->set_score_component(score,
id_);
103 trGunnScore.Debug <<
"Computing Gunn tuples for the vall structure of size: "
104 <<pose.
total_residue()<<
", results buffer size is: "<<result.size()<<std::endl;
114 Size frag_len = fragment->get_length();
129 Size iv = fragment->get_first_index_in_vall();
130 Size iq = fragment->get_first_index_in_query();
149 scores->set_score_component(score,
id_);
164 Size longest_chunk = picker->get_vall()->get_largest_chunk_size();
167 if (option[frags::frag_sizes].user()) {
168 frag_sizes_tmp = option[frags::frag_sizes]();
170 frag_sizes_tmp.push_back(3);
171 frag_sizes_tmp.push_back(9);
174 if (option[in::file::s].user()) {
176 <<
"Reference structure to score fragments by Gunn cost loaded from: "
177 << option[in::file::s]()[1] << std::endl;
182 lowest_acceptable_value, use_lowest, nativePose,
183 frag_sizes_tmp,longest_chunk);
185 utility_exit_with_message(
186 "Can't read a reference structure. Provide it with in::file::s flag");