<div dir="ltr">The unquoted word &#39;global_&#39; (with trailing underscore) is part of the STAR file syntax (upon which CIF is based), but is explicitly forbidden in the formal CIF syntax:<div><br></div><div><a href="http://www.iucr.org/resources/cif/spec/version1.1/cifsyntax#global">http://www.iucr.org/resources/cif/spec/version1.1/cifsyntax#global</a><br>

</div><div><br></div><div style>However, for compatibility with the monomer library which is using the global_ keyword despite it being forbidden in the CIF syntax, we added support for a non-strict mode of the CIF parser in the iotbx which could support global_ data blocks. Of course, if the trailing underscore is lost, then it is a syntax error either way, as the parser is looking for the start of a data block, signified by a data block heading (starting with &#39;data_&#39;).</div>

<div style><br></div><div style>Cheers,</div><div style><br></div><div style>Richard</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 10 April 2013 16:24, Oleg Dolomanov <span dir="ltr">&lt;<a href="mailto:oleg@olexsys.org" target="_blank">oleg@olexsys.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Sorry, yes,&#39;global_&#39; is also a special global data block and should work...<br><br><div><div></div><hr>From: <a href="mailto:nechols@lbl.gov" target="_blank">nechols@lbl.gov</a><br>Date: Wed, 10 Apr 2013 16:17:53 -0700<div class="im">

<br>To: <a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a><br>Subject: Re: [cctbxbb] cif parser &amp; ccp4 mon_lib incompatibility<br><br></div><div><div class="h5"><div dir="ltr"><div>

On Wed, Apr 10, 2013 at 4:12 PM, Oleg Dolomanov <span dir="ltr">&lt;<a href="mailto:oleg@olexsys.org" target="_blank">oleg@olexsys.org</a>&gt;</span> wrote:<br><div>

<blockquote style="border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div><div dir="ltr"><div>the CIF parser will report this error if any of the CIF items is outside data_ or save_ blocks. So you need to change &#39;global&#39; to &#39;data_global&#39; to prevent this error.</div></div></div>



</blockquote><div><br></div><div>This would be true when using the CIF reader on its own, but for macromolecular apps (including the test script that&#39;s failing), we disable this error checking specifically for the CCP4 monomer library. �In fact the version we distribute with Phenix ($PHENIX/chem_data/mon_lib/list/mon_lib_list.cif) starts like this:</div>



<div><div><br></div><div>global_</div><div>_lib_name � � � � mon_lib</div><div>_lib_version � � �4.11</div><div>_lib_update � � � 15/04/05</div><div><br></div><div>It is very likely that we may start to distribute the entire chem_data tree from our web site as an optional add-on, which will greatly ease the use of CCTBX in other macromolecular applications (e.g. MolProbity). �Of course the CCP4 version will be more complete and up-to-date, although a) some of those restraints are not especially well-validated, and b) we incorporate additional information in the restraints we distribute.</div>



<div><br></div><div>-Nat</div></div></div></div></div>
<br></div></div><div class="im">_______________________________________________
cctbxbb mailing list
<a href="mailto:cctbxbb@phenix-online.org" target="_blank">cctbxbb@phenix-online.org</a>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a></div></div>                                               </div></div>
<br>_______________________________________________<br>
cctbxbb mailing list<br>
<a href="mailto:cctbxbb@phenix-online.org">cctbxbb@phenix-online.org</a><br>
<a href="http://phenix-online.org/mailman/listinfo/cctbxbb" target="_blank">http://phenix-online.org/mailman/listinfo/cctbxbb</a><br>
<br></blockquote></div><br></div>