32 #include <basic/Tracer.hh>
41 #include <basic/options/option.hh>
42 #include <basic/options/keys/constraints.OptionKeys.gen.hh>
43 #include <basic/options/keys/out.OptionKeys.gen.hh>
44 #include <basic/options/keys/run.OptionKeys.gen.hh>
45 #include <basic/options/keys/in.OptionKeys.gen.hh>
48 #include <utility/vector1.hh>
55 static basic::Tracer
tr(
"protocols.jobdist.not_universal_main");
64 bool valid_tag(
false );
67 if ( this_id ==
"" )
get_comment( pose,
"user_ta", this_id );
68 if ( this_id ==
"" ) {
69 tr.Error <<
"can't find user_tag in pose!" << std::endl;
73 for ( iter it = user_tags.begin(),
end = user_tags.end();
74 it !=
end && !valid_tag && this_id !=
""; ++it
76 if ( this_id.find( *it ) != std::string::npos ) {
79 tr.Debug <<
"processing Pose with user_tag " << this_id << std::endl;
84 tr.Warning <<
"skipping Pose with user_tag " << this_id << std::endl;
97 using namespace basic::options;
98 using namespace basic::options::OptionKeys;
99 using namespace core::chemical;
100 using namespace core::io::silent;
101 using namespace core::import_pose::pose_stream;
110 option[ in::file::residue_type_set ]()
114 if ( option[ in::file::native ].user() ) {
116 native_pose, *rsd_set, option[ in::file::native ]()
121 if ( option[ constraints::cst_weight ].user() ) {
122 Real const weight( option[ constraints::cst_weight ]() );
129 scorefxn->show(
tr.Debug );
130 tr.flush_all_channels();
133 if ( option[ in::file::user_tags ].user() ) {
134 user_tags = option[ in::file::user_tags ]();
139 Size const n_repeats( option[ run::repeat ]() );
142 while( input.has_another_pose() ) {
143 input.fill_pose( current_pose, *rsd_set );
145 if ( option[ in::file::user_tags ].user() ) {
151 for (
Size ii = 1; ii <= n_repeats; ++ii ) {
153 if ( !option[ in::file::keep_input_scores ]() ) {
158 current_pose.conformation(),
"start_pose"
161 mover.
apply( current_pose );
164 if ( option[ in::file::rescore ]() ) {
165 (*scorefxn)(current_pose);
169 if ( !option[ out::nooutput ]() ) {
172 ss->fill_struct( current_pose );
175 if ( option[ in::file::native ].user() ) {
182 ss->add_energy(
"rmsd", CA_rmsd );
183 ss->add_energy(
"maxsub", CA_maxsub );
184 ss->add_energy(
"gdtmm", CA_gdtmm );
187 sfd_out.write_silent_struct( *ss, option[ out::file::silent ]() );