19 #include <basic/options/option.hh>
20 #include <basic/options/keys/frags.OptionKeys.gen.hh>
22 #include <utility/vector1.hh>
28 namespace picking_old {
81 Scores::const_iterator begin =
scores().begin() + ( from - 1 );
82 Scores::const_iterator
end =
scores().begin() + to;
84 TR_ <<
"best fragment: " << ( *begin ) << std::endl;
85 TR_ <<
"worst fragment: " << ( *( end - 1) ) << std::endl;
87 core::Real max_allowed_score( basic::options::option[ basic::options::OptionKeys::frags::picking_old_max_score ].value() );
97 for ( Scores::const_iterator i = begin; i !=
end; ++i, ++num_frags_picked ) {
99 if( this_score < max_allowed_score ){
103 if( fdl.size() == 0 ){
104 TR_ <<
"no fragments had good score, only picking 1. this is probably a bad sign..." << std::endl;
105 fdl.push_back(
extent_to_fragdata( begin->extent_begin, begin->extent_end, srfd_type ) );
107 else TR_ <<
"fragments with bad score (" << this_score <<
") observed after fragment " << num_frags_picked <<
", skipping everything afterwards." << std::endl;
120 (**i).pre_catalog_op( library );
134 (**i).post_catalog_op( library );