This code is distributed under the terms and conditions of the CCP4 Program Suite Licence Agreement as 'Part 2' (Annex 2) software. A copy of the CCP4 licence can be obtained by writing to CCP4, Research Complex at Harwell, Rutherford Appleton Laboratory, Didcot OX11 0FA, UK, or from http://www.ccp4.ac.uk/ccp4license.php.