18 #include <ObjexxFCL/FArray1D.hh>
19 #include <ObjexxFCL/format.hh>
20 #include <basic/Tracer.hh>
21 #include <utility/tag/Tag.hh>
39 namespace simple_filters {
54 bool const whole_interface,
59 filters::
Filter(
"EnergyPerResidue" ),
61 score_type_( score_type ),
62 threshold_( threshold ),
63 whole_interface_ ( whole_interface ),
65 interface_distance_cutoff_ ( interface_distance_cutoff ),
68 using namespace core::scoring;
88 using namespace core::scoring;
147 using namespace core::scoring;
156 bb_bb_ = tag->getOption<
bool >(
"bb_bb", false );
162 <<
"jump_number is set to "<<
rb_jump_
163 <<
"\n and scorefxn " <<scorefxn_name <<
" will be used" <<std::endl;
174 using namespace core::scoring;
183 energy_per_residue_filter_tracer<<
" \n \t --------- computing ---------- \n \t-------- interface energies --------\n \t \t------------------- \n" << std::endl;
203 using namespace core::scoring;
204 using ObjexxFCL::FArray1D_bool;
214 (*scorefxn_)( in_pose );
238 core::Real weighted_contact_score = weighted_fa_atr + weighted_fa_rep + weighted_hbond_bb_sc + weighted_hbond_sc + weighted_fa_sol;
247 <<ObjexxFCL::fmt::F (9 , 3, total) <<
" "
248 <<ObjexxFCL::fmt::F (9 , 3, weighted_contact_score)<<
" "
249 <<ObjexxFCL::fmt::F (9 , 3, weighted_fa_atr) <<
" "
250 <<ObjexxFCL::fmt::F (9 , 3, weighted_fa_rep) <<
" "
251 <<ObjexxFCL::fmt::F (9 , 3, weighted_hbond_bb_sc )<<
" "
252 <<ObjexxFCL::fmt::F (9 , 3, weighted_hbond_sc )<<
" "
253 <<ObjexxFCL::fmt::F (9 , 3, weighted_fa_sol )<<
" "
254 <<ObjexxFCL::fmt::F (9 , 3, weighted_fa_dun )<<
" "
255 <<ObjexxFCL::fmt::F (9 , 3, weighted_fa_pair )<<
"\n";
267 if( pass ) out<<
"passing."<<
'\n';
268 else out<<
"failing."<<
'\n';
276 using namespace core::scoring;
285 using namespace core::scoring;
293 if( in_pose.is_fullatom() ) {
298 if( in_pose.is_centroid() ) {
303 in_pose.update_residue_neighbors();
304 (*scorefxn_)( in_pose );
312 energy_options->hbond_options().decompose_bb_hb_into_pair_energies(
true);
313 scorefxn_->set_energy_method_options(*energy_options);
318 weighted_score = weight *
score ;
320 return( weighted_score );