<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Dear developers and users,</p>
<p><br>
</p>
<p>My phenix.real_space_refine run crashes with the error mentioned below when I have used following command to run it on a&nbsp;complete ribosome (containing coordinates for small subunit and large subunit in a single pdb&nbsp;file):</p>
<p><span>phenix.real_space_refine model.pdb map.mrc resolution=4.5 reference_coordinate_restraints.enabled=true reference_coordinate_restraints.selection=&quot;chain A and resseq 2:700&quot; reference_coordinate_restraints.sigma=0.05 secondary_structure.enabled=True
 res.eff &gt; out.out</span><br>
</p>
<p><span><br>
</span></p>
<p><span>From the out.out file I can see that, it ran for 5 macro_cycles&nbsp;and started group b-factor refinement which reads&nbsp;(last few lines):</span></p>
<p><span><br>
</span></p>
<p><span></p>
<div>|-----------------------------------------------------------------------------|</div>
<div>|-group b-factor refinement (macro cycle = 0; iterations = 0)-----------------|</div>
<div>| r_work = 0.3809 r_free = 0.3809 target = 0.153923 restraints weight = None &nbsp;|</div>
<div>|-----------------------------------------------------------------------------|</div>
<div>|-group b-factor refinement (macro cycle = 1; iterations = 32)----------------|</div>
<div>| r_work = 0.3687 r_free = 0.3687 target = 0.144348 restraints weight = 1067.479|</div>
<div>|-----------------------------------------------------------------------------|</div>
<div>|-group b-factor refinement (macro cycle = 2; iterations = 37)----------------|</div>
<div>| r_work = 0.3724 r_free = 0.3724 target = 0.147257 restraints weight = 482.176|</div>
<div>|-----------------------------------------------------------------------------|</div>
<div>|-group b-factor refinement (macro cycle = 3; iterations = 32)----------------|</div>
<div>| r_work = 0.3747 r_free = 0.3747 target = 0.149066 restraints weight = 262.900|</div>
<div>|-----------------------------------------------------------------------------|</div>
<br>
</span>
<p></p>
<p><span>The run crashes at this point....</span></p>
<p><span><br>
</span></p>
<p>However, phenix.real_space_refine runs fine when I am refining&nbsp;a&nbsp;protein chain or a complex&nbsp;(for eg: just the large or the&nbsp;small subunit of a&nbsp;ribosome). Does it have to do with my pdb file being so big after merging of both subunits where I have also crossed
 99999 atoms and atom serial numbers&nbsp;start from A0000? A related question: What is the&nbsp;latest consensus of using chain IDs and atom serial numbers to use in&nbsp;phenix.real_space_refine for handling large files like ribosome pdbs&nbsp;? I have found some information
 on:&nbsp;<a href="http://cci.lbl.gov/hybrid_36/" class="OWAAutoLink" id="LPlnk576142" previewremoved="true">http://cci.lbl.gov/hybrid_36/</a></p>
<br>
<p><br>
</p>
<p>The error in terminal reads:</p>
<p><br>
</p>
<p></p>
<div>Traceback (most recent call last):</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/build/../modules/phenix/phenix/command_line/real_space_refine.py&quot;, line 782, in &lt;module&gt;</div>
<div>&nbsp; &nbsp; o = run(sys.argv[1:])</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/build/../modules/phenix/phenix/command_line/real_space_refine.py&quot;, line 518, in __init__</div>
<div>&nbsp; &nbsp; self.caller(func = self.run_macro_cycles, prefix=&quot;Macro-cycles&quot;)</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/build/../modules/phenix/phenix/command_line/real_space_refine.py&quot;, line 547, in caller</div>
<div>&nbsp; &nbsp; status = func(prefix=prefix, **kwargs)</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/build/../modules/phenix/phenix/command_line/real_space_refine.py&quot;, line 540, in run_macro_cycles</div>
<div>&nbsp; &nbsp; log &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = self.log)</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/modules/phenix/phenix/refinement/macro_cycle_real_space.py&quot;, line 66, in __init__</div>
<div>&nbsp; &nbsp; self.caller(self.refine_adp, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;ADP refinement&quot;)</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/modules/phenix/phenix/refinement/macro_cycle_real_space.py&quot;, line 71, in caller</div>
<div>&nbsp; &nbsp; status = func(prefix=prefix)</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/modules/phenix/phenix/refinement/macro_cycle_real_space.py&quot;, line 317, in refine_adp</div>
<div>&nbsp; &nbsp; adp_refinery.refine()</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/modules/cctbx_project/mmtbx/refinement/real_space/adp.py&quot;, line 78, in refine</div>
<div>&nbsp; &nbsp; b_isos_refined = self.refine_box_with_selected(selection=sel)</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/modules/cctbx_project/mmtbx/refinement/real_space/adp.py&quot;, line 56, in refine_box_with_selected</div>
<div>&nbsp; &nbsp; fmodel.update_all_scales(update_f_part1=False, apply_back_trace=True)</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/modules/cctbx_project/mmtbx/f_model/f_model.py&quot;, line 1452, in update_all_scales</div>
<div>&nbsp; &nbsp; self.apply_scale_k1_to_f_obs()</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/modules/cctbx_project/mmtbx/f_model/f_model.py&quot;, line 1500, in apply_scale_k1_to_f_obs</div>
<div>&nbsp; &nbsp; r_start = self.r_work()</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/modules/cctbx_project/mmtbx/f_model/f_model.py&quot;, line 2004, in r_work</div>
<div>&nbsp; &nbsp; selection &nbsp;= selection)</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/modules/cctbx_project/mmtbx/f_model/f_model.py&quot;, line 1972, in _r_factor</div>
<div>&nbsp; &nbsp; f_model = self.f_model_scaled_with_k1_w().data()</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/modules/cctbx_project/mmtbx/f_model/f_model.py&quot;, line 1730, in f_model_scaled_with_k1_w</div>
<div>&nbsp; &nbsp; data &nbsp; &nbsp; &nbsp; = self.scale_k1_w()*self.f_model_work().data())</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/modules/cctbx_project/mmtbx/f_model/f_model.py&quot;, line 2048, in scale_k1_w</div>
<div>&nbsp; &nbsp; selection=selection)</div>
<div>&nbsp; File &quot;/usr/local/phenix-1.11.1-2575/modules/cctbx_project/mmtbx/f_model/f_model.py&quot;, line 182, in _scale_helper</div>
<div>&nbsp; &nbsp; raise RuntimeError(&quot;Zero denominator in scale calculation.&quot;)</div>
<div>RuntimeError: Zero denominator in scale calculation.</div>
<div><br>
</div>
<br>
<p></p>
<p>Best regards,</p>
<p>Tofayel</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; font-family:Calibri,Arial,Helvetica,sans-serif; background-color:rgb(255,255,255)">
<p style="color:rgb(0,0,0)"></p>
<p style="color:rgb(0,0,0)"></p>
<p style="color:rgb(0,0,0)"><span style="font-size:12pt"></span></p>
</div>
</div>
</div>
</body>
</html>