<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" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,</p>
<p><br>
</p>
<p>I'm having difficulty running phenix.real_space_correlation. I get the following error when comparing a pdb to a ccp4 map:</p>
<p><br>
</p>
<p>phenix.real_space_correlation ../17may31a_cryoSPARC_C1.pdb ../17may31a_cryoSPARC_C1.ccp4
<br>
-------------------------------------------------------------------------------<br>
Input PDB file name: ../17may31a_cryoSPARC_C1.pdb<br>
*************************************************<br>
&nbsp; Number of scatterers: 95640<br>
&nbsp; At special positions: 0<br>
&nbsp; Unit cell: (592.359, 589.659, 590.506, 90, 90, 90)<br>
&nbsp; Space group: P 1 (No. 1)<br>
-------------------------------------------------------------------------------<br>
Input map file name: ../17may31a_cryoSPARC_C1.ccp4<br>
**************************************************<br>
&nbsp; Map type:&nbsp; CCP4-format<br>
Traceback (most recent call last):<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-2829/build/../modules/cctbx_project/mmtbx/command_line/real_space_correlation.py&quot;, line 10, in &lt;module&gt;<br>
&nbsp;&nbsp;&nbsp; command_name = &quot;phenix.real_space_correlation&quot;)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-2829/modules/cctbx_project/mmtbx/real_space_correlation.py&quot;, line 335, in cmd_run<br>
&nbsp;&nbsp;&nbsp; (fobs_handle.file_name, map_handle.file_name))<br>
NameError: global name 'fobs_handle' is not defined</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>I get the following error when comparing a pdb to the reflection files. <br>
</p>
<p><br>
</p>
<p>phenix.real_space_correlation ../17may31a_cryoSPARC_C1.pdb ../17may31a_cryoSPARC_C1.mtz<br>
-------------------------------------------------------------------------------<br>
Input PDB file name: ../17may31a_cryoSPARC_C1.pdb<br>
*************************************************<br>
&nbsp; Number of scatterers: 95640<br>
&nbsp; At special positions: 0<br>
&nbsp; Unit cell: (592.359, 589.659, 590.506, 90, 90, 90)<br>
&nbsp; Space group: P 1 (No. 1)<br>
-------------------------------------------------------------------------------<br>
Input reflection file name: ../17may31a_cryoSPARC_C1.mtz<br>
********************************************************<br>
&nbsp; Miller array info: ../17may31a_cryoSPARC_C1.mtz:F-obs,SIGF-obs<br>
&nbsp; Observation type: xray.amplitude<br>
&nbsp; Type of data: double, size=762857<br>
&nbsp; Type of sigmas: double, size=762857<br>
&nbsp; Number of Miller indices: 762857<br>
&nbsp; Anomalous flag: False<br>
&nbsp; Unit cell: (278.528, 278.528, 278.528, 90, 90, 90)<br>
&nbsp; Space group: P 1 (No. 1)<br>
&nbsp; Systematic absences: 0<br>
&nbsp; Centric reflections: 0<br>
&nbsp; Resolution range: 278.528 3.90017<br>
&nbsp; Completeness in resolution range: 1<br>
&nbsp; Completeness with d_max=infinity: 1<br>
&nbsp; Wavelength: 1.0000<br>
Traceback (most recent call last):<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-2829/build/../modules/cctbx_project/mmtbx/command_line/real_space_correlation.py&quot;, line 10, in &lt;module&gt;<br>
&nbsp;&nbsp;&nbsp; command_name = &quot;phenix.real_space_correlation&quot;)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-2829/modules/cctbx_project/mmtbx/real_space_correlation.py&quot;, line 354, in cmd_run<br>
&nbsp;&nbsp;&nbsp; r_free_flags&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = r_free_flags)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-2829/modules/cctbx_project/mmtbx/utils/__init__.py&quot;, line 1572, in fmodel_simple<br>
&nbsp;&nbsp;&nbsp; ro = outliers_rejection,om=optimize_mask)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-2829/modules/cctbx_project/mmtbx/utils/__init__.py&quot;, line 1559, in get_fmodel<br>
&nbsp;&nbsp;&nbsp; twin_law&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = tl)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-2829/modules/cctbx_project/mmtbx/utils/__init__.py&quot;, line 1507, in fmodel_manager<br>
&nbsp;&nbsp;&nbsp; n_resolution_bins_output&nbsp;&nbsp;&nbsp;&nbsp; = n_resolution_bins_output)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-2829/modules/cctbx_project/mmtbx/f_model/f_model.py&quot;, line 439, in __init__<br>
&nbsp;&nbsp;&nbsp; if(f_calc is None): f_calc = self.compute_f_calc(miller_array=f_obs)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-2829/modules/cctbx_project/mmtbx/f_model/f_model.py&quot;, line 526, in compute_f_calc<br>
&nbsp;&nbsp;&nbsp; exp_table_one_over_step_size = p.exp_table_one_over_step_size)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-2829/modules/cctbx_project/cctbx/miller/__init__.py&quot;, line 1515, in structure_factors_from_scatterers<br>
&nbsp;&nbsp;&nbsp; algorithm=algorithm)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-2829/modules/cctbx_project/cctbx/xray/structure_factors/from_scatterers.py&quot;, line 53, in __call__<br>
&nbsp;&nbsp;&nbsp; algorithm=algorithm) # passing algorithm allows f to decide on CPU/GPU implementation<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-2829/modules/cctbx_project/cctbx/xray/structure_factors/from_scatterers_fft.py&quot;, line 18, in __init__<br>
&nbsp;&nbsp;&nbsp; manager, xray_structure, miller_set, algorithm=&quot;fft&quot;)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-2829/modules/cctbx_project/cctbx/xray/structure_factors/manager.py&quot;, line 233, in __init__<br>
&nbsp;&nbsp;&nbsp; assert xray_structure.unit_cell().is_similar_to(miller_set.unit_cell())<br>
AssertionError<br>
<br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p>Any suggestions would be appreciated. </p>
<p><br>
</p>
<p>Best wishes,<br>
Reza<br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
Reza Khayat, PhD
<div>Assistant Professor&nbsp;</div>
<div>City College of New York</div>
<div>Department of Chemistry</div>
<div>New York, NY 10031</div>
</div>
</div>
</body>
</html>