22 #include <basic/Tracer.hh>
24 #include <utility/file/file_sys_util.hh>
34 #include <utility/vector1.hh>
35 #include <basic/options/keys/OptionKeys.hh>
39 namespace constraints_additional {
42 using namespace chemical;
43 using namespace conformation;
44 using namespace basic::options;
45 using namespace scoring;
46 using namespace constraints;
47 using namespace sequence;
49 using basic::t_warning;
53 static basic::Tracer
TR(
"protocols.constraints_additional.SequenceCoupling1BDConstraint");
86 Size residue_index(0);
90 is >> residue_index >> profile_filename;
92 TR(t_debug) <<
"reading: " << residue_index <<
" " << profile_filename << std::endl;
93 if ( residue_index < 1 || residue_index > pose.
total_residue() ) {
94 std::cerr <<
"no such residue index " << residue_index <<
" in pose!)" << std::endl;
101 using namespace utility::file;
103 if ( profile_filename !=
"none" ) {
105 utility_exit_with_message(
"no such file " + profile_filename );
109 utility_exit_with_message(
"\"none\" is not a valid value for -pssm in this context!");
113 if ( profile_filename !=
"none" ) {
115 c->read_from_file(
FileName(profile_filename) );
125 os <<
"SequenceCoupling1BD Constraint at seqpos " <<
seqpos() <<
": ";
140 if ( weights[ this->
score_type() ] == 0 )
return;
146 if (
seqpos() > profile.size() )
return;
148 if (
size_t(aa) > position_profile.size() )
return;
150 TR(t_trace) <<
"seqpos " <<
seqpos() <<
" aa " << aa <<
" " << score << std::endl;