Build Packages / build:portable:linux-x86_64:nocuda (push) Successful in 16m43s
Build Packages / build:jfjoch:ubuntu2404:nocuda (push) Successful in 28m46s
Build Packages / build:jfjoch:rocky8:cuda-sls9 (push) Successful in 32m5s
Build Packages / build:jfjoch:rocky9:cuda (push) Successful in 39m44s
Build Packages / build:portable:macos-arm64:nocuda (push) Successful in 5m7s
Build Packages / Create release (push) Successful in 8s
Build Packages / Build documentation (push) Successful in 49s
Build Packages / build:portable:linux-x86_64:cuda (push) Successful in 22m30s
Build Packages / build:jfjoch:rocky8:nocuda (push) Successful in 31m54s
Build Packages / build:rugnux:linux-aarch64:cuda (push) Successful in 11m29s
Build Packages / build:portable:windows-x86_64:nocuda (push) Successful in 23m51s
Build Packages / build:jfjoch:ubuntu2204:nocuda (push) Successful in 26m7s
Build Packages / build:jfjoch:ubuntu2204:cuda (push) Successful in 29m38s
Build Packages / build:portable:windows-x86_64:cuda (push) Successful in 28m6s
Build Packages / HDF5 consumer tests (DIALS, XDS) (push) Successful in 29m44s
Build Packages / build:jfjoch:rocky9:nocuda (push) Successful in 33m22s
Build Packages / Generate python client (push) Successful in 47s
Build Packages / build:jfjoch:rocky9:cuda-sls9 (push) Successful in 34m6s
Build Packages / Unit tests (push) Successful in 1h2m47s
Build Packages / build:jfjoch:rocky8:cuda (push) Successful in 35m59s
Build Packages / build:jfjoch:ubuntu2404:cuda (push) Successful in 34m8s
Build Packages / Validation Battery (push) Successful in 38m31s
* Rugnux: Refinement several times faster, one protocol on the CPU and the GPU, parts of it on the Apple GPU; its random draws are the same on every platform. * Rugnux: Refinement follows common practice: the free set decides only the restraint weights and the displacement model (isotropic, TLS or anisotropic, by Hamilton's test), everything else is decided on the working set; lower R-free for placed and predicted models. * Rugnux: Restraint dictionaries via `--restraints` (or among the inputs) and more built-in ligands; a model whose space group is a subgroup of the data's is refined in its own group; reflections plus a model select `--mode refine` on their own. * Rugnux: `-C` fixes the crystal system on the axes as typed; `-S` alone fixes the space group only, the cell is still found and reduced; a space group or cell stored in the input file is ignored, with a line in the log. * Rugnux: More reliable multi-sweep merging; `--mode scale` merges several stills runs as one; `_plot.txt` and the report name each input; a second crystal form is reported for stills given a cell. * jfjoch_broker (experimental): Live Rugnux on FPGA detectors (JUNGFRAU) takes the same path as a DECTRIS stream, rotation and serial alike, model step included, with analysis threads per GPU; frames waiting for the analysis can be viewed; no host stage drops a frame - a source faster than the analysis is held at the card. * jfjoch_broker: Summation of more than 256 frames per image is split between the card and the host (`summation_mode` is then `hybrid`), and live Rugnux runs on such collections; pedestal runs take a receiver of their own. * jfjoch_broker (experimental): `stills_downsample` analyses 1 of every N serial images (chosen by a hash; the first 2000 all; the others written without analysis; reset to 1 by `/initialize`); `max_spot_count` left out means 250 for per-image indexing and up to 1000 for live stills; the live status gives the merge before the model work, the fitted resolution and the anomalous peak height of each unexplained blob. * jfjoch_broker: Without a `pcie` entry the broker runs on a mock of the card instead of the HLS simulation; its spot, ROI and azimuthal results are zero then. * Web frontend: Redesigned Rugnux live page; Vite 8, TypeScript 6, Mol* 5.13 and dependency security updates. * Tools: `jfjoch_fpga_stills_test` measures live stills on the cards with a stored dataset; `jfjoch_fpga_test` loses the HLS-simulation option. * Other: FFTW no longer fetched or linked (the CPU FFT indexer keeps the name `FFTW`); PCIe driver now GPL-2.0-or-later and third-party notices complete; several crash fixes. Reviewed-on: #98 Co-authored-by: Filip Leonarski <filip.leonarski@psi.ch>
112 lines
9.1 KiB
Markdown
112 lines
9.1 KiB
Markdown
# Overview
|
|
|
|
The map of a run, in the order it happens — one paragraph per stage, each linking into the
|
|
[data-analysis reference](CPU_DATA_ANALYSIS.md) where the algorithm lives. The walk-through is a
|
|
rotation run with the defaults; stills differences are at the end.
|
|
|
|

|
|
|
|
**Open the dataset.** The geometry, wavelength and goniometer come from the file
|
|
([Input formats](RUGNUX_FORMATS.md)). A goniometer axis that turns makes it a rotation run; none, or one
|
|
that stands still from frame to frame, makes it serial stills — nothing is asked of the user.
|
|
|
|
**Pre-scan.** A projection of frames (60 by default) spread over the first part of the sweep, the part the geometry pre-pass integrates, finds the beam-stop shadow and masks
|
|
it ([§1.5](CPU_DATA_ANALYSIS_IMAGE.md)), masks pixels its frames show to be defective
|
|
([§1.6](CPU_DATA_ANALYSIS_IMAGE.md)), measures the beam centre from the isotropy of the
|
|
scattered background and compares it with the file's ([§1.4](CPU_DATA_ANALYSIS_IMAGE.md)), and
|
|
reads how wide this crystal's spots are, which sets the integration radius
|
|
([§9.5](CPU_DATA_ANALYSIS_INTEGRATION.md)), and how much longer they are along their radius than
|
|
across it, which is the beam's bandwidth where the file does not state one
|
|
([§9.6](CPU_DATA_ANALYSIS_INTEGRATION.md)), and how much wider still they grow away from the beam,
|
|
which sets the integration footprint ([§9.1](CPU_DATA_ANALYSIS_INTEGRATION.md)). In a GPU build the
|
|
pre-scan runs on the card.
|
|
|
|
**Spots.** Every image is decoded — on the GPU straight from the compressed chunk
|
|
([§0](CPU_DATA_ANALYSIS_IMAGE.md)) — and one fused pass computes the azimuthal profile and finds
|
|
the spots against each image's own per-resolution-ring noise
|
|
([§2–§3](CPU_DATA_ANALYSIS_IMAGE.md)). The ice-ring score is read off the same profile.
|
|
|
|
**Indexing.** The spots of a sample of frames are rotated back to a common crystal frame and the
|
|
FFT search looks for periodicity over thousands of directions; candidate cells are
|
|
Niggli-reduced, classified by Bravais lattice, refined both constrained and triclinic, and decided
|
|
on how many validation frames each actually indexes
|
|
([§4–§7](CPU_DATA_ANALYSIS_INDEXING.md)). A lattice row shorter than the search's 10 Å floor, as
|
|
small-molecule cells have, is recognised under the multiple of it the search reports, down to 3 Å. The first pass is indexed a
|
|
second time at the beam centre the pre-scan measured; the file's centre is kept unless it indexes
|
|
nothing, gives an axis harmonic of the measured centre's lattice, or loses to it when both first passes
|
|
are merged ([§1.4](CPU_DATA_ANALYSIS_IMAGE.md)). A failed pass triggers the discrete rescues — the
|
|
rotation-axis sign, the first-pass depth ladder, the long-axis hypothesis — before anything is given up on.
|
|
|
|
**First integration pass.** At the geometry in the file, every frame of the first half of the sweep, at least 120° of it
|
|
(`--prepass-fraction`) is predicted
|
|
([§8](CPU_DATA_ANALYSIS_INTEGRATION.md)) and profile-fit integrated
|
|
([§9](CPU_DATA_ANALYSIS_INTEGRATION.md)); partials are combined into fulls, scaled and merged
|
|
([§10](CPU_DATA_ANALYSIS_INTEGRATION.md)).
|
|
|
|
**Geometry post-refinement.** From those reflections the detector distance, beam centre and the
|
|
cell scale / rotation axis are refined over all those frames at once, each step committed only if it
|
|
improves a held-out residual ([§7.5](CPU_DATA_ANALYSIS_INDEXING.md)).
|
|
|
|
**Second pass.** The sweep is re-indexed de novo and re-integrated at the refined geometry; this
|
|
pass is the canonical output, and a guard compares the two passes and keeps the better one
|
|
(reported as `PASS=` / `PASS_DECISION=` in [the report](RUGNUX_REPORT.md)).
|
|
|
|
**Space group.** On the P1 merge of the final pass, the point group is scored operator by operator
|
|
on resolution-normalised intensities and the screw axes, glide planes and centring are read from the
|
|
systematic absences, with the centre of symmetry from the intensity distribution where the absences
|
|
leave it open ([§13.1](CPU_DATA_ANALYSIS_DECISIONS.md)); twinning and translational
|
|
pseudo-symmetry are checked beside it ([§13.2](CPU_DATA_ANALYSIS_DECISIONS.md)). `CANNOT_DETERMINE` and an enantiomorphic pair are real
|
|
answers here, not evasions.
|
|
|
|
**Scale and merge.** In the determined group: per-frame scales, the cross-validated correction
|
|
surfaces (decay, absorption, modulation), the error model and ISa, outlier rejection, the
|
|
CC1/2-based resolution cut, the anisotropy description, French–Wilson amplitudes and the R-free
|
|
flags ([§10](CPU_DATA_ANALYSIS_INTEGRATION.md),
|
|
[§13.3–§13.5](CPU_DATA_ANALYSIS_DECISIONS.md)). Several rotation sweeps given together are merged as one
|
|
dataset (`--sweeps joint`, the default).
|
|
|
|
**Model: validation and molecular replacement.** Only with a model (`--model` or `--mr`, PDB or
|
|
mmCIF). With `--model` the model is placed as a rigid body and checked against a null; where that does
|
|
not place it, or the model is a prediction, it is placed by molecular replacement instead, and `--mr`
|
|
goes to molecular replacement straight away. The search places as many copies as the cell holds, in
|
|
every space group the merge cannot tell apart and in the twin hypothesis' subgroup; the placed model
|
|
then gives R-work/R-free and σA-weighted maps. The model never changes how the data are processed
|
|
([Model and reference](RUGNUX_MODEL_AND_REFERENCE.md),
|
|
[§14](CPU_DATA_ANALYSIS_DECISIONS.md)). It runs on every GPU of the machine, and on a Mac its
|
|
model density and rotation function on the Apple GPU ([GPU data analysis](GPU_DATA_ANALYSIS.md#molecular-replacement)).
|
|
|
|
**Model: refinement.** A placed model is then refined against the merge it was placed on (`--no-refine`
|
|
skips it): its chains as rigid bodies and B per residue where that lowers the working reflections' likelihood, then every atom's position
|
|
and B by a restrained maximum-likelihood refinement whose weights are chosen on the free set (free -ln L and R-free agreeing) in short trials run
|
|
side by side; the refined model gives its own maps and the blobs of unexplained density. Like the
|
|
validation it decides nothing - the merge, `R_WORK`/`R_FREE` and the placed model's files stay as they
|
|
were, and the refined results are written beside them under `REFINE_`
|
|
([Model and reference](RUGNUX_MODEL_AND_REFERENCE.md#refinement), [§15](CPU_DATA_ANALYSIS_REFINEMENT.md)).
|
|
On a GPU it takes seconds, with the weight trials spread over every card
|
|
([GPU data analysis](GPU_DATA_ANALYSIS.md#refinement)).
|
|
|
|
**Write.** The merged `.mtz` / `.cif` / `.hkl`, the unmerged MTZ and the
|
|
results report land next to each other ([Output files](RUGNUX_TUTORIAL.md#output-files)); with a
|
|
model, the maps and the placed model are written too, and beside them the refined model, its maps and
|
|
its blobs; where molecular replacement chooses another space group or the twin hypothesis' subgroup, that merge is written beside the answer as
|
|
`<prefix>_mr.mtz`/`.cif` with the model placed there, `<prefix>_mr_model.pdb`.
|
|
|
|
**Stills instead.** Serial data skip the two-pass machinery: each image is indexed independently
|
|
(with the known-cell `ffbidx` indexer where a cell is given), partiality comes from a per-crystal
|
|
orientation-tilt post-refinement rather than a rocking curve, and where the lattice admits a
|
|
merohedral indexing ambiguity the crystals are put into one indexing before the first merge: from the
|
|
data alone, each crystal into the indexing in which it agrees best with all the others, where the space
|
|
group is given (`-S`); or per image against a reference or a model, which then decides the indexing
|
|
the merge is written in. Either way a crystal's own refined cell is weighed beside its intensities, as
|
|
far as the run's cells tell the indexings apart ([Advanced ▸ the indexing ambiguity](RUGNUX_ADVANCED.md#the-indexing-ambiguity)). The input may be
|
|
several files given together - Jungfraujoch masters, or the files an XFEL pipeline writes, read without
|
|
a geometry file ([Serial XFEL inputs](RUGNUX_FORMATS.md#serial-xfel-inputs)). Before the images are
|
|
processed the beam centre is decided on a sample of frames, the file's against the measured ones, and the
|
|
detector distance is refined there too, on a given unit cell or, without one, on the cell the frames index to; the cell is a starting point the frames
|
|
refine, and only the frames of its crystal form are merged. With a cell, the geometry refinement places
|
|
each detector module as well ([§1.4](CPU_DATA_ANALYSIS_IMAGE.md#14-the-beam-centre),
|
|
[§7.7](CPU_DATA_ANALYSIS_INDEXING.md#77-stills-a-given-cell-and-the-detector-modules)). The report adds
|
|
R_split and a CC1/2 from frame half-sets, as CrystFEL computes them ([Report](RUGNUX_REPORT.md)).
|
|
|
|

|