33 #include <utility/io/ozstream.hh>
34 #include <utility/file/FileName.hh>
38 #include <basic/Tracer.hh>
39 #include <basic/MemTracer.hh>
46 #include <basic/options/option_macros.hh>
50 #include <utility/vector1.hh>
53 static basic::Tracer
tr(
"protocols.iterative");
58 using namespace basic;
59 using namespace basic::options;
60 using namespace basic::options::OptionKeys;
64 OPT_1GRP_KEY( Real, iterative, fapool_chemicalshift_weight )
65 OPT_1GRP_KEY( Real, iterative, fapool_first_noesy_cycle_nr )
72 NEW_OPT( iterative::perturb_fa_resampling,
"perturb resample_stage2 start structures by this amount", 2.0 );
73 NEW_OPT( iterative::fapool_noesy_cst_weight,
"weight to apply to fullatom pool for noesy-autoassigned constraints", 5);
74 NEW_OPT( iterative::fapool_chemicalshift_weight,
"weight to apply to chemical shifts in centroid pool rescoring", 5 );
75 NEW_OPT( iterative::fapool_first_noesy_cycle_nr,
"start noesy assignment with this cycle selector", 6.0);
82 using namespace jd2::archive;
84 IterativeFullatom::IterativeFullatom()
96 mem_tr <<
"before setup fa-score function" << std::endl;
113 if ( option[ iterative::fapool_chemicalshift_weight ].user() ) {
151 tr.Info <<
"\ngenerate batch from " <<
name() <<
" " << batch.
batch() <<
"\n";
152 mem_tr <<
"IterativeFullatom::generate_batch " <<
stage() <<
" " << batch.
batch() << std::endl;
168 tr.Info << std::endl;
175 mem_tr <<
"IterativeFullatom::generated_batch " << std::endl;
194 for ( SilentStructs::const_iterator it =
decoys().begin(); it !=
decoys().end(); ++it ) {
200 Size most_jumps( 0 ), nr_jumps( 0 );
201 for (
Size i = 2; i<=4; ++i ) {
202 if (
core( i ).num_loop() > nr_jumps ) {
208 utility::io::ozstream broker( batch.
broker_file(), std::ios::app );
209 broker <<
"\nUSE_INPUT_POSE" << std::endl;
213 broker <<
"\nCLAIMER RigidChunkClaimer \n"
214 <<
"REGION_FILE "<< batch.
dir() <<
"core.rigid\n"
215 << ( flex ?
"KEEP_FLEXIBLE\n" :
"" )
216 <<
"END_CLAIMER\n\n" << std::endl;
219 broker <<
"\nCLAIMER StartStructClaimer\n"
221 <<
"END_CLAIMER\n\n" << std::endl;
225 utility::io::ozstream flags( batch.
flag_file(), std::ios::app );
226 flags <<
"-abinitio::skip_stages 1 2" << std::endl;