|
International Tables for Crystallography (2026). Vol. G. Early view chapter
https://doi.org/10.1107/97809553602060001026 |
Chapter 5.3. Other programming libraries and packages
Contents
-
Other programming libraries and packages
| html | pdf | chapter contents |
- 5.3.1. Introduction| html | pdf |
- 5.3.2. CIFtbx: Fortran tools for manipulating CIFs| html | pdf |
- 5.3.2.1. An overview of the library| html | pdf |
- 5.3.2.2. Initialization commands| html | pdf |
- 5.3.2.3. Read commands| html | pdf |
- 5.3.2.4. Write commands| html | pdf |
- 5.3.2.5. Variables| html | pdf |
- 5.3.2.6. Name aliases| html | pdf |
- 5.3.2.7. Implementation of the tools| html | pdf |
- 5.3.2.8. How to read CIF data| html | pdf |
- 5.3.2.9. How to write a CIF| html | pdf |
- 5.3.2.10. Error-message glossary| html | pdf |
- 5.3.2.11. Internals and programming style| html | pdf |
- 5.3.2.11.1. Programming style| html | pdf |
- 5.3.2.11.2. Memory management| html | pdf |
- 5.3.2.11.3. Use of INCLUDE| html | pdf |
- 5.3.2.11.4. Use of ENDDO| html | pdf |
- 5.3.2.11.5. Names of internal routines| html | pdf |
- 5.3.2.11.6. Use of the underscore character| html | pdf |
- 5.3.2.11.7. Names longer than six characters| html | pdf |
- 5.3.2.11.8. File management| html | pdf |
- 5.3.2.11.9. Case sensitivity| html | pdf |
- 5.3.2.11.10. Management of white space| html | pdf |
- 5.3.2.12. Distribution and changes from previous version| html | pdf |
- 5.3.3. CBFlib: an ANSI C library for manipulating image data| html | pdf |
- 5.3.3.1. General operation| html | pdf |
- 5.3.3.2. CBFlib function descriptions| html | pdf |
- 5.3.3.2.1. Low-level CBFlib functions| html | pdf |
- 5.3.3.2.2. High-level CBFlib functions| html | pdf |
- 5.3.3.2.3. General high-level functions| html | pdf |
- 5.3.3.2.4. Goniometer geometry functions| html | pdf |
- 5.3.3.2.5. Detector geometry functions| html | pdf |
- 5.3.3.2.6. Positioner geometry functions| html | pdf |
- 5.3.3.3. Compression schemes| html | pdf |
- 5.3.3.4. Sample templates| html | pdf |
- 5.3.3.5. Example programs| html | pdf |
- 5.3.3.6. Fortran support| html | pdf |
- 5.3.3.7. Python support| html | pdf |
- 5.3.3.8. Java support| html | pdf |
- 5.3.3.9. Support for HDF5| html | pdf |
- 5.3.4. The COD::CIF::Parser library| html | pdf |
- 5.3.4.1. CIF and open databases| html | pdf |
- 5.3.4.2. Requirements for a database CIF parser| html | pdf |
- 5.3.4.3. Internal representation| html | pdf |
- 5.3.4.4. Error message format| html | pdf |
- 5.3.4.5. CIF validation workflow| html | pdf |
- 5.3.4.6. Using CIF in Unix and Linux pipes| html | pdf |
- 5.3.4.7. Concatenation of CIFs| html | pdf |
- 5.3.4.8. Software availability| html | pdf |
- 5.3.5. STAR::Parser and related Perl modules| html | pdf |
- 5.3.6. Tools for mmCIF| html | pdf |
- 5.3.7. PyCIFRW| html | pdf |
- 5.3.8. CrystalInfoFramework.jl| html | pdf |
- 5.3.9. ImgCIFHandler.jl| html | pdf |
- 5.3.10. Tools for NeXus| html | pdf |
- 5.3.10.1. NeXpy| html | pdf |
- 5.3.10.2. General HDF5 tools| html | pdf |
- 5.3.10.3. silx and FabIO| html | pdf |
- 5.3.10.4. Viewing HDF5 data| html | pdf |
- 5.3.10.5. DIALS: convert data to NeXus| html | pdf |
- 5.3.10.6. Interoperation with CBF| html | pdf |
- 5.3.10.7. Use in related scientific fields| html | pdf |
- 5.3.11. Other initiatives| html | pdf |
- A5.3.1. | html | pdf |
- A5.3.2. | html | pdf |
- References | html | pdf |
-
Figures
- Fig. 5.3.2.1. Example application accessing aliased data names| html | pdf |
- Fig. 5.3.2.2. Sample program CIF_IN| html | pdf |
- Fig. 5.3.2.3. Example CIF read by the sample program CIF_IN shown in Fig| html | pdf |
- Fig. 5.3.2.4. Printout from the example program CIF_IN run on the test file of Fig| html | pdf |
- Fig. 5.3.2.5. Sample program to create a CIF| html | pdf |
- Fig. 5.3.2.6. Sample CIF created by the example program of Fig| html | pdf |
- Fig. 5.3.3.1. Schematic data structure of a CBF or imgCIF data set accessed through a handle| html | pdf |
- Fig. 5.3.3.2. Flow chart for a typical application reading CBF or imgCIF data| html | pdf |
- Fig. 5.3.3.3. Flow chart for an application writing CBF or imgCIF data| html | pdf |
- Fig. 5.3.3.4. Template imgCIF for use with a Dectris Pilatus 6M detector and a
-geometry sample goniometer| html | pdf |
- Fig. 5.3.3.5. An extract of program code for the conversion of image data to CBF format| html | pdf |
- Fig. 5.3.3.6. Code fragment to illustrate the creation of the DIFFRN_FRAME_DATA category| html | pdf |
- Fig. 5.3.3.7. A simplified code fragment for conversion of an ASCII CIF to a CBF file| html | pdf |
- Fig. 5.3.4.1. EBNF (International Organization for Standardization, 1996; Mann, 2006; Pattis, 2013) grammar (top-level rules) of the cod-tools error messages| html | pdf |
- Fig. 5.3.4.2. cif_validate usage example| html | pdf |
- Fig. 5.3.4.3. An example of Unix pipelines that produce concatenated CIF streams for (a) COD CIFs and (b) PDB files in the PDBX/mmCIF format (DDL2-compliant CIF with an orderly layout as imposed by the PDB on its archive files)| html | pdf |
- Fig. 5.3.4.4. Two methods to ensure unique data-block names in generated CIF streams: (a) a fast numbering method that guarantees the data blocks to be unique in the output stream (but not in the world); (b) a slower method that yields different data-block identifiers each time it is run and thus ensures they are unique in the world| html | pdf |
- Fig. 5.3.5.1. Skeleton version of an application to format a CIF dictionary for publication| html | pdf |
- Fig. 5.3.6.1. A snippet of code illustrating mmCIF/PDB file format conversion with the mmLib toolkit| html | pdf |
- Fig. 5.3.6.2. JSON report of an error detected by the mmCIF Validator| html | pdf |
- Fig. 5.3.6.3. Example of mmCIF Validator used as a Python library, showing how to output a list of errors if the validator runs successfully, and how to handle possible file-access exceptions| html | pdf |
- Fig. 5.3.7.1. A simple interactive session using PyCIFRW| html | pdf |
- Fig. 5.3.7.2. Retrieving dictionary content in PyCIFRW| html | pdf |
- Fig. 5.3.7.3. Working with dictionaries in PyCIFRW| html | pdf |
- Fig. 5.3.7.4. Iteration over loop rows in PyCIFRW| html | pdf |
- Fig. 5.3.8.1. A simple interactive session using CrystalInfoFramework.jl| html | pdf |
- Fig. 5.3.8.2. Retrieving dictionary content in CrystalInfoFramework.jl| html | pdf |
- Fig. 5.3.9.1. Using ImgCIFHandler.jl to obtain a single frame from SBGRID data set 973| html | pdf |
- Fig. 5.3.9.2. Using ImgCIFHandler.jl to obtain the fifth frame of scan SCAN01 from raw data associated with PDB ID 8QQ7| html | pdf |
- Fig. 5.3.9.3. Using ImgCIFHandler.jl to calculate the beam centre from an imgCIF file associated with PDB ID 8QQ7| html | pdf |
- Fig. 5.3.10.1. Part of the tree structure of the NeXus/HDF5 four-image lysozyme data set recorded on the Jungfrau 16M detector at SwissFEL and formatted as a NeXus file, from Brewster et al| html | pdf |
-
Tables
- Table 5.3.2.1. CIFtbx general monitor variables| html | pdf |
- Table 5.3.2.2. CIFtbx general control variables| html | pdf |
- Table 5.3.2.3. CIFtbx input monitor variables| html | pdf |
- Table 5.3.2.4. CIFtbx output control variables| html | pdf |
- Table 5.3.2.5. Error messages output by CIFtbx on program termination| html | pdf |
- Table 5.3.2.6. Warning messages output by CIFtbx| html | pdf |
- Table 5.3.2.7. Parameter statements in CIFtbx| html | pdf |
- Table 5.3.3.1. Return values from CBFlib functions| html | pdf |
- Table 5.3.3.2. Low-level CBFlib data-handling functions| html | pdf |
- Table 5.3.3.3. High-level CBFlib data-handling functions| html | pdf |
- Table 5.3.3.4. Formal parameters for low-level CBFlib functions| html | pdf |
- Table 5.3.3.5. Low-level CBFlib function prototypes| html | pdf |
- Table 5.3.3.6. Values for headers flags in cbf_read_file| html | pdf |
- Table 5.3.3.7. Values for headers flags in cbf_write_file| html | pdf |
- Table 5.3.3.8. Values for encodings in cbf_write_file| html | pdf |
- Table 5.3.3.9. Values for the parameter compression in the array management functions cbf_get_integerarrayparameters and cbf_set_integerarray| html | pdf |
- Table 5.3.3.10. Formal parameters for high-level CBFlib functions| html | pdf |
- Table 5.3.3.11. General high-level CBFlib function prototypes| html | pdf |
- Table 5.3.3.12. Device-specific high-level CBFlib function prototypes| html | pdf |
- Table 5.3.3.13. Structure of compressed data using the canonical-code scheme| html | pdf |
- Table 5.3.3.14. Structure of compressed data using the CCP4-style scheme| html | pdf |
- Table 5.3.3.15. Fortran routines in FCBlib| html | pdf |
- Table 5.3.4.1. Key–value pairs of a hash that represents a single CIF data block as constructed by COD::CIF::Parser| html | pdf |
- Table 5.3.5.1. Object methods provided by the STAR::DataBlock Perl module| html | pdf |
- Table 5.3.6.1. Significant classes and methods available in CIFPARSE| html | pdf |
- Table 5.3.6.2. The modules provided by the mmLib toolkit| html | pdf |
- Table 5.3.7.1. Selected PyCIFRW classes and methods for reading CIF data files and dictionaries| html | pdf |
- Table 5.3.8.1. Selected CrystalInfoFramework.jl methods for working with CIF data files and dictionaries| html | pdf |
- Table 5.3.9.1. Selected ImgCIFHandler.jl methods for working with imgCIF files| html | pdf |
- Table A5.3.1.1. Summary of packages discussed in this chapter| html | pdf |
- Table A5.3.2.1. CIF parsers compared in the CIF-parsers repository (Merkys et al., 2025a) as of July 2025| html | pdf |