38 #include <basic/options/keys/templates.OptionKeys.gen.hh>
44 #include <utility/io/izstream.hh>
47 #include <basic/Tracer.hh>
48 #include <basic/options/option.hh>
53 #include <utility/vector1.hh>
54 #include <boost/algorithm/string/erase.hpp>
59 static basic::Tracer
tr(
"protocols.topo_broker",basic::t_info);
63 namespace topology_broker {
86 utility_exit_with_message(
"ERRORS occured during template setup. check BAD_SEQUENCES file!");
94 utility::io::izstream is( file );
96 utility_exit_with_message(
" did not find topology_file: " + file );
100 tr.Info << *ps << std::endl;
103 ss_def->extend( 1500 );
108 if ( tag ==
"file" ) {
113 }
else if ( tag ==
"PAIRING_FILE" ) {
119 tr.Info <<
"found " <<
pairings_.size() <<
" pairings in file " << file << std::endl;
120 }
else if ( tag ==
"SHEETS" || tag ==
"RANDOM_SHEETS" ) {
124 std::istringstream is_line( line );
125 copy( std::istream_iterator< core::Size >( is_line ), std::istream_iterator< core::Size >(), std::back_inserter(
sheets_ ) );
129 }
else if ( tag ==
"SS_INFO" ) {
133 ss_def_->read_psipred_ss2( file );
134 }
else if ( tag ==
"mover_weight" ) {
136 }
else if ( tag ==
"topol_file" || tag ==
"TOPOL_FILE" ) {
146 if ( !
jump_def() && basic::options::option[ basic::options::OptionKeys::templates::config ].user() && !
templates_ ) {
147 read_config_file( basic::options::option[ basic::options::OptionKeys::templates::config ]() );
150 if ( !
ss_def_ )
EXCN_Input(
"If you use PAIRING_FILE you also have to specify SS_INFO " );
151 if ( !
sheets_.size() )
EXCN_Input(
"If you use PAIRING_FILE you also have to specify SHEET or RANDOM_SHEET " );