mxi is a data processing package for NXmx format macromolecular crystallography (MX) data: from the diffraction images to scaled, unmerged intensities ready for structure solution -- spot finding, indexing, refinement, integration, symmetry, scaling, the clustering of data from many crystals, and what the scaled data say of twinning. Small molecules too: --small-molecule lets the symmetry step consider every space group, centrosymmetric ones among them.
It is a new, standalone package. mxi is a completely new project, written from scratch in C++. It contains no DIALS code and does not need DIALS installed. It is compatible with DIALS: it follows DIALS' methods, reads and writes DIALS' files, and any step can be exchanged for DIALS' own (see Working with DIALS ).
Its purpose is almost instant data processing. mxi aims to process data as DIALS does, with results of similar quality, an order of magnitude more quickly -- fast enough to keep pace with modern detectors, and to give results while the crystal is still mounted. Spot finding and integration can run on a GPU, through CUDA or Apple's Metal.
It reads NXmx format data only. NXmx is the community standard format for X-ray diffraction images: a layout, built on the HDF5 file format, that keeps the images together with everything needed to interpret them -- the X-ray beam, the detector's geometry, how the crystal was rotated -- so that any program can read data from any beamline the same way. Modern detectors, such as DECTRIS's EIGER, write it directly; older formats can be converted, for example CBF by cbf2nxmx .
How it works: docs/algorithms.md , each stage's methods and sources.
A tutorial: docs/tutorials/cows-pigs-people.md , many crystals, and which belong together.
How it differs from DIALS, and why: docs/review.md .
Every command's options: docs/commands.md , from each command's own --help .
What changed in each release: RELEASE_NOTES.md .
Open issues: docs/outstanding.md .
Each release on this repository's GitHub Releases page has mxi built for each machine, in two forms: a wheel with everything, and an archive with mxi alone.
The wheel , for most: pip install it, best into an environment of its own, and it brings mxi , mxi-ui (the interface), mxi-view (its image viewer and mask editor) and mxeq (the referee), all of one version, and the Python they need.
Python 3.12, 3.13 or 3.14: every package the wheel needs has wheels of its own for these, on Linux, macOS and Windows alike. On a newer Python some may not yet -- in November 2026 gemmi and h5py had none for 3.15 -- and pip then tries to build them from source, which wants a compiler and HDF5 installed, and fails with a long error them. With the Python launcher, choose the version: py -3.14 -m venv mxi-env on Windows, python3.14 -m venv ~/mxi elsewhere.
Install mxi or mxi-cuda , not both: they give the same commands. The interface needs tkinter, which is not pip's to install -- python.org's Python has it; on Linux the system's python3-tk , and Homebrew's python-tk on macOS -- and mxi-ui --check says so if it is missing. mxi-ui finds the mxi installed with it whether or not the environment is on the PATH .
The archive , for a machine without Python, or only the programs: unpack it and put its bin on the PATH -- mxi alone, nothing else to install: HDF5, FFTW and the rest are built in, their licences in the archive's licenses/ . With FFTW, which is GPL, the released program is distributed under the GPL's terms; mxi's own source is BSD-3-Clause.
On macOS the program in the archive is not signed, so macOS blocks it once downloaded: clear the quarantine flag once, after unpacking.
On Windows, unzip it and put its bin on the PATH , or run bin\mxi.exe there. The Windows wheel installs as the others do: py -3.14 -m venv mxi-env , then mxi-env\Scripts\pip install the wheel, and mxi-env\Scripts\mxi-ui .
To build instead, take mxi- -source.tar.gz from the same page: the complete source, its submodules included, which GitHub's own source archives leave out. How releases are made: docs/release.md .
The latest build of main , not yet released, is the pre-release snapshot , rebuilt on every push: the mxi binary alone for each platform, at a fixed address -- for a machine with no compilers, to try what is coming:
Its mxi --version , and the first line of every log, give the version and the commit it was built from: mxi 1.3.2+3806819 .
Requires CMake 3.20 or later (tried with 3.22, Ubuntu 22.04's, and 4.4), a C++20 compiler with its C compiler, and HDF5's C library; and two submodules, gemmi (space groups) and bitshuffle (the images' compression). The configure stops if any is missing.
The build leaves one program, mxi , in build/ : every step is a command of it -- mxi find , mxi index -- and mxi help lists them. Either put build/ on the PATH , or install mxi , with mxi-view 's Python beside it, into a bin directory and put that on it:
That installs mxi alone. mxi-ui and mxi-view , its image viewer and mask editor, are Python with tkinter ( docs/ui.md ), in the wheel with mxeq, the referee -- which, sharing the wheel, still imports nothing of mxi's: it judges mxi's files, so it must not mxi's reading of them. From a checkout, pip install ./python gives them, finding the mxi on the PATH ; the build directory has them beside its mxi too, to run and test from there.
The steps below as forms, each building the real command and running it, its log, summary and plots beside it, and each step's images, spots and predictions in a viewer of their own: for processing, and for learning what the commands do ( docs/ui.md ). It needs Python with tkinter; mxi-ui --check says what is missing and how to install it.
Or the first eight in turn, for routine data (mxi merge is not among them), with the options they sent to the steps they belong to -- -j to every step, --gpu to spot finding and integration, a known cell and space group to indexing and scaling, --no-joint to indexing for several crystals, --small-molecule to symmetry, --d-min-auto to scaling:
Given a .rflx instead of images, it picks up after the step that wrote the file -- its writer, the file's creator -- and finishes: a cluster written by mxi correlation --write-clusters is scaled afresh and exported, and a file masked by mxi untrusted ( masked.rflx ) goes on from spot finding. Each step is the command above, run as it would be by hand, with its own output and log; data needing more than these options are processed a step at a time. A step that fails stops it: which step, its exit code, its log, and how to go on once it is put right -- the step's own command, or mxi process on its input for all that remains. Where it starts, where each option goes, and how to go on, with their flows: docs/process.md .
Each step reads the last one's file and writes its own, under the name shown unless -o names another: a .rflx , mxi's own format -- HDF5 holding the experiment list, the reflections and the processing's summary ( docs/rflx.md ). Every program also writes what it prints to mxi_ .log and takes --help and --version ; the main sequence's programs take --timing , where the time went. Every command takes -j N or --threads N , the threads for everything it does in parallel: by default every core the job may use -- on Linux its CPU affinity, so that a batch system's allocation or taskset is respected -- and on a shared node -j holds a job to its . mxi find --gpu and mxi integrate --gpu use a GPU where the build has one.
Checking a lattice (optional): mxi verify indexed.rflx -- or any later step's file -- says how much of what each lattice predicts was observed, by resolution shell: every reflection predicted to the indexed spots' limit, against the strong spots, judged as indexing judges them. Indexing counts the spots a lattice explains; this counts what it should explain and does not, so that a wrong cell or a second crystal shows ( docs/multi-lattice.md ). It changes nothing, and is not part of the sequence.
Several sweeps of one crystal: name every master to mxi import ; each program takes them all, the sweeps indexed in one basis, each its own crystal and scale model ( docs/multi-sweep.md ).
Several crystals in one beam: mxi index --max-lattices N ; each lattice is refined, integrated and scaled as its own experiment, the detector shared, cosym bringing them to one setting in mxi symmetry ( docs/multi-lattice.md ).
Many crystals, a data set each: after scaling them together, mxi correlation scaled.rflx --write-clusters finds the groups that belong together by their intensities, writes each as its own .rflx to scale alone, and an HTML report ( docs/correlation.md ).
Data sets processed separately -- each integrated on its own, say -- are joined by mxi combine a.rflx b.rflx ... -o combined.rflx , then go through mxi symmetry and mxi scale together; mxi split takes data sets out again, each alone or a chosen few together.
The options most often wanted -- every option of every command is in docs/commands.md :
The files. Every program reads DIALS' .expt and .refl as well as a .rflx , and writes them on request ( --output-expt , --output-refl , or -o naming a .refl ). mxi convert goes either way: mxi convert indexed.rflx writes indexed.expt and indexed.refl ; mxi convert indexed.expt indexed.refl the .rflx . Two things DIALS cannot read stay behind: each sweep's own crystal-less experiment, which mxi carries through indexing ( dials/dials#1029 ; --keep-sweeps keeps them), and mxi's scale model.
Swapping steps. Any step can be DIALS': dials.symmetry and dials.scale take mxi's integrated reflections, mxi's programs take DIALS' at any stage, and dials.image_viewer , dials.export and dials.merge read mxi's output.
Where they differ, and by how much, is in docs/review.md .
mxeq: comparisons and regression runs
mxeq is a Python package that judges mxi's output, independently of it: it reads files and imports nothing from src/ .
Comparing with DIALS ( python/README.md ): mxeq check compares two pipelines at a boundary; compare-expt two experiment lists; trend , explain and disagree where two integrations differ, and why; unique two scaled data sets a reflection at a time; equivalents integration's bias against the data's own symmetry equivalents, with no second program. truth judges a scaled data set against a refined structure's Fc^2, a SHELXL .fcf : absolutely, where the others are relative.
Regression runs ( docs/regression.md ): mxeq regress builds a commit, runs the chain over a set of real data sets, and keeps every figure in a history, so that runs, commits and machines can be compared:
ctest --test-dir build runs the C++ tests. pytest python/tests runs the Python tests: mxeq's, the interface's, and those of the programs, which run them on data given through MXI_* environment variables and are skipped, saying which, without them ( pytest -rs lists the reasons).
MXI_BUILD , the build directory, is the one most need: the programs are found in it -- MXI_FIND , MXI_INTEGRATE and the like, each from the build's link to mxi for that command, unless set apart. The data:
For example, from mxi's own steps on a sweep:
mxi-ui's window tests need a display -- a desktop, or xvfb -- and are skipped where MXI_NO_WINDOW_TESTS is set, as the release builds set it.
mxi implements methods described in the following papers, and is tested against the software they describe; please cite them alongside mxi:
DIALS: Winter, G., Waterman, D. G., Parkhurst, J. M., Brewster, A. S., Gildea, R. J., Gerstel, M., Fuentes-Montero, L., Vollmar, M., Michels-Clark, T., Young, I. D., Sauter, N. K. & Evans, G. (2018). DIALS: implementation and evaluation of a new integration package. Acta Cryst. D74, 85–97.
XDS: Kabsch, W. (2010). XDS. Acta Cryst. D66, 125–132. ; and Kabsch, W. (2010). Integration, scaling, space-group assignment and post-refinement. Acta Cryst. D66, 133–144.
cosym: Gildea, R. J. & Winter, G. (2018). Determination of Patterson group symmetry from sparse multi-crystal data sets in the presence of an indexing ambiguity. Acta Cryst. D74, 405–410.
Scaling: Beilsten-Edmands, J., Winter, G., Gildea, R., Parkhurst, J., Waterman, D. & Evans, G. (2020). Scaling diffraction data in the DIALS software package: algorithms and new approaches for multi-crystal scaling. Acta Cryst. D76, 385–399.
Clustering: Thompson, A. J., Beilsten-Edmands, J., Tam, C., Sanchez-Weatherby, J., Sandy, J., Mikolajek, H., Axford, D., Jaho, S., Hough, M. A. & Winter, G. (2025). Enhanced intensity-based clustering of isomorphous multi-crystal data sets in the presence of subtle variations. Acta Cryst. D81, 278–290.
The other methods mxi uses, and their references, are in docs/algorithms.md .
mxi was developed at the Northeastern Collaborative Access Team (NE-CAT) beamlines, which are funded by the National Institute of General Medical Sciences from the National Institutes of Health (P30 GM124165). NE-CAT is at the Advanced Photon Source, a U.S. Department of Energy (DOE) Office of Science User Facility operated for the DOE Office of Science by Argonne National Laboratory under Contract No. DE-AC02-06CH11357.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
