<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 Bill,</p>
<p><br>
</p>
<p>That's embarrassing, having missed the difference&nbsp;in cell size. The&nbsp;Reciprocal space&nbsp;variant (mtz) is now&nbsp;working. Thanks for the help.</p>
<p><br>
</p>
<p><br>
</p>
<p>Best wishes,</p>
<p>Reza <br>
</p>
<p><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>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Billy Poon &lt;bkpoon@lbl.gov&gt;<br>
<b>Sent:</b> Friday, August 4, 2017 4:24 PM<br>
<b>To:</b> Reza Khayat<br>
<b>Cc:</b> PHENIX user mailing list<br>
<b>Subject:</b> Re: [phenixbb] phenix.real_space_correlation</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">Hi Reza,
<div><br>
</div>
<div>For the first error, phenix.map_model_cc should be used when you have a model and a map in real space.</div>
<div><br>
</div>
<div>For the second error, the unit cell in the model (592.359, 589.659, 590.506, 90, 90, 90)&nbsp;is different than the unit cell in the reflections file (278.528, 278.528, 278.528, 90, 90, 90).&nbsp;</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>
<div>--</div>
<div><span style="font-size:12.8000001907349px">Billy K. Poon</span><br>
</div>
</div>
<div>Research Scientist, Molecular Biophysics and Integrated Bioimaging</div>
<div>Lawrence Berkeley National Laboratory</div>
<div>1 Cyclotron Road, M/S 33R0345</div>
<div>Berkeley, CA 94720</div>
<div>Tel: (510) 486-5709</div>
<div>Fax: (510) 486-5909</div>
<div>Web:&nbsp;<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__phenix-2Donline.org&amp;d=DwMFaQ&amp;c=4NmamNZG3KTnUCoC6InoLJ6KV1tbVKrkZXHRwtIMGmo&amp;r=1DzJFW0v6TgEhkW1gy_-ke-RbtvS1fzEbD5_hcb9Up0&amp;m=_kfHIIMR3VGLnuYe30Zr0ZFScLJL022yfZrkMqxcp6U&amp;s=zFvWTkDsiaht30qxwR4S_hrkO_PpnTKvG61139Ch-2E&amp;e=" target="_blank">https://phenix-online.org</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">On Fri, Aug 4, 2017 at 1:10 PM, Reza Khayat <span dir="ltr">
&lt;<a href="mailto:rkhayat@ccny.cuny.edu" target="_blank">rkhayat@ccny.cuny.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div 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>
------------------------------<wbr>------------------------------<wbr>-------------------<br>
Input PDB file name: ../17may31a_cryoSPARC_C1.pdb<br>
******************************<wbr>*******************<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>
------------------------------<wbr>------------------------------<wbr>-------------------<br>
Input map file name: ../17may31a_cryoSPARC_C1.ccp4<br>
******************************<wbr>********************<br>
&nbsp; Map type:&nbsp; CCP4-format<br>
Traceback (most recent call last):<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-<wbr>2829/build/../modules/cctbx_<wbr>project/mmtbx/command_line/<wbr>real_space_correlation.py&quot;, line 10, in &lt;module&gt;<br>
&nbsp;&nbsp;&nbsp; command_name = &quot;phenix.real_space_<wbr>correlation&quot;)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-<wbr>2829/modules/cctbx_project/<wbr>mmtbx/real_space_correlation.<wbr>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>
------------------------------<wbr>------------------------------<wbr>-------------------<br>
Input PDB file name: ../17may31a_cryoSPARC_C1.pdb<br>
******************************<wbr>*******************<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>
------------------------------<wbr>------------------------------<wbr>-------------------<br>
Input reflection file name: ../17may31a_cryoSPARC_C1.mtz<br>
******************************<wbr>**************************<br>
&nbsp; Miller array info: ../17may31a_cryoSPARC_C1.mtz:<wbr>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-<wbr>2829/build/../modules/cctbx_<wbr>project/mmtbx/command_line/<wbr>real_space_correlation.py&quot;, line 10, in &lt;module&gt;<br>
&nbsp;&nbsp;&nbsp; command_name = &quot;phenix.real_space_<wbr>correlation&quot;)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-<wbr>2829/modules/cctbx_project/<wbr>mmtbx/real_space_correlation.<wbr>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-<wbr>2829/modules/cctbx_project/<wbr>mmtbx/utils/__init__.py&quot;, line 1572, in fmodel_simple<br>
&nbsp;&nbsp;&nbsp; ro = outliers_rejection,om=<wbr>optimize_mask)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-<wbr>2829/modules/cctbx_project/<wbr>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-<wbr>2829/modules/cctbx_project/<wbr>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-<wbr>2829/modules/cctbx_project/<wbr>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_<wbr>array=f_obs)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-<wbr>2829/modules/cctbx_project/<wbr>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_<wbr>size)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-<wbr>2829/modules/cctbx_project/<wbr>cctbx/miller/__init__.py&quot;, line 1515, in structure_factors_from_<wbr>scatterers<br>
&nbsp;&nbsp;&nbsp; algorithm=algorithm)<br>
&nbsp; File &quot;/opt/X-tal_suite/phenix-1.12-<wbr>2829/modules/cctbx_project/<wbr>cctbx/xray/structure_factors/<wbr>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-<wbr>2829/modules/cctbx_project/<wbr>cctbx/xray/structure_factors/<wbr>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-<wbr>2829/modules/cctbx_project/<wbr>cctbx/xray/structure_factors/<wbr>manager.py&quot;, line 233, in __init__<br>
&nbsp;&nbsp;&nbsp; assert xray_structure.unit_cell().is_<wbr>similar_to(miller_set.unit_<wbr>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="m_7602904032018093528Signature">
<div name="divtagdefaultwrapper">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>
</div>
<br>
______________________________<wbr>_________________<br>
phenixbb mailing list<br>
<a href="mailto:phenixbb@phenix-online.org">phenixbb@phenix-online.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__phenix-2Donline.org_mailman_listinfo_phenixbb&amp;d=DwMFaQ&amp;c=4NmamNZG3KTnUCoC6InoLJ6KV1tbVKrkZXHRwtIMGmo&amp;r=1DzJFW0v6TgEhkW1gy_-ke-RbtvS1fzEbD5_hcb9Up0&amp;m=_kfHIIMR3VGLnuYe30Zr0ZFScLJL022yfZrkMqxcp6U&amp;s=HAVzWwFybbQlY5wOeT7CaecS7nAiufWES_M3x5UD21s&amp;e=" rel="noreferrer" target="_blank">http://phenix-online.org/<wbr>mailman/listinfo/phenixbb</a><br>
Unsubscribe: <a href="mailto:phenixbb-leave@phenix-online.org">phenixbb-leave@phenix-online.<wbr>org</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</body>
</html>