The merged MTZ carries the number of observations merged into each value: N (type I) after
SIGIMEAN, N(+)/N(-) after SIGI(-) where the anomalous columns are written - the labels and the
integer type dials.merge gives them. The merged reflection carries the counts from the half-set
accumulators (rotation and on-the-fly merges) and per hand from the anomalous table; the two places
that swap the Bijvoet hands on a reindexing swap the counts with them. Centrics, which have no
anomalous split, carry N(+) = N(-) = 0. Every existing column keeps its label, type and value. The
synthetic merged generator carries the multiplicity it simulates and the writer tests check the new
columns; the MTZ column lists in the docs are updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HVeDQrPqZ52Tp6rzzZGxf3
(cherry picked from commit 01a24d7b7b37f6263a950cc56af069448922df48)
(cherry picked from commit 441f020a2b)
422 lines
31 KiB
Markdown
422 lines
31 KiB
Markdown
# Running Rugnux
|
|
|
|
```{contents} On this page
|
|
:local:
|
|
:depth: 2
|
|
```
|
|
|
|
## A first run in detail
|
|
|
|
The [Quick start](RUGNUX.md#quick-start) command on the 9ZLO dataset, with the released `rugnux`
|
|
binary installed as described there, is the whole of it:
|
|
|
|
```
|
|
rugnux -o 9zlo 9zlo/ASP0887_09_0114_master.h5
|
|
```
|
|
|
|
`-o 9zlo` is the prefix every output file is named from. The last argument is the dataset: its
|
|
master file (HDF5, any of the formats under [Input formats](RUGNUX_FORMATS.md), not only one
|
|
written by Jungfraujoch), or any one image of a CBF, marCCD, SMV or SFRM sequence. `-N` would set
|
|
the worker-thread count, which otherwise follows the machine. Nothing is assumed about the crystal:
|
|
the goniometer axis in the file tells Rugnux this is a rotation sweep, the unit cell comes from
|
|
indexing the data, the space group from its systematic absences, and the resolution limit from where
|
|
CC1/2 falls off. Progress, statistics and timing go to the terminal, and the output files land next
|
|
to each other. Serial stills and a run with a model start the same way, with the stills' files or
|
|
the model added to the inputs ([Quick start](RUGNUX.md#quick-start)).
|
|
|
|
On 9ZLO the terminal ends with this summary (17 s with release 1.0.0-rc.183 on a desktop
|
|
with a 16-core CPU and an NVIDIA RTX 5080, the files on a local SSD; the CPU alone takes minutes):
|
|
|
|
```
|
|
Result OK: Merged to 1.56 A in P 21 21 21. No warnings.
|
|
Space group P 21 21 21
|
|
Unit cell 38.363 89.746 106.871 90.000 90.000 90.000
|
|
Resolution 1.56 A written; the CC1/2 fall-off is fitted at 1.64 A
|
|
Completeness 100.0 % to 1.66 A; 99.7 % over the full written range
|
|
Signal I/sigma 11.6 R_meas 12.0 % CC1/2 0.999 ISa 23.6 (23.1-24.0)
|
|
Anomalous no usable signal (SigAno 0.61 in the lowest shell (0.80 = none), CC_anom -0.16; no
|
|
model to read an anomalous map at)
|
|
Files 9zlo.cif 9zlo.hkl 9zlo.ins 9zlo.mtz 9zlo_detector.jpg
|
|
9zlo_log.txt 9zlo_plot.txt 9zlo_report.txt 9zlo_unmerged.mtz
|
|
Wall time 17.30 s
|
|
```
|
|
|
|
`9zlo_report.txt` is written for a person, top to bottom: it says which space group was chosen and
|
|
on what evidence, how far the data go, and anything that needs attention. To pull one number out of
|
|
it in a script, every value is a `KEY= value` line:
|
|
|
|
```
|
|
grep '^SPACE_GROUP_NUMBER= ' 9zlo_report.txt
|
|
grep '^SPACE_GROUP_NAME= ' 9zlo_report.txt # the setting, which the number does not name
|
|
grep '^UNIT_CELL_CONSTANTS= ' 9zlo_report.txt
|
|
grep '^INCLUDE_RESOLUTION_RANGE= ' 9zlo_report.txt
|
|
grep '^ISA= ' 9zlo_report.txt
|
|
grep '^# WARNING:' 9zlo_report.txt
|
|
```
|
|
|
|
On 9ZLO these give `19`, `P 21 21 21`, `38.363 89.746 106.871 90.000 90.000 90.000`,
|
|
`68.727 1.565` and `23.57`, with no warning; the deposited structure has the same space group, a
|
|
cell within 0.5 % of this one, and 2.0 A as its resolution. A second run of the same command, or a
|
|
run on another GPU or on the CPU, repeats the space group, the cell to 0.1 % and the resolution to
|
|
one shell; the last digit of a statistic can differ.
|
|
|
|
With the AlphaFold prediction of the protein as the model (the Quick start's second command,
|
|
`rugnux -o 9zlo --model AF-P17090-F1-model_v6.cif 9zlo/ASP0887_09_0114_master.h5`) the run goes on
|
|
to molecular replacement and refinement and takes 22 s (the paper's Extended Data Table 1 times
|
|
this dataset with an earlier release, which placed the model but did not refine it);
|
|
`MR_DECISION= AGREES` says the two
|
|
copies were placed and the merged data agree with the placement, and `REFINE_R_WORK= 0.2707`,
|
|
`REFINE_R_FREE= 0.2967` are the refined model's R factors (they can differ in the second decimal
|
|
between builds) (the deposited model, built and refined
|
|
against these data, has an R-free of 0.219). The files the run writes are listed under
|
|
[Output files](#output-files).
|
|
|
|
One caveat for a script reading those keys: where the space group is one of an **enantiomorphic
|
|
pair**, `SPACE_GROUP_NUMBER=` / `SPACE_GROUP_NAME=` carry one member of the pair by convention, not
|
|
by determination — the report says so beside them, in section 2, as `SPACE_GROUP_ALTERNATIVES=`
|
|
naming the other hand and `SPACE_GROUP_ENANTIOMORPH= UNDETERMINED`. Treat the two
|
|
hands as interchangeable until a model settles it: with `--model`, where the data accept the model
|
|
(`MODEL_FIT= ACCEPTED`), the report carries
|
|
`MODEL_ENANTIOMORPH_ADOPTED= TRUE` and the model's group instead, and refining an isomorphous model
|
|
against the wrong hand of the pair costs nothing subtler than an R factor near 0.55.
|
|
|
|
**Useful variations**, each independent of the others:
|
|
|
|
```
|
|
# tell it where the data really stop, if you already know - this sharpens the
|
|
# space-group search and the error model
|
|
rugnux -o myrun --scaling-high-resolution 1.4 dataset_master.h5
|
|
|
|
# a quick look at the first 200 images only
|
|
rugnux -o quicklook -e 200 dataset_master.h5
|
|
|
|
# merge as usual, but also keep the per-image file so the data can be re-merged later
|
|
rugnux -o myrun --write-process-h5 dataset_master.h5
|
|
|
|
# skip the unmerged MTZ (written by default), when only the merged data is wanted
|
|
rugnux -o myrun --no-export-unmerged dataset_master.h5
|
|
|
|
# check the merged data against a known structure: R-work / R-free, maps and the
|
|
# refined model (the model may also be given as a second input, without --model)
|
|
rugnux -o myrun --model model.pdb dataset_master.h5
|
|
```
|
|
|
|
Re-merging does not re-read the images and takes seconds. Run once with `--write-process-h5`
|
|
to keep the per-image file. `--mode scale` then re-scales and re-merges the reflections in it:
|
|
|
|
```
|
|
rugnux -o myrun --write-process-h5 dataset_master.h5 # integrate and merge once
|
|
rugnux --mode scale -o remerged --scaling-high-resolution 1.8 myrun_process.h5 # re-merge, here to 1.8 A
|
|
```
|
|
|
|
Use it to try a different resolution limit or outlier rejection without paying for integration
|
|
again. The anomalous signal needs no option on rotation data: every merge keeps I(+) and I(-),
|
|
and `-A` changes nothing there (on serial stills it is what keeps the hands apart). `--mode scale` merges in the space group and cell the file
|
|
records, so the second command needs no `-S`. Note that `--no-merge` also writes a `_process.h5`,
|
|
but a run that never merged never determined a space group either, so re-merging that file lands in
|
|
P1 unless you pass `-S` yourself — `--write-process-h5` is the one to use.
|
|
|
|
## Rotation data
|
|
|
|
Index, integrate, scale and merge a rotation sweep, fully de novo:
|
|
|
|
```
|
|
rugnux rotation_master.h5 \
|
|
-o rotation_run \
|
|
--scaling-high-resolution 1.4
|
|
```
|
|
|
|
Because the dataset carries a rotation goniometer axis, it is processed as **rotation data by
|
|
default**: two-pass rotation indexing (index the sweep once, then process every frame against that
|
|
lattice) with the **`rot3d`** partiality model (rotation partials combined into 3D fulls). Scaling
|
|
and merging run **by default** (for both rotation and stills; `--no-merge` turns them off); the unit
|
|
cell is taken from the rotation indexer and the space group is determined from systematic absences,
|
|
and both are written
|
|
into the merged files.
|
|
|
|
Run **fully de novo** (no `-C`/`-S`) for the best result — supplying a cell or space group up front
|
|
tends to *degrade* low-symmetry cases. A `-S` group whose Bravais lattice the crystal turns out not to
|
|
have stops the run and names the cell that was indexed, rather than merging in a frame the reflections
|
|
are not in; where the lattice does have that group's setting, the reflections are reindexed into it.
|
|
A primitive `-S` group on a lattice indexed as centred is the exception: it is merged as asked, with a
|
|
warning. `--scaling-high-resolution` (set it to your expected
|
|
resolution) sharpens both the space-group search and the error model. To tune the first pass use
|
|
`--two-pass-rotation=100` (or `-R100` — the first-pass image count); to force the sweep to be
|
|
treated as independent stills use `--force-still`.
|
|
|
|
By default a rotation run also **post-refines the geometry** in a second pass: the first pass
|
|
integrates and merges the first half of the sweep (at least 120° of it) at the header geometry (`--prepass-fraction 1` for all of it), then the detector distance + beam centre and the crystal
|
|
cell / rotation-axis are refined against the merged fulls (cross-validated; the distance moves 1 % a
|
|
step and a larger move is ratified by re-indexing, and the gauge-weak beam centre stays within 15 px of
|
|
the centre the first pass ran at or of the run's own measured centre, whichever is nearer), and the second pass
|
|
re-indexes de novo and re-integrates at the refined geometry. The refined pass is the canonical
|
|
`<prefix>_*` output; the header-geometry pass merges only to choose the space group and to judge the
|
|
refined pass against, and writes no merged files of its own — no `<prefix>_01.mtz`, `.cif` or
|
|
`.hkl`, and no `_01_plot.txt` or `_01_detector.jpg`. (Where a process file is asked for at all, with `--no-merge` or
|
|
`--write-process-h5`, each pass still writes its own, so `<prefix>_01_process.h5` appears beside
|
|
`<prefix>_process.h5`.) Disable it with `--rotation-no-postrefine`.
|
|
|
|
After the per-frame scale-fulls step, rotation scaling applies three kinds of **correction surface**, **on by
|
|
default** (`--no-scaling-corrections` disables all):
|
|
|
|
- **Decay** — a global Debye–Waller relative-*B* over the run, for the radiation damage that weakens
|
|
later frames more at high resolution (a resolution×time systematic the resolution-flat per-frame
|
|
scale cannot remove). It only engages when the total relative-*B* exceeds a physical floor (2 Ų). An
|
|
optional `--relative-b[=deg]` extends this single global rate to a smooth per-batch relative-*B* curve
|
|
(default 10°-of-rotation batches when bare, off otherwise), cross-validated like the surfaces here, for
|
|
crystals whose decay is non-linear in dose.
|
|
- **Absorption** — a smooth multiplicative factor over the diffracted-beam direction in the goniometer
|
|
frame (path length through the crystal), offered as a grid, as spherical harmonics and as a
|
|
surface that also varies with the rotation angle. Negligible at hard X-rays / thin crystals; it
|
|
matters at low photon energy and on strongly absorbing crystals. A smooth absorption error
|
|
largely cancels among symmetry mates (little effect on the error model / ISa) but biases the
|
|
intensities, so its benefit shows up in *R*<sub>free</sub> rather than in the merging statistics.
|
|
- **Modulation** — a smooth multiplicative factor over the position where a reflection lands on the
|
|
detector (a flat-field: detector-response and geometric systematics that vary across the detector
|
|
plane). Symmetry-equivalents of one reflection land at different detector positions as the crystal
|
|
rotates, which over-determines the surface. Because it lives in the detector frame (not the
|
|
rotation) the same correction concept applies to stills. On a detector with a systematic it is the
|
|
largest of the three, lowering *R*<sub>meas</sub> while holding or improving CC1/2 and the
|
|
anomalous signal.
|
|
|
|
All of them are **cross-validated** — fitted on even-numbered frames and used to merge the odd ones,
|
|
and the other way round, and kept only if the correlation between the two half-set means, within
|
|
resolution shells, rises over the same halves merged without the surface. The score does not involve
|
|
the sigmas, so a surface can never pass by merely reshaping them; where the systematic is absent the
|
|
surface is a no-op rather than a source of added noise, which is why they are safe to leave on
|
|
([§10.6](CPU_DATA_ANALYSIS_INTEGRATION.md#106-rotation-datasets-combining-partials-into-fulls-3d-integration)).
|
|
|
|
Independently of any correction, a rotation run prints a **radiation-damage report** — the per-image
|
|
scale correlation-to-merge and mosaicity versus dose, and the relative *B*-factor change over the run
|
|
(first→last) together with a per-batch relative-*B* curve, also written to the merged mmCIF. It is a
|
|
data-quality-vs-dose diagnostic and never alters the merged intensities. A batch whose data cannot
|
|
support a measurement prints `-` instead of a value, and the first→last number is printed only where a
|
|
straight line describes the curve — damage is progressive, so a curve that dips and recovers is a
|
|
disturbance of the sweep, not dose, and the report says so and points at the sweep-quality section
|
|
(`RADIATION_DAMAGE_RELATIVE_B= NOT_A_TREND`).
|
|
|
|
## Still / serial data
|
|
|
|
A dataset with **no goniometer axis**, or one whose axis does not turn (e.g. a serial grid scan), is
|
|
processed as **independent stills automatically** — no flag needed. A run spread over several files
|
|
is given as all of them at once — several NXmx masters of one setup, or the files an XFEL pipeline
|
|
writes ([Serial XFEL inputs](RUGNUX_FORMATS.md#serial-xfel-inputs)):
|
|
|
|
```
|
|
rugnux -o serial *_master.h5 # several NXmx masters, read and merged as one run
|
|
rugnux -o serial run*.h5 # all the files of one stills dataset; *.cxi, *.xtc alike
|
|
```
|
|
|
|
Where the cell and space group are known, give them; where the detector's panels are described by a
|
|
CrystFEL geometry file, give that too:
|
|
|
|
```
|
|
rugnux -o serial -C 79,79,38,90,90,90 -S P43212 --crystfel-geometry detector.geom run*.h5
|
|
```
|
|
|
|
The wavelength and distance are read from the data or the geometry file; `--wavelength` and
|
|
`--detector-distance` are only for files that state neither (a distance given there is held, not
|
|
refined). A reference reflection file of the same crystal form (`-z reference.mtz`) or a model
|
|
(`model.pdb` as a further input, or `--model`) can be added to any of these.
|
|
|
|
A crystal form with an [indexing ambiguity](RUGNUX_ADVANCED.md#the-indexing-ambiguity) — P3, P4, P6 and their
|
|
relatives — needs the space group on the run that integrates: every crystal is indexed in one of the
|
|
alternative indexings at random, and they are averaged together in the merge unless the crystals are put
|
|
into one first. With `-S` given, the run does that from the data alone, making the crystals consistent
|
|
with each other (`INDEXING_AMBIGUITY_RESOLVED= data`); a reference (`-z`) puts each image into the
|
|
reference's indexing instead, so that the merge also comes out in it (a `--model` relabels the finished
|
|
merge into its indexing and changes nothing else). Without `-S` and without a reference, the mixed merge can look more symmetric than the
|
|
crystal is, and the run warns.
|
|
|
|
`ffbidx` requires a known cell (`-C`) and is the indexer of choice for sparse serial stills; the
|
|
default `-X Auto` picks it for stills whenever a cell is given, so there is no `-X` to set; without a
|
|
cell the stills are indexed de novo. The self-calibrating spot finder is on by default for both workflows (`--no-adaptive-spots` turns it off), and for
|
|
serial stills leave `--min-pix-per-spot` **unset** so it is chosen per image: this indexes more frames,
|
|
and usually to higher resolution, than a fixed threshold and min-pix. (You can still pin a fixed
|
|
threshold with `--spot-sigma` / `--spot-threshold` and a fixed min-pix with `--min-pix-per-spot`.)
|
|
If a dataset *does* carry a
|
|
goniometer axis but you want per-frame stills processing anyway, add `--force-still`.
|
|
|
|
## Small-molecule data
|
|
|
|
A small-molecule rotation sweep is processed with the same command. No option marks it as
|
|
small-molecule data:
|
|
|
|
```
|
|
rugnux -o xtal sweep_master.h5
|
|
```
|
|
|
|
The differences from protein data are handled automatically:
|
|
|
|
- **Short cell axes.** The FFT search's floor is 10 Å, but on a rotation run a row shorter than that,
|
|
down to 3 Å, is recognised under the multiple of it the search reports, so a cell with short axes is
|
|
indexed on its true axes.
|
|
- **Wide and split spots.** Spots far from the beam, at the high energies small-molecule data are often
|
|
taken at, grow several times wider than the integration disk, and a crystal of slightly misaligned
|
|
domains records each reflection as two or more spots. The pre-scan measures how wide the spots and
|
|
their offsets from the predicted positions are across the detector, and the integration follows that
|
|
footprint wherever it outgrows the disk ([§9.1](CPU_DATA_ANALYSIS_INTEGRATION.md#91-regions-of-interest));
|
|
on compact spots nothing changes.
|
|
- **Sparse patterns.** A lattice that explains too few spots on most frames to pass the per-frame test
|
|
is integrated on every frame rather than only on the frames that happen to carry more spots
|
|
([§4.1](CPU_DATA_ANALYSIS_INDEXING.md#41-indexed-spot-decision-inlier-test)). Where a sweep has few
|
|
reflections per frame, the per-frame scale may be taken from the full reflections alone instead of
|
|
from the partials; the merge decides that from the data and the log says which it took
|
|
([§10.6](CPU_DATA_ANALYSIS_INTEGRATION.md#106-rotation-datasets-combining-partials-into-fulls-3d-integration)).
|
|
- **Overloads.** A measurement of a reflection with an overloaded pixel on any of its frames is left
|
|
out, as XDS leaves it out: its brightest part is the part that was not measured. On a strongly diffracting crystal
|
|
these are the strongest low-order reflections, and `OBSERVATIONS_REJECTED_OVERLOAD=` in the report
|
|
counts them. Many of them mean the sweep wants a weaker beam, not different processing.
|
|
- **Space group.** The search names glide planes, and groups without a centre of symmetry as well as
|
|
centrosymmetric ones. Where the absences cannot separate the two (C2/c and Cc, Pnma and Pna2₁), the
|
|
centrosymmetric group is written and the other is listed in `SPACE_GROUP_ALTERNATIVES=`, unless the
|
|
intensity statistics read acentric and the lattice rules twinning out; `SPACE_GROUP_CENTRE=` says
|
|
which of these happened (see [The results report](RUGNUX_REPORT.md#the-space-group-and-the-sohncke-answer-beside-it)).
|
|
Structure solution and refinement settle it.
|
|
|
|
Two settings are worth a look before running. The default polarization is what a miniCBF or d*TREK header
|
|
states, and otherwise `--polarization 0.99`, an undulator's; a laboratory source is close to
|
|
unpolarized, and neither ADSC SMV, marCCD nor NXmx files state it, so give the instrument's value there. And the written reflections stop where CC1/2 falls off (the default
|
|
`--resolution-cutoff cc-logistic`, the same cut for every file, `.hkl` included); `--resolution-cutoff
|
|
off` keeps everything to the edge of the detector, for a refinement that weights the weak data itself.
|
|
|
|
The file for SHELX is `xtal.hkl`: on a rotation sweep it holds the scaled reflections **unmerged**,
|
|
each at the index it was measured at, so SHELXL computes R(int) and R(sigma) itself and the Friedel
|
|
opposites it needs for the absolute structure are all there — no `-A` is needed. How to take it into
|
|
SHELXT and SHELXL is under
|
|
[Small-molecule structures with SHELXT and SHELXL](RUGNUX_INTEGRATION.md#small-molecule-structures-with-shelxt-and-shelxl).
|
|
Absorption is corrected only by the empirical surface a rotation run fits and keeps where it helps
|
|
([Rotation data](#rotation-data)); there is no correction from the crystal's measured faces.
|
|
`--model` is for macromolecular models and plays no part here.
|
|
|
|
## Output files
|
|
|
|
**Output** (controlled by `-o, --output-prefix`, default `output`):
|
|
|
|
- `<prefix>_process.h5` — NXmx-compliant HDF5 with derived metadata (spots, indexing,
|
|
integration, azimuthal integration, per-image statistics). See
|
|
[HDF5 / NeXus data format](HDF5.md) for the layout. Written by default only when **not** merging
|
|
(i.e. under `--no-merge`); add `--write-process-h5` to also write it when merging.
|
|
It does not copy the images: `/entry/data/data` is a virtual dataset over the *input* files, so
|
|
the input has to stay where it was for the pictures to be readable, and the pixel metadata
|
|
(`bit_depth_readout`, `underload_value`, the dataset type) describes those files rather than the
|
|
signed 32-bit container Rugnux processes in.
|
|
- Merging is **on by default** (`--no-merge` disables it). The merged reflections are written in
|
|
**three** formats — each has its uses downstream:
|
|
- `<prefix>.mtz` — CCP4 MTZ for the CCP4 / phenix reflection tools. The columns are
|
|
`H K L IMEAN SIGIMEAN N I(+) SIGI(+) I(-) SIGI(-) N(+) N(-) F SIGF F(+) SIGF(+) F(-) SIGF(-) FreeR_flag`
|
|
(`F` is the French–Wilson amplitude, `N` the number of observations merged into each value); the anomalous columns are present whenever any reflection
|
|
carries a Bijvoet split — a rotation run always does, a stills run only with `-A`.
|
|
- `<prefix>.cif` — mmCIF, for deposition and as the self-describing native format (also carries the
|
|
merging statistics, ISa, twinning and radiation-damage indicators).
|
|
- `<prefix>.hkl` — SHELX **HKLF 4** text (`h k l I σ(I)`, fixed `3I4,2F8.2`), the direct input for
|
|
**SHELXL** and **SHELXC / ANODE / SHELXD**. On rotation data it holds the scaled full reflections
|
|
**unmerged** — every correction applied, symmetry equivalents not averaged, each at the index it was
|
|
measured at — so SHELXL reports Rint and Rsigma itself and the anomalous signal is all there;
|
|
stills runs write the merged reflections (Bijvoet mates at `+hkl` and `-hkl`). Intensities are put
|
|
on a common scale so the largest value fits the fixed-width field, and the file ends with the
|
|
`0 0 0` terminator record.
|
|
- `<prefix>.ins` — the SHELX instructions to go with the `.hkl`: `CELL` at the wavelength, `ZERR`
|
|
with the cell's e.s.d.s, `LATT` and `SYMM` for the space group, and a placeholder `SFAC`/`UNIT` for the
|
|
user to replace with the formula (see [Small-molecule structures with SHELXT and SHELXL](RUGNUX_INTEGRATION.md#small-molecule-structures-with-shelxt-and-shelxl)).
|
|
|
|
All three carry the **refined unit cell** (from rotation indexing) and the **space group determined
|
|
from systematic absences** (constrained to the indexed lattice symmetry).
|
|
- `<prefix>_unmerged.mtz` — the integrated observations *before* merging, as an unmerged MTZ in
|
|
POINTLESS's column layout, so the data can be scaled and merged by **aimless**, **pointless**,
|
|
**careless** or `iotbx.merging_statistics` instead of by Rugnux. Written by default, alongside the
|
|
merged files and with `--no-merge` too; `--no-export-unmerged` skips it. See
|
|
[The unmerged export](RUGNUX_INTEGRATION.md#the-unmerged-export). `--export-unmerged-partials` writes
|
|
`<prefix>_unmerged_partials.mtz`, one row per image, instead of summing.
|
|
- With `--model`, the validation outputs land beside the files above: the map-coefficient MTZ
|
|
`<prefix>_maps.mtz` (σ<sub>A</sub>-weighted 2mFo−DFc and mFo−DFc; Coot and PyMOL open it
|
|
directly as maps), and
|
|
the model **as placed** against the data as `<prefix>_model.cif` **and** `<prefix>_model.pdb` —
|
|
the coordinates that go with the maps, in the cell and space group of `<prefix>.mtz`. Mind the
|
|
names: `<prefix>.cif` is merged *reflections*, `<prefix>_model.cif` is *coordinates*. The PDB is
|
|
there because fragment-screening tools want a `<name>.pdb` beside a `<name>.mtz` — PanDDA's
|
|
per-dataset input layout, and the pair dimple produces — and it is skipped, with a log line, for
|
|
a cell the PDB format cannot hold. See
|
|
[Validating against a model](RUGNUX_ADVANCED.md#validating-against-a-model-rugnux---model).
|
|
- `<prefix>_refined_model.cif` / `.pdb`, `<prefix>_refined_maps.mtz` and `<prefix>_blobs.json` —
|
|
where the model was placed, the model as rugnux refined it, its map coefficients and the blobs of
|
|
density its difference map leaves unexplained; `--no-refine` skips them. See
|
|
[Refinement](RUGNUX_MODEL_AND_REFERENCE.md#refinement).
|
|
- `<prefix>_twin_<SG>.mtz` / `.cif` — only where the chosen space group may have absorbed a twin law:
|
|
the same data merged in a subgroup `<SG>`, with the twin law and its fraction, same resolution and
|
|
free set as `<prefix>.mtz`, for refinement with that law. With `--model`, the maps come from
|
|
whichever of the two merges the model fits better. See
|
|
[The twin hypothesis](RUGNUX_REPORT.md#the-twin-hypothesis-twin_subgroup_).
|
|
- `<prefix>_mr.mtz` / `.cif`, with `<prefix>_mr_model.pdb` / `.cif` — only with `--model` (or `--mr`),
|
|
where the model, placed as a rigid body or by molecular replacement, chooses another space group
|
|
with the answer's rotations or the twin hypothesis' subgroup: that merge, labelled with the group
|
|
the model chose, beside the run's own answer, which is left as it was. See
|
|
[Validating against a model](RUGNUX_ADVANCED.md#validating-against-a-model-rugnux---model).
|
|
- `<prefix>_report.txt` — the **results report**: what the run determined, in a form both a person and
|
|
a beamline script can read. Written by every `mx` and `scale` run, next to the files above (an empty prefix, `-o ""`, writes nothing). See
|
|
[The results report](RUGNUX_REPORT.md#the-results-report).
|
|
- `<prefix>_log.txt` — the full timestamped log of the run, at debug level, written by every run with
|
|
an output prefix; send it with the report when asking about a run.
|
|
- `<prefix>_modules.h5`, `<prefix>_module_placement.json` — serial stills on a detector of several
|
|
modules: where the geometry refinement placed each one (the `.h5` only where it moved some; the JSON
|
|
whenever placement is not off), readable back with `--module-geometry` / `--module-placement` (the
|
|
JSON also by the broker's `/start`, merged into its dataset settings; see
|
|
[Module geometry](RUGNUX_FORMATS.md#module-geometry)).
|
|
- `<prefix>_plot.txt` — **the per-image table**, one row per processed image, whitespace-separated,
|
|
under a `#` header - one line per column saying what it is, one `# dataset k: <file>` line per input
|
|
(its absolute path), then a legend line over the columns - so gnuplot plots it as it stands (`plot '<prefix>_plot.txt' using 1:5`). The columns are:
|
|
|
|
| Column | Meaning |
|
|
|--------|---------|
|
|
| `ordinal` | Processed-image ordinal: the row of the run, the numbering every per-image array `rugnux` writes uses (and the report's `FIRST_IMAGE`/`LAST_IMAGE`). |
|
|
| `dataset` | The input the image is from, counted from 1 in the order the inputs were given: the sweep of a joint merge of several (`--sweeps joint`; the report's `SWEEP_k_`), the file of several read as one stills run (the report's `DATASET_nn`). 1 on a run of one input. The header names the file of each. |
|
|
| `image` | The image's number in that input, from 0, as `-s`/`-e` count it; with `-s`/`--stride` it is `start + ordinal * stride`. |
|
|
| `angle_deg` | Spindle angle at mid-exposure, on that input's own goniometer. |
|
|
| `bkg` | Background estimate from the azimuthal profile (the `bkgEstimate` of the HDF5 file). |
|
|
| `resolution_A` | How far the image's spots reach, from spot finding alone. |
|
|
| `spots` | Spots found. |
|
|
| `scale_G` | Per-image scale factor fitted by scaling. |
|
|
| `sigma_M_deg` | Mosaicity as the rocking-curve **standard deviation** σ<sub>M</sub> in degrees — not a FWHM, and not XDS's `REFLECTING_RANGE`. See the note below. |
|
|
| `cc_to_merge` | Correlation of the image's own observations with the merged data. |
|
|
| `cc_n` | Observations that correlation was computed over; 0 where none was. |
|
|
| `merged` | 1 where the image's observations are in the merged data, 0 where they are not — an image that never indexed, one an earlier guard dropped (on stills: another crystal form, a collapsed scale, `--min-image-cc`), and one ΔCC<sub>1/2</sub> convicted all read 0. An image of several lattices is integrated, and so merged, on its main lattice alone, so the column is 0 or 1 and its sum is the report's `IMAGES_MERGED`; the same vector is `/entry/MX/imageMerged` of the `_process.h5`. `nan` on a run that merged nothing, `--no-merge` included, where the question has no answer. |
|
|
| `disposition` | The same answer graded, to plot directly: 1 merged, 0.5 downgraded (merged, but over a degraded stretch of the sweep), 0 rejected. 0.5 is a marker, not a weight — the merge applies no factor of its own to a downgraded frame, which is carried at the weight its own scale and sigmas give it. `nan` for an image that never got a scale and so never reached the merge, and on a run that merged nothing. On stills, with no sweep to grade, 1 merged and 0 scaled but left out. |
|
|
| `indexed` | 1 where the per-image indexer indexed the image, 0 where it did not (the `imageIndexed` of the HDF5 file; its sum is the report's `IMAGES_INDEXED`). `--mode scale` takes it from the `imageIndexed` of its input files, `nan` for a file without it. |
|
|
|
|
A quantity nothing measured for an image is written `nan`, which gnuplot and numpy both skip; the
|
|
columns never shift and a row is never left out. A stills run writes the table too, with `nan` in
|
|
the columns a sweep would fill; `--no-merge` writes it with the scaling columns `nan`; `--mode scale`
|
|
writes it for its own merge, with the per-image analysis columns (`bkg`, `resolution_A`, `spots`) `nan`. A joint merge of
|
|
sweeps writes one row per frame of the sweeps it merged, sweep after sweep in input order:
|
|
each row's per-image analysis is its own sweep's, the scaling columns the joint
|
|
merge's; a sweep left out of the merge has no rows.
|
|
|
|
**Reading `sigma_M_deg`.** It is fitted per image — a maximum-likelihood Gaussian rocking width
|
|
over that image's own indexed spots — but it is then **smoothed in frame order** over the same
|
|
rotation window as the per-image scale (`--smooth-g`), and any frame too sparse to fit one of its
|
|
own is given the run's median. So the column varies only on the smoothing window's scale, and on a
|
|
weakly diffracting crystal it is close to, or exactly, a constant: that flatness is the honest
|
|
statement that the run measured no per-frame variation, not a placeholder. The value is the one
|
|
scaling used to recompute partialities. σ<sub>M</sub> here is the width of a Gaussian
|
|
rocking curve and nothing more — it is not a physical crystal mosaic spread, it absorbs beam
|
|
divergence and every other source of angular spread, and it reads systematically **low** against
|
|
XDS's `SIGMAR`. Use it to see whether the run's rocking
|
|
width moves across the sweep, not as a number to quote.
|
|
- `<prefix>_detector.jpg` — **the detector as the run saw it**, so the beam stop and the module gaps
|
|
can be checked by eye. Rotation runs only, and only where `--detect-beam-stop` was left on (it is
|
|
by default). The picture is the mean projection over the frames the beam-stop detection sampled —
|
|
the very image it tested — coloured with `jfjoch_viewer`'s default map: white to indigo for the
|
|
counts, **grey** for the module and chip gaps, **coral** for the shadow the run detected, and
|
|
**magenta** for everything else the pixel mask holds. The scale saturates at eight times the
|
|
median measured pixel, not at the brightest pixels, so the background spans the ramp and the Bragg
|
|
spots clip: it is the background the picture is read for, since a shadow is a place the background
|
|
is missing. A shadow drawn where the
|
|
background is unbroken, or a dark patch the run left uncoloured, is visible at a glance; read it
|
|
against the `Beam stop shadow: N pixels ...` line in the log.
|
|
|
|
Merged statistics (⟨I/σ⟩, CC1/2, completeness, …), the error model and timing are printed to the
|
|
console. By default the written resolution is trimmed automatically where CC1/2 falls off
|
|
(`--resolution-cutoff cc-logistic`, CC1/2 target 0.30); set `--scaling-high-resolution` to fix the
|
|
limit by hand, or `--resolution-cutoff off` to keep the full range.
|
|
|