31 #include <utility/io/izstream.hh>
32 #include <utility/string_util.hh>
34 #include <basic/options/option.hh>
35 #include <basic/options/keys/score.OptionKeys.gen.hh>
37 #include <utility/vector1.hh>
84 using namespace basic::options;
86 std::cout <<
"JL checking for SequenceDependentRefEnergy weights" << std::endl;
88 if ( option[ OptionKeys::score::seqdep_refene_fname ].user() ) {
89 std::string const in_fname( option[ OptionKeys::score::seqdep_refene_fname ] );
90 std::cout <<
"JL reading SequenceDependentRefEnergy weights from " << in_fname << std::endl;
91 utility::io::izstream in_stream( in_fname );
92 if (!in_stream.good()) {
93 utility_exit_with_message(
"[ERROR] Error opening SequenceDependentRefEnergy file" );
97 while( getline( in_stream, line) ) {
99 std::cout <<
"JL got " << seqpos <<
" line " << line << std::endl;
103 energies.push_back( atof(it->c_str()) );
108 if ( option[ OptionKeys::score::secondary_seqdep_refene_fname ].user() ) {
109 std::string const in_fname( option[ OptionKeys::score::secondary_seqdep_refene_fname ] );
110 std::cout <<
"JL reading SECONDARY SequenceDependentRefEnergy weights from " << in_fname << std::endl;
111 utility::io::izstream in_stream( in_fname );
112 if (!in_stream.good()) {
113 utility_exit_with_message(
"[ERROR] Error opening SECONDARY SequenceDependentRefEnergy file" );
117 while( getline( in_stream, line) ) {
119 std::cout <<
"JL got " << seqpos <<
" line " << line << std::endl;
123 energies.push_back( atof(it->c_str()) );
152 using namespace chemical;
156 AA const & aa( rsd.
aa() );