39 #include <basic/Tracer.hh>
42 #include <utility/exit.hh>
49 #include <utility/vector1.hh>
60 using namespace protocols;
67 if (
this != &other ) {
136 include_only_start_stage1_ = 0;
137 include_only_start_stage2_ = 0;
138 include_only_start_stage3_ = 0;
139 include_only_start_stage4_ = 0;
141 include_only_end_stage1_ = 0;
142 include_only_end_stage2_ = 0;
143 include_only_end_stage3_ = 0;
144 include_only_end_stage4_ = 0;
146 n_trial_min_stage1_ = 0;
147 n_trial_min_stage2_ = 0;
148 n_trial_min_stage3_ = 0;
149 n_trial_min_stage4_ = 0;
151 pcs_weight_stage1_ = 1.0;
152 pcs_weight_stage2_ = 1.0;
153 pcs_weight_stage3_ = 1.0;
154 pcs_weight_stage4_ = 1.0;
156 individual_scale_stage1_ = -1.0;
157 individual_scale_stage2_ = -1.0;
158 individual_scale_stage3_ = -1.0;
159 individual_scale_stage4_ = -1.0;
166 out <<
"pcs_weight_stage[1->4] " <<
172 out <<
"include_only_start_stage[1->4] " <<
178 out <<
"include_only_end_stage[1->4] " <<
184 out <<
"n_trial_min_stage[1->4] " <<
190 out <<
"individual_scale[1->4] " <<
196 out <<
"filenames / individual_weights" << std::endl;
207 std::cerr <<
"In the definition of the grid search parameters for the PseudocontactShift, you should ensure that for all stages:" << std::endl;
208 std::cerr <<
"1. the PCS_WEIGHT is positif" << std::endl;
209 std::cerr <<
"2. the weight of each lanthanide is positif" << std::endl;
210 std::cerr <<
"3. If the INCLUDE_ONLY tag is used: 0 < residue_start < residue_end" << std::endl;
211 std::cerr <<
"4. If the INDIVIDUAL_SCALE tag is used: its value must be positive" << std::endl;
212 std::cerr <<
"Looks like the problem is " <<
id << std::endl;
213 utility_exit_with_message(
"Please, review your PseudocontactShift parameter file and correct it");
218 if((start == 0) && (end == 0)){
235 (pcs_weight_stage1_ < 0)||
236 (pcs_weight_stage2_ < 0)||
237 (pcs_weight_stage3_ < 0)||
238 (pcs_weight_stage4_ < 0)
255 (individual_scale_stage1_ < 0) ||
256 (individual_scale_stage2_ < 0) ||
257 (individual_scale_stage3_ < 0) ||
258 (individual_scale_stage4_ < 0)
261 (individual_scale_stage1_ != -1.0) &&
262 (individual_scale_stage2_ != -1.0) &&
263 (individual_scale_stage3_ != -1.0) &&
264 (individual_scale_stage4_ != -1.0)
270 for(i = 1; i <= individual_weights_.size(); i++){
271 if(individual_weights_[i] < 0 ){