<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Sorry if you get it twice...<br>
    <div class="moz-forward-container"><br>
      <br>
      -------- Forwarded Message --------
      <table class="moz-email-headers-table" border="0" cellpadding="0"
        cellspacing="0">
        <tbody>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">Subject:
            </th>
            <td>Re: [cctbxbb] phenix.map_value_at_point does not work
              with ccp4 maps</td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">Date: </th>
            <td>Fri, 11 Dec 2015 09:51:27 -0800</td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">From: </th>
            <td>Pavel Afonine <a class="moz-txt-link-rfc2396E" href="mailto:pafonine@lbl.gov">&lt;pafonine@lbl.gov&gt;</a></td>
          </tr>
          <tr>
            <th valign="BASELINE" align="RIGHT" nowrap="nowrap">To: </th>
            <td>cctbx mailing list <a class="moz-txt-link-rfc2396E" href="mailto:cctbxbb@phenix-online.org">&lt;cctbxbb@phenix-online.org&gt;</a>,
              <a class="moz-txt-link-abbreviated" href="mailto:takanori.nakane@bs.s.u-tokyo.ac.jp">takanori.nakane@bs.s.u-tokyo.ac.jp</a></td>
          </tr>
        </tbody>
      </table>
      <br>
      <br>
      <pre>Hi Takanori,

&gt; I encountered an error with phenix.map_value_at_point.
&gt; It does not work when ccp4 maps are provided.

indeed! At present it only works with MTZ files. It is a trivial effort 
to extend it to accepting the map too. I will do it in a day or two 
(writing from airport..).

&gt; It works fine
&gt; when an mtz file with map coefficients is provided.

As expected.

&gt; Probably this is related to the bug reported last September.
&gt; <a class="moz-txt-link-freetext" href="http://phenix-online.org/pipermail/cctbxbb/2015-September/001155.html">http://phenix-online.org/pipermail/cctbxbb/2015-September/001155.html</a>

Yes, maps are not expected in input!

&gt; It also has a problem that when there are multiple columns in an mtz
&gt; file and the specified label does not match any of them, the
&gt; last column is used without warning.

Hm.. this is not good, I will have a look!

&gt; phenix.fetch_pdb 3eml
&gt; phenix.fetch_pdb -x 3eml
&gt; phenix.maps 3eml.pdb 3eml-sf.cif
&gt;
&gt; # Just to use the latest svn version
&gt; cctbx.python 
&gt; ~/prog/dials/modules/cctbx_project/mmtbx/command_line/map_value_at_point.py 
&gt; point="1.0 2.0 3.0" 3eml_2mFo-DFc_map.ccp4
&gt;
&gt; Default params::
&gt;
&gt;   label = None
&gt;   point = None
&gt;   resolution_factor = 0.25
&gt;   scale = *sigma volume
&gt;   resolution = None
&gt;   low_resolution = None
&gt;
&gt; Map values at specified points:
&gt; Traceback (most recent call last):
&gt;   File 
&gt; "/mnt/wd_storage/nakane/prog/dials/modules/cctbx_project/mmtbx/command_line/map_value_at_point.py", 
&gt; line 162, in &lt;module&gt;
&gt;     run(sys.argv[1:])
&gt;   File 
&gt; "/mnt/wd_storage/nakane/prog/dials/modules/cctbx_project/mmtbx/command_line/map_value_at_point.py", 
&gt; line 146, in run
&gt;     "%10.3f"%map_3d.eight_point_interpolation(point_frac)).strip()
&gt; Boost.Python.ArgumentError: Python argument types in
&gt;     cctbx_maptbx_ext.eight_point_interpolation(double, tuple)
&gt; did not match C++ signature:
&gt;     eight_point_interpolation(scitbx::af::const_ref&lt;double, 
&gt; scitbx::af::c_grid_padded&lt;3ul, unsigned long&gt; &gt;, scitbx::vec3&lt;double&gt;)
&gt;
&gt; cctbx.python 
&gt; ~/prog/dials/modules/cctbx_project/mmtbx/command_line/map_value_at_point.py 
&gt; 3eml_map_coeffs.mtz point="1.0 2.0 3.0" label="2FOFCWT" # This works fine
&gt;
&gt; cctbx.python 
&gt; ~/prog/dials/modules/cctbx_project/mmtbx/command_line/map_value_at_point.py 
&gt; 3eml_map_coeffs.mtz point="1.0 2.0 3.0" label="WRONG_LABEL" # but this 
&gt; also proceeds!

Thanks! I will investigate and get back to you! This is very valuable 
information.

All the best,
Pavel

</pre>
      <br>
    </div>
    <br>
  </body>
</html>