20 #include <utility/io/ozstream.hh>
42 #include <basic/options/option.hh>
45 #include <basic/options/keys/out.OptionKeys.gen.hh>
47 #include <basic/options/keys/cluster.OptionKeys.gen.hh>
48 #include <numeric/xyz.functions.hh>
50 #include <ObjexxFCL/string.functions.hh>
57 #include <utility/vector1.hh>
74 using namespace core::id;
75 using namespace core::chemical;
111 using namespace basic::options;
112 using namespace basic::options::OptionKeys;
113 using namespace core::scoring;
114 using namespace core::scoring::hbonds;
115 using namespace core::chemical;
116 using namespace core::kinematics;
117 using namespace core::pose;
118 using namespace core::conformation;
119 using namespace core::id;
120 using namespace core::io::silent;
126 Pose pose, scratch_pose;
131 FoldTree f( scratch_pose.fold_tree() );
134 f.set_jump_atoms( 1,
" CA ",
" CA ",
true );
135 f.reassign_atoms_for_intra_residue_stubs();
136 scratch_pose.fold_tree( f );
145 std::string const silent_file( option[ out::file::silent ]() );
148 for (
Size n = 1; n <= in_files.size(); n++ ) {
150 std::cout <<
"-------- " << in_files[n] <<
"----------" << std::endl;
156 hbond_options->use_hb_env_dep(
false );
161 std::map< std::pair< Size, Size >,
bool > donor_to_acceptor_bb_hb;
166 for (
Size i = 1; i <= hbond_set->nhbonds(); i++ ) {
170 Size const acc_res_num = hbond.acc_res();
172 if ( hbond.don_hatm_is_protein_backbone() && hbond.acc_atm_is_protein_backbone() ) {
173 donor_to_acceptor_bb_hb[ std::make_pair( don_res_num, acc_res_num ) ] =
true;
178 for (
Size i = 1; i <= pose.total_residue(); i++ ){
179 for (
Size j = 1; j <= pose.total_residue(); j++ ){
180 if ( donor_to_acceptor_bb_hb[ std::make_pair( i, j ) ] &&
181 donor_to_acceptor_bb_hb[ std::make_pair( j, i ) ] ){
194 std::string const tag =
"S_"+ObjexxFCL::string_of( count );
195 (*scorefxn)( scratch_pose );
198 silent_file_data->write_silent_struct( s, silent_file,
false );
199 silent_file_data->add_structure( s );
211 Size max_decoys( 400 );
212 if ( option[ out::nstruct].user() ) max_decoys = option[ out::nstruct ];
220 calc_rms_residues.push_back( 1 );
221 calc_rms_residues.push_back( 2 );
224 Real cluster_radius( 0.1 );
225 if ( option[ OptionKeys::cluster::radius ].user() ) cluster_radius = option[ OptionKeys::cluster::radius ]();
237 utility::io::ozstream out( outfile );
239 using namespace protocols::swa;
242 for ( PoseList::const_iterator it = pose_list.begin(); it != pose_list.end(); it++ ){
243 pose = *(it->second);
250 out <<
"A N N " <<
Jump( stub1_forward, stub2_forward ) << std::endl;
251 out <<
"A N C " <<
Jump( stub1_forward, stub2_reverse ) << std::endl;
252 out <<
"A C N " <<
Jump( stub1_reverse, stub2_forward ) << std::endl;
253 out <<
"A C C " <<
Jump( stub1_reverse, stub2_reverse ) << std::endl;
259 std::cout <<
"Put JUMP transforms in " << outfile << std::endl;