cctbx

The Computational Crystallography Toolbox, the foundation of PHENIX and other packages.

Tool 088 of 100 in the MolForge directory of open-source tools. Every fact below was read from the repository's host on 2026-11-28.

cctbx, open-source tool for crystallography: The Computational Crystallography Toolbox, the foundation of PHENIX and other packages.

What cctbx is

cctbx, the Computational Crystallography Toolbox, is a collection of C++ modules with Python bindings for crystallographic computing. It covers unit cells and space groups, reflection data as symmetry-aware Miller arrays, structure factors (the Fourier components of electron density that diffraction measures), scattering factors, FFT-based maps, restraints and minimisers for refinement, and the mmtbx macromolecular toolbox used for model building, validation and refinement. It is the foundation of PHENIX and of DIALS, and its small-molecule toolbox underlies refinement in Olex2.

People use cctbx from Python scripts: read a model in PDB or mmCIF and reflections in MTZ, compute structure factors and R-factors, apply symmetry operations, build maps or set up custom refinement steps. The iotbx module reads and writes PDB, mmCIF, MTZ, CIF, SHELX and CNS formats. Conda packages make installation simpler than the historical source build.

cctbx is large and its documentation is spread across modules and mailing lists, so it suits people with crystallography background who need building blocks rather than a finished program.

Features

What it is for

Verified facts

FamilyCrystallography
Language or basisC++, Python
Repositoryhttps://github.com/cctbx/cctbx_project (GitHub)
LicenceNo licence detected by GitHub; read the repository before reuse
Main language on GitHubPython
Last commit2026-11-28
Latest releasev2026.10 (2026-11-02)
Stars308 on 2026-11-28
Open issues and pull requests175 on 2026-11-28
Repository created2015-07-22
Verified2026-11-28 by MolForge's checking script, against the host's API

Where cctbx fits

Symmetry, diffraction and macromolecular file handling.

Our comments on cctbx

MolForge does not run cctbx in production. This page is a verified pointer, not a review: the facts above come from the repository on the date shown, the description is ours, and we make no claim about accuracy or speed that we have not measured. If you maintain cctbx and something here is wrong or out of date, write to hello@molforge.ai and we will correct the source file.

Test status

Not tested by MolForge. To check cctbx yourself: clone the repository, follow the installation section of its README, and run the test suite the project ships before trusting a result; the last-commit date and the open issue count above tell you how alive the project is.

Questions people ask

Is cctbx the same as PHENIX?
No. PHENIX is a program suite for macromolecular structure solution built on cctbx and other components and distributed under its own licence. cctbx is the open-source library underneath. Much of PHENIX's functionality is reachable by importing cctbx and mmtbx modules in Python, but the PHENIX graphical interface and some tools are separate.
How do I install cctbx?
The simplest route is the cctbx-base package on conda-forge, which includes the Python bindings. Building from source with the project's bootstrap script is still possible and is what developers of PHENIX and DIALS do. The full toolbox is large, so expect a sizeable download either way.
Is cctbx suitable for beginners?
Not really. The API is extensive, documentation is spread across module pages, tutorials and mailing-list archives, and many functions assume familiarity with crystallographic concepts. For simple tasks such as reading mmCIF files or extracting coordinates, gemmi or Biopython are easier starting points; cctbx pays off when you need refinement-grade machinery.
Does cctbx handle small molecules or only proteins?
Both. The smtbx module provides small-molecule refinement and is what Olex2 uses for its refinement engine, while mmtbx targets macromolecules. The core modules for symmetry, reflections and structure factors are shared, so the same scripts can work on either kind of structure.
Where is the cctbx source code?
At https://github.com/cctbx/cctbx_project (GitHub). This is the address the host reported on the day of verification; renamed repositories are followed to their new home.
Is cctbx still maintained?
The last commit was pushed on 2026-11-28 and the latest tagged release is v2026.10 from 2026-11-02; the repository had 175 open issues and pull requests on 2026-11-28.
Does MolForge use cctbx?
No. MolForge runs nine of the hundred tools in this directory (RDKit, OpenMM, AutoDock Vina, Open Babel, MDTraj, pymbar and NGL, plus PySCF and xTB in MFsig); cctbx is listed because of its place in crystallography, not because we run it.

Guides that explain the methods

Other tools in crystallography