Library:
-
A breaking change in
Op:Until now
parse_triplet("h,k,l")was equivalent toparse_triplet("x,y,z").
This is not how it's handled in cctbx and in, for example Pointless.
In the Pointless documentation of the REINDEX keyword there is such a note:Note that the real and reciprocal space operators correspond to mutually transposed matrices, eg "x-y,-y,-z" corresponds to "h,-h-k,-l".
Gemmi Op was changed to store the notation kind that was used at creation,
so nowparse_triplet("h,k,l") .triplet()gives"h,k,l", not "x,y,z".
New Op methods have been added:is_hkl(),as_hkl()andas_xyz()
Apart from this, in case of hkl-Ops parse_triplet and triplet silently transpose the rotation matrix. See #359 for details.
This change was extensively tested withMtz::reindex()– against Pointless.
It could happen that it causes problems in other scenarios. -
DDL2: added alternate (deposition) checks
-
Mtz: added C++ Mtz::write_to_buffer() and Python Mtz.write_to_bytes() (used for streaming MTZ files from web servers)
and C++ size_to_write()
These new C++ functions are currently undocumented, not sure if they are useful.
Changed Mtz::write_to_string() to clear the string instead of appending to it. Probably nobody expected the latter.
Reorganized MTZ reading to avoid fseek() – so we can read a stream or gzipped file, without storing/unpacking it into memory buffer as we did before (i.e. reading huge gzipped MTZ files uses less memory) -
added UnitCell::find_nearest_pbc_images()
-
CIF reading: added optional argument
int check_level=1(see docs for details) -
Form factors: support for custom form factors (in the form of sums of 5 Gaussians) – for a Cambridge project on chemistry-dependent form factors.
-
to_mmcif: write _atom_site_anisotrop.pdbx_PDB_model_num if there are 2+ models
-
to_pdb: split option use_linkr into use_linkr and use link_id
-
the built-in residue list is now partly editable (example in docs)
-
mmcif: workaround for a problem with reading 7pvv.cif (#369)
occupancy and B_iso_or_equiv are now optional (because of #375) -
pdb: added option ignore_ter to PdbReadOptions
-
started working on secondary structure determination – that's unfinished and unusable yet
-
renamed
interpolate_grid_of_aligned_model2()tointerpolate_grid_around_model() -
added functions
interpolate_points()andinterpolate_grid_flexible()(#363), needed in Pandda2
Python:
- added python bindings to Ccp4Base::ccp4_header and to some functions related to gemmi::ChemComp
Program
- gemmi-validate: new check for monomer files, and new option
--depoto check against PDB's deposition criteria (from DDL2)