Files
Jungfraujoch/RUGNUX.html
2026-11-25 07:41:21 +00:00

61 lines
67 KiB
HTML

<!DOCTYPE html> <html lang=en data-content_root="./"> <meta charset=utf-8 /> <meta name=viewport content="width=device-width, initial-scale=1.0" /><meta name=viewport content="width=device-width, initial-scale=1" /> <meta name=viewport content="width=device-width,initial-scale=1"> <meta http-equiv=x-ua-compatible content="ie=edge"> <meta name="lang:clipboard.copy" content="Copy to clipboard"> <meta name="lang:clipboard.copied" content="Copied to clipboard"> <meta name="lang:search.language" content=en > <meta name="lang:search.pipeline.stopwords" content=True > <meta name="lang:search.pipeline.trimmer" content=True > <meta name="lang:search.result.none" content="No matching documents"> <meta name="lang:search.result.one" content="1 matching document"> <meta name="lang:search.result.other" content="# matching documents"> <meta name="lang:search.tokenizer" content="[\s\-]+"> <link href="https://fonts.gstatic.com/" rel=preconnect crossorigin> <link href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,500,700|Roboto:300,400,400i,700&display=fallback" rel=stylesheet > <style> body, input { font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif } code, kbd, pre { font-family: "Roboto Mono", "Courier New", Courier, monospace } </style> <link rel=stylesheet href="_static/stylesheets/application.css"/> <link rel=stylesheet href="_static/stylesheets/application-palette.css"/> <link rel=stylesheet href="_static/stylesheets/application-fixes.css"/> <link rel=stylesheet href="_static/fonts/material-icons.css"/> <meta name=theme-color content="#3f51b5"> <script src="_static/javascripts/modernizr.js"></script> <title>Rugnux &#8212; Jungfraujoch 1.0.0-rc.189 documentation</title> <link rel=stylesheet type="text/css" href="_static/pygments.css?v=83e35b93" /> <link rel=stylesheet type="text/css" href="_static/material.css?v=79c92029" /> <link rel=stylesheet type="text/css" href="_static/jfjoch.css?v=bb6ed8b7" /> <script src="_static/documentation_options.js?v=33d4efae"></script> <script src="_static/doctools.js?v=9bcbadda"></script> <script src="_static/sphinx_highlight.js?v=dc90522c"></script> <script src="_static/jfjoch_downloads.js?v=758a91c1"></script> <link rel=icon href="_static/jfjoch.png"/> <link rel=index title=Index href=genindex.html /> <link rel=search title=Search href=search.html /> <link rel=next title="Download Rugnux" href=RUGNUX_DOWNLOAD.html /> <link rel=prev title=Documentation href=documentation.html /> <body dir=ltr data-md-color-primary=indigo data-md-color-accent=lime> <svg class=md-svg > <defs data-children-count=0 > <svg xmlns="http://www.w3.org/2000/svg" width=500 height=500 viewBox="0 0 500 500" id=__gitlab ><path fill=currentColor d="M93.667 473.347l90.684-279.097H2.983l90.684 279.097z" transform="translate(156.198 1.16)"/><path fill=currentColor d="M221.333 473.345L130.649 194.25H3.557l217.776 279.095z" transform="translate(28.531 1.16)" opacity=.7 /><path fill=currentColor d="M32 195.155L4.441 279.97a18.773 18.773 0 0 0 6.821 20.99l238.514 173.29L32 195.155z" transform="translate(.089 .256)" opacity=.5 /><path fill=currentColor d="M2.667-84.844h127.092L75.14-252.942c-2.811-8.649-15.047-8.649-17.856 0L2.667-84.844z" transform="translate(29.422 280.256)"/><path fill=currentColor d="M2.667 473.345L93.351 194.25h127.092L2.667 473.345z" transform="translate(247.198 1.16)" opacity=.7 /><path fill=currentColor d="M221.334 195.155l27.559 84.815a18.772 18.772 0 0 1-6.821 20.99L3.557 474.25l217.777-279.095z" transform="translate(246.307 .256)" opacity=.5 /><path fill=currentColor d="M130.667-84.844H3.575l54.618-168.098c2.811-8.649 15.047-8.649 17.856 0l54.618 168.098z" transform="translate(336.974 280.256)"/></svg> </defs> </svg> <input class=md-toggle data-md-toggle=drawer type=checkbox id=__drawer > <input class=md-toggle data-md-toggle=search type=checkbox id=__search > <label class=md-overlay data-md-component=overlay for=__drawer ></label> <a href="#RUGNUX" tabindex=1 class=md-skip > Skip to content </a> <header class=md-header data-md-component=header > <nav class="md-header-nav md-grid"> <div class="md-flex navheader"> <div class="md-flex__cell md-flex__cell--shrink"> <a href=documentation.html title="Jungfraujoch 1.0.0-rc.189 documentation" class="md-header-nav__button md-logo"> <i class=md-icon >&#xe30d</i> </a> </div> <div class="md-flex__cell md-flex__cell--shrink"> <label class="md-icon md-icon--menu md-header-nav__button" for=__drawer ></label> </div> <div class="md-flex__cell md-flex__cell--stretch"> <div class="md-flex__ellipsis md-header-nav__title" data-md-component=title > <span class=md-header-nav__topic >PSI Jungfraujoch</span> <span class=md-header-nav__topic > Rugnux </span> </div> </div> <div class="md-flex__cell md-flex__cell--shrink"> <label class="md-icon md-icon--search md-header-nav__button" for=__search ></label> <div class=md-search data-md-component=search role=dialog > <label class=md-search__overlay for=__search ></label> <div class=md-search__inner role=search > <form class=md-search__form action=search.html method=get name=search > <input type=text class=md-search__input name=q placeholder=""Search"" autocapitalize=off autocomplete=off spellcheck=false data-md-component=query data-md-state=active > <label class="md-icon md-search__icon" for=__search ></label> <button type=reset class="md-icon md-search__icon" data-md-component=reset tabindex=-1 > &#xE5CD; </button> </form> <div class=md-search__output > <div class=md-search__scrollwrap data-md-scrollfix> <div class=md-search-result data-md-component=result > <div class=md-search-result__meta > Type to start searching </div> <ol class=md-search-result__list ></ol> </div> </div> </div> </div> </div> </div> <div class="md-flex__cell md-flex__cell--shrink"> <div class=md-header-nav__source > <a href="https://gitea.psi.ch/mx/jungfraujoch" title="Go to repository" class=md-source data-md-source=github > <div class=md-source__icon > <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width=28 height=28 > <use xlink:href="#__gitlab" width=24 height=24 ></use> </svg> </div> <div class=md-source__repository > Jungfraujoch </div> </a> </div> </div> <script src="_static/javascripts/version_dropdown.js"></script> <script> var json_loc = ""versions.json"", target_loc = "../", text = "Versions"; $( document ).ready( add_version_dropdown(json_loc, target_loc, text)); </script> </div> </nav> </header> <div class=md-container > <nav class=md-tabs data-md-component=tabs > <div class="md-tabs__inner md-grid"> <ul class=md-tabs__list > <li class=md-tabs__item ><a href=documentation.html class=md-tabs__link >Jungfraujoch 1.0.0-rc.189 documentation</a> </ul> </div> </nav> <main class=md-main > <div class="md-main__inner md-grid" data-md-component=container > <div class="md-sidebar md-sidebar--primary" data-md-component=navigation > <div class=md-sidebar__scrollwrap > <div class=md-sidebar__inner > <nav class="md-nav md-nav--primary" data-md-level=0 > <label class="md-nav__title md-nav__title--site" for=__drawer > <a href=documentation.html title="Jungfraujoch 1.0.0-rc.189 documentation" class="md-nav__button md-logo"> <i class=md-icon >&#xe30d</i> </a> <a href=documentation.html title="Jungfraujoch 1.0.0-rc.189 documentation">PSI Jungfraujoch</a> </label> <div class=md-nav__source > <a href="https://gitea.psi.ch/mx/jungfraujoch" title="Go to repository" class=md-source data-md-source=github > <div class=md-source__icon > <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" width=28 height=28 > <use xlink:href="#__gitlab" width=24 height=24 ></use> </svg> </div> <div class=md-source__repository > Jungfraujoch </div> </a> </div> <ul class=md-nav__list > <li class=md-nav__item > <span class="md-nav__link caption"><span class=caption-text >Rugnux</span></span> <li class=md-nav__item > <input class="md-toggle md-nav__toggle" data-md-toggle=toc type=checkbox id=__toc > <label class="md-nav__link md-nav__link--active" for=__toc > Getting started </label> <a href="#" class="md-nav__link md-nav__link--active">Getting started</a> <nav class="md-nav md-nav--secondary"> <ul class=md-nav__list data-md-scrollfix=""> </ul> </nav> <ul class=md-nav__list > <li class=md-nav__item > <a href="#quick-start" class=md-nav__link >Quick start</a> <li class=md-nav__item > <a href="#manual-pages" class=md-nav__link >Manual pages</a> <li class=md-nav__item > <a href="#the-three-analysis-tools" class=md-nav__link >The three analysis tools</a> <li class=md-nav__item > <a href="#how-to-cite" class=md-nav__link >How to cite</a> </ul> <li class=md-nav__item > <a href=RUGNUX_DOWNLOAD.html class=md-nav__link >Download</a> <li class=md-nav__item > <a href=RUGNUX_OVERVIEW.html class=md-nav__link >Overview</a> <li class=md-nav__item > <a href=RUGNUX_INSTALL.html class=md-nav__link >Installing Rugnux</a> <li class=md-nav__item > <a href=RUGNUX_FORMATS.html class=md-nav__link >Input formats</a> <li class=md-nav__item > <a href=RUGNUX_TUTORIAL.html class=md-nav__link >Running Rugnux</a> <li class=md-nav__item > <a href=RUGNUX_CLI.html class=md-nav__link >Command-line options</a> <li class=md-nav__item > <a href=RUGNUX_REPORT.html class=md-nav__link >The results report</a> <li class=md-nav__item > <a href=RUGNUX_INTEGRATION.html class=md-nav__link >Rugnux with other programs</a> <li class=md-nav__item > <a href=RUGNUX_ADVANCED.html class=md-nav__link >Advanced Rugnux</a> <li class=md-nav__item > <a href=RUGNUX_MODEL_AND_REFERENCE.html class=md-nav__link >Models and reference data</a> <li class=md-nav__item > <a href=RUGNUX_CALIBRATION.html class=md-nav__link >Detector calibration</a> <li class=md-nav__item > <span class="md-nav__link caption"><span class=caption-text >Jungfraujoch Viewer</span></span> <li class=md-nav__item > <a href=JFJOCH_VIEWER.html class=md-nav__link >Using the viewer</a> <li class=md-nav__item > <a href=VIEWER_DOWNLOAD.html class=md-nav__link >Download</a> <li class=md-nav__item > <span class="md-nav__link caption"><span class=caption-text >Jungfraujoch</span></span> <li class=md-nav__item > <a href=JUNGFRAUJOCH.html class=md-nav__link >Overview</a> <li class=md-nav__item > <a href=DEPLOYMENT.html class=md-nav__link >Deployment</a> <li class=md-nav__item > <a href=REPOSITORIES.html class=md-nav__link >Linux package repositories</a> <li class=md-nav__item > <a href=RELEASE_CONTENTS.html class=md-nav__link >Release contents</a> <li class=md-nav__item > <a href=JFJOCH_BROKER.html class=md-nav__link >jfjoch_broker</a> <li class=md-nav__item > <a href=JFJOCH_WRITER.html class=md-nav__link >jfjoch_writer</a> <li class=md-nav__item > <a href=WEB_FRONTEND.html class=md-nav__link >Web frontend</a> <li class=md-nav__item > <a href=SOFTWARE_INTEGRATION.html class=md-nav__link >MX software integration</a> <li class=md-nav__item > <a href=TOOLS.html class=md-nav__link >Tools</a> <li class=md-nav__item > <a href=PYTHON_CLIENT.html class=md-nav__link >Python client</a> <li class=md-nav__item > <span class="md-nav__link caption"><span class=caption-text >Reference</span></span> <li class=md-nav__item > <a href=TECHNICAL.html class=md-nav__link >Technical reference</a> <li class=md-nav__item > <span class="md-nav__link caption"><span class=caption-text >Project</span></span> <li class=md-nav__item > <a href=PUBLICATIONS.html class=md-nav__link >Publications</a> <li class=md-nav__item > <a href=ACKNOWLEDGEMENT.html class=md-nav__link >Acknowledgements</a> <li class=md-nav__item > <a href=LICENSE.html class=md-nav__link >License</a> <li class=md-nav__item > <a href=THIRD_PARTY_NOTICES.html class=md-nav__link >Third-party software notices</a> <li class=md-nav__item > <a href=NAMING.html class=md-nav__link >Naming</a> <li class=md-nav__item > <a href=CHANGELOG.html class=md-nav__link >Changelog</a> </ul> </nav> </div> </div> </div> <div class="md-sidebar md-sidebar--secondary" data-md-component=toc > <div class=md-sidebar__scrollwrap > <div class=md-sidebar__inner > <nav class="md-nav md-nav--secondary"> <ul class=md-nav__list data-md-scrollfix=""> </ul> </nav> </div> </div> </div> <div class=md-content > <article class="md-content__inner md-typeset" role=main > <section class="tex2jax_ignore mathjax_ignore" id=rugnux > <h1 id=rugnux--page-root >Rugnux<a class=headerlink href="#rugnux--page-root" title="Link to this heading"></a></h1> <p><code class="docutils literal notranslate"><span class=pre >rugnux</span></code> is the <strong>offline</strong> crystallographic data-analysis tool of Jungfraujoch — the data-processing half of the system (see <a class="reference internal" href=NAMING.html ><span class="std std-doc">Naming</span></a> for where the name comes from). It takes a stored dataset from the diffraction images to merged data — spot finding, indexing, geometry refinement, Bragg integration, scaling and merging, written as <code class="docutils literal notranslate"><span class=pre >.mtz</span></code>/<code class="docutils literal notranslate"><span class=pre >.cif</span></code>/<code class="docutils literal notranslate"><span class=pre >.hkl</span></code> with the unmerged MTZ and the results report — and, with an atomic model, on to a refined structure and maps: the model is placed against the merge, refined, and written with its map coefficients and the difference-density blobs it leaves unexplained. The per-image <code class="docutils literal notranslate"><span class=pre >_process.h5</span></code> is written only on request (<code class="docutils literal notranslate"><span class=pre >--write-process-h5</span></code>), or as the only output with <code class="docutils literal notranslate"><span class=pre >--no-merge</span></code>. A rotation run that finds no lattice still spot-finds every image and writes their per-image analysis there, then exits as failed.</p> <p>It runs the <em>same</em> analysis code as the online and interactive tools, driven from the command line over files.</p> <div class="highlight-default notranslate"><div class=highlight ><pre><span></span><span class=n >rugnux</span> <span class=p >{</span><span class=o >&lt;</span><span class=n >options</span><span class=o >&gt;</span><span class=p >}</span> <span class=o >&lt;</span><span class=nb >input</span><span class=o >.</span><span class=n >h5</span><span class=o >&gt;</span> <span class=p >{</span><span class=o >&lt;</span><span class=nb >input</span><span class=o >.</span><span class=n >h5</span><span class=o >&gt;</span><span class=p >}</span> <span class=p >[</span><span class=o >&lt;</span><span class=n >broker</span> <span class=n >URL</span><span class=o >&gt;</span><span class=p >]</span>
</pre></div> </div> <p>Run it with no arguments to print the usage.</p> <p>Several Jungfraujoch/NXmx masters of stills, given one after another, are read as one run: their images are taken in the order given, indexed and merged together, and the log gives the indexing rate of each input beside the run’s. They must be one setup - the same detector, wavelength, distance and beam centre (to 0.1%, 0.1 mm and 1 pixel), since stills geometry refinement refines one geometry for all frames - and a pixel masked in any of them is masked for all. Stills in the other formats are given the same way, as all their files: <code class="docutils literal notranslate"><span class=pre >rugnux</span> <span class=pre >run*.h5</span></code> (SACLA), <code class="docutils literal notranslate"><span class=pre >rugnux</span> <span class=pre >*.cxi</span></code>, <code class="docutils literal notranslate"><span class=pre >rugnux</span> <span class=pre >*.xtc</span></code>. Inputs are always files, read in the order given (a shell glob gives them sorted by name); a directory is refused. Rotation sweeps are not read together.</p> <p>Given the URL of a <code class="docutils literal notranslate"><span class=pre >jfjoch_broker</span></code> (<code class="docutils literal notranslate"><span class=pre >http://host:port/</span></code>) and the path the master file <em>will</em> have, <code class="docutils literal notranslate"><span class=pre >rugnux</span></code> follows the broker’s current collection while it is being written: the data files are read as the broker reports them closed, processing starts on the first images, and the run ends with the images the collection delivered. A decision made early on a near tie is re-checked on all frames once the collection is complete. If the check gives a different answer, the run is repeated, so the result is that of the whole sweep. This is for rotation data and <code class="docutils literal notranslate"><span class=pre >--mode</span> <span class=pre >mx</span></code>; the collection’s token is read from <code class="docutils literal notranslate"><span class=pre >JUNGFRAUJOCH_HTTP_TOKEN</span></code> and sent only to the broker. With the master file already on disk, the URL is ignored.</p> <blockquote> <div><p><strong>Note.</strong> <code class="docutils literal notranslate"><span class=pre >rugnux</span></code> is under very active development. This page describes the tool and its options at a high level. Run <code class="docutils literal notranslate"><span class=pre >rugnux</span></code> with no arguments for its usage - how to run each mode and the basic options; every option is on <a class="reference internal" href=RUGNUX_CLI.html ><span class="std std-doc">Command-line options</span></a>.</p> </div></blockquote> <nav class="contents local" id=on-this-page > <p class=topic-title >On this page</p> <ul class=simple > <li><p><a class="reference internal" href="#quick-start" id=id1 >Quick start</a></p> <ul> <li><p><a class="reference internal" href="#rotation-data" id=id2 >Rotation data</a></p> <li><p><a class="reference internal" href="#serial-stills" id=id3 >Serial stills</a></p> <li><p><a class="reference internal" href="#serial-stills-with-a-known-cell-space-group-and-a-crystfel-geometry-file" id=id4 >Serial stills with a known cell, space group and a CrystFEL geometry file</a></p> <li><p><a class="reference internal" href="#with-a-model" id=id5 >With a model</a></p> <li><p><a class="reference internal" href="#output-files" id=id6 >Output files</a></p> <li><p><a class="reference internal" href="#terminal-output" id=id7 >Terminal output</a></p> </ul> <li><p><a class="reference internal" href="#manual-pages" id=id8 >Manual pages</a></p> <li><p><a class="reference internal" href="#the-three-analysis-tools" id=id9 >The three analysis tools</a></p> <li><p><a class="reference internal" href="#how-to-cite" id=id10 >How to cite</a></p> </ul> </nav> <section id=quick-start > <h2 id=quick-start ><a class=toc-backref href="#id1" role=doc-backlink >Quick start</a><a class=headerlink href="#quick-start" title="Link to this heading"></a></h2> <p>Rugnux is one executable in an archive on the release page, <a class="reference external" href="https://gitea.psi.ch/mx/jungfraujoch/releases">https://gitea.psi.ch/mx/jungfraujoch/releases</a>. On Linux x86-64 (the other platforms are on <a class="reference internal" href=RUGNUX_DOWNLOAD.html ><span class="std std-doc">Download</span></a>):</p> <div class="highlight-default notranslate"><div class=highlight ><pre><span></span>VERSION=1.0.0
curl -L -O https://gitea.psi.ch/mx/jungfraujoch/releases/download/$VERSION/rugnux-$VERSION-linux-x86_64-cuda12.tgz
mkdir -p rugnux-$VERSION &amp;&amp; tar xzf rugnux-$VERSION-linux-x86_64-cuda12.tgz -C rugnux-$VERSION
export PATH=$PWD/rugnux-$VERSION/bin:$PATH
</pre></div> </div> <p>To process a dataset, give <code class="docutils literal notranslate"><span class=pre >rugnux</span></code> an output prefix and the dataset: its master file (HDF5), or any one image of a CBF, marCCD, SMV or SFRM sequence. The example is the 9ZLO dataset (10.8 GB, 19 files, CC-BY 4.0 on Zenodo): <em>Proteus mirabilis</em> UreE, 3600 EIGER images collected at the Australian Synchrotron.</p> <div class="highlight-default notranslate"><div class=highlight ><pre><span></span>mkdir -p demo/9zlo &amp;&amp; cd demo
for f in ASP0887_09_0114_master.h5 ASP0887_09_0114_data_0000{01..18}.h5; do curl -L -C - -o 9zlo/$f "https://zenodo.org/records/18652652/files/$f?download=1"; done
rugnux -o 9zlo 9zlo/ASP0887_09_0114_master.h5
</pre></div> </div> <p>No other option is needed. Rugnux tells rotation data from serial data by the associated metadata (goniometer axis), determines the unit cell, space group and resolution cutoff from the data, and scales and merges by default. The results are written next to each other under the prefix: <code class="docutils literal notranslate"><span class=pre >9zlo.mtz</span></code> (merged intensities and amplitudes), <code class="docutils literal notranslate"><span class=pre >9zlo.cif</span></code>, <code class="docutils literal notranslate"><span class=pre >9zlo.hkl</span></code> with <code class="docutils literal notranslate"><span class=pre >9zlo.ins</span></code>, <code class="docutils literal notranslate"><span class=pre >9zlo_unmerged.mtz</span></code>, <code class="docutils literal notranslate"><span class=pre >9zlo_report.txt</span></code> (statistics and decisions, written for a person), <code class="docutils literal notranslate"><span class=pre >9zlo_plot.txt</span></code>, <code class="docutils literal notranslate"><span class=pre >9zlo_detector.jpg</span></code> and <code class="docutils literal notranslate"><span class=pre >9zlo_log.txt</span></code>. Without <code class="docutils literal notranslate"><span class=pre >-o</span></code>, the prefix is <code class="docutils literal notranslate"><span class=pre >output</span></code>. On a desktop with a 16-core CPU and an NVIDIA RTX 5080 the run takes 17 s with release 1.0.0-rc.183 (minutes with <code class="docutils literal notranslate"><span class=pre >--no-gpu</span></code>). <code class="docutils literal notranslate"><span class=pre >9zlo_report.txt</span></code> then says: space group P 21 21 21, cell 38.363 89.746 106.871 90 90 90, resolution 68.7-1.57 A, completeness 99.7 %, multiplicity 12.7, R_meas 0.120, CC1/2 0.9994, I/sigma 11.6, ISa 23.6. A second run, another GPU or 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.</p> <p>With a model, the run goes on to place and refine it. The AlphaFold prediction of UreE is in this repository under <code class="docutils literal notranslate"><span class=pre >tools/battery/models/</span></code>, two files; the PAE file is read when it sits beside the model:</p> <div class="highlight-default notranslate"><div class=highlight ><pre><span></span><span class=n >curl</span> <span class=o >-</span><span class=n >L</span> <span class=o >-</span><span class=n >O</span> <span class=n >https</span><span class=p >:</span><span class=o >//</span><span class=n >gitea</span><span class=o >.</span><span class=n >psi</span><span class=o >.</span><span class=n >ch</span><span class=o >/</span><span class=n >mx</span><span class=o >/</span><span class=n >jungfraujoch</span><span class=o >/</span><span class=n >raw</span><span class=o >/</span><span class=n >branch</span><span class=o >/</span><span class=n >main</span><span class=o >/</span><span class=n >tools</span><span class=o >/</span><span class=n >battery</span><span class=o >/</span><span class=n >models</span><span class=o >/</span><span class=n >AF</span><span class=o >-</span><span class=n >P17090</span><span class=o >-</span><span class=n >F1</span><span class=o >-</span><span class=n >model_v6</span><span class=o >.</span><span class=n >cif</span>
<span class=n >curl</span> <span class=o >-</span><span class=n >L</span> <span class=o >-</span><span class=n >O</span> <span class=n >https</span><span class=p >:</span><span class=o >//</span><span class=n >gitea</span><span class=o >.</span><span class=n >psi</span><span class=o >.</span><span class=n >ch</span><span class=o >/</span><span class=n >mx</span><span class=o >/</span><span class=n >jungfraujoch</span><span class=o >/</span><span class=n >raw</span><span class=o >/</span><span class=n >branch</span><span class=o >/</span><span class=n >main</span><span class=o >/</span><span class=n >tools</span><span class=o >/</span><span class=n >battery</span><span class=o >/</span><span class=n >models</span><span class=o >/</span><span class=n >AF</span><span class=o >-</span><span class=n >P17090</span><span class=o >-</span><span class=n >F1</span><span class=o >-</span><span class=n >predicted_aligned_error_v6</span><span class=o >.</span><span class=n >json</span>
<span class=n >rugnux</span> <span class=o >-</span><span class=n >o</span> <span class=mi >9</span><span class=n >zlo</span> <span class=o >--</span><span class=n >model</span> <span class=n >AF</span><span class=o >-</span><span class=n >P17090</span><span class=o >-</span><span class=n >F1</span><span class=o >-</span><span class=n >model_v6</span><span class=o >.</span><span class=n >cif</span> <span class=mi >9</span><span class=n >zlo</span><span class=o >/</span><span class=n >ASP0887_09_0114_master</span><span class=o >.</span><span class=n >h5</span>
</pre></div> </div> <p>Molecular replacement places the two copies (<code class="docutils literal notranslate"><span class=pre >MR_DECISION=</span> <span class=pre >AGREES</span></code>), refinement brings them to R-work / R-free 0.271 / 0.297 (the refined R factors can differ in the second decimal between builds), and <code class="docutils literal notranslate"><span class=pre >9zlo_refined_model.cif</span></code> and <code class="docutils literal notranslate"><span class=pre >9zlo_refined_maps.mtz</span></code> are written beside the merged data; the run takes 22 s. The paper’s times do not include the refinement; a current run’s do. Every file the run writes is listed under <a class="reference internal" href="#output-files">Output files</a> and in <a class="reference internal" href="RUGNUX_TUTORIAL.html#a-first-run-in-detail"><span class="std std-ref">A first run in detail</span></a>; the other example datasets are in the repository’s top-level README.</p> <p>The remaining options are for unusual data and for diagnosis. They are all listed under <a class="reference internal" href=RUGNUX_CLI.html ><span class="std std-doc">Command-line options</span></a>. If a dataset only processes well with one of them, please report it and send the run’s <code class="docutils literal notranslate"><span class=pre >_report.txt</span></code> and <code class="docutils literal notranslate"><span class=pre >_log.txt</span></code>.</p> <section id=rotation-data > <h3 id=rotation-data ><a class=toc-backref href="#id2" role=doc-backlink >Rotation data</a><a class=headerlink href="#rotation-data" title="Link to this heading"></a></h3> <div class="highlight-default notranslate"><div class=highlight ><pre><span></span><span class=n >rugnux</span> <span class=o >-</span><span class=n >o</span> <span class=n >myrun</span> <span class=n >dataset_master</span><span class=o >.</span><span class=n >h5</span> <span class=c1 ># NXmx / EIGER / Jungfraujoch master file</span>
<span class=n >rugnux</span> <span class=o >-</span><span class=n >o</span> <span class=n >myrun</span> <span class=n >sweep_00001</span><span class=o >.</span><span class=n >cbf</span> <span class=c1 ># a CBF, marCCD or SMV sweep: name one of its frames</span>
</pre></div> </div> </section> <section id=serial-stills > <h3 id=serial-stills ><a class=toc-backref href="#id3" role=doc-backlink >Serial stills</a><a class=headerlink href="#serial-stills" title="Link to this heading"></a></h3> <div class="highlight-default notranslate"><div class=highlight ><pre><span></span><span class=n >rugnux</span> <span class=o >-</span><span class=n >o</span> <span class=n >serial</span> <span class=o >*</span><span class=n >_master</span><span class=o >.</span><span class=n >h5</span> <span class=c1 ># several NXmx masters of one setup, read as one run</span>
<span class=n >rugnux</span> <span class=o >-</span><span class=n >o</span> <span class=n >serial</span> <span class=n >run</span><span class=o >*.</span><span class=n >h5</span> <span class=c1 ># all the files of one dataset (SACLA); *.cxi, *.xtc alike</span>
</pre></div> </div> <p>Inputs are always files, never a directory; a shell glob hands them over sorted by name, and they are read in that order and merged together. Without a cell the stills are indexed de novo.</p> </section> <section id=serial-stills-with-a-known-cell-space-group-and-a-crystfel-geometry-file > <h3 id=serial-stills-with-a-known-cell-space-group-and-a-crystfel-geometry-file ><a class=toc-backref href="#id4" role=doc-backlink >Serial stills with a known cell, space group and a CrystFEL geometry file</a><a class=headerlink href="#serial-stills-with-a-known-cell-space-group-and-a-crystfel-geometry-file" title="Link to this heading"></a></h3> <div class="highlight-default notranslate"><div class=highlight ><pre><span></span><span class=n >rugnux</span> <span class=o >-</span><span class=n >o</span> <span class=n >serial</span> <span class=o >-</span><span class=n >C</span> <span class=mi >79</span><span class=p >,</span><span class=mi >79</span><span class=p >,</span><span class=mi >38</span><span class=p >,</span><span class=mi >90</span><span class=p >,</span><span class=mi >90</span><span class=p >,</span><span class=mi >90</span> <span class=o >-</span><span class=n >S</span> <span class=n >P43212</span> <span class=o >--</span><span class=n >crystfel</span><span class=o >-</span><span class=n >geometry</span> <span class=n >detector</span><span class=o >.</span><span class=n >geom</span> <span class=n >run</span><span class=o >*.</span><span class=n >h5</span>
</pre></div> </div> <p><code class="docutils literal notranslate"><span class=pre >-C</span></code> is the cell (<code class="docutils literal notranslate"><span class=pre >a,b,c,alpha,beta,gamma</span></code>), <code class="docutils literal notranslate"><span class=pre >-S</span></code> the space group as a symbol (<code class="docutils literal notranslate"><span class=pre >P43212</span></code>) or a number (<code class="docutils literal notranslate"><span class=pre >96</span></code>). With <code class="docutils literal notranslate"><span class=pre >-S</span></code> the run puts every crystal on one indexing where the space group admits two, from the data alone. <code class="docutils literal notranslate"><span class=pre >--crystfel-geometry</span></code> places the panels (and takes the masks it names) for HDF5/CXI input that does not place them itself. The wavelength and the detector distance come from the data files or the geometry file; only where neither states them add <code class="docutils literal notranslate"><span class=pre >--wavelength</span> <span class=pre >&lt;A&gt;</span></code> and <code class="docutils literal notranslate"><span class=pre >--detector-distance</span> <span class=pre >&lt;mm&gt;</span></code> (the distance is then held, not refined — without it a run with <code class="docutils literal notranslate"><span class=pre >-C</span></code> searches and refines it).</p> </section> <section id=with-a-model > <h3 id=with-a-model ><a class=toc-backref href="#id5" role=doc-backlink >With a model</a><a class=headerlink href="#with-a-model" title="Link to this heading"></a></h3> <div class="highlight-default notranslate"><div class=highlight ><pre><span></span><span class=n >rugnux</span> <span class=o >-</span><span class=n >o</span> <span class=n >myrun</span> <span class=n >dataset_master</span><span class=o >.</span><span class=n >h5</span> <span class=n >model</span><span class=o >.</span><span class=n >cif</span> <span class=c1 ># model and images in any order;</span>
<span class=n >rugnux</span> <span class=o >-</span><span class=n >o</span> <span class=n >myrun</span> <span class=o >--</span><span class=n >model</span> <span class=n >model</span><span class=o >.</span><span class=n >pdb</span> <span class=n >dataset_master</span><span class=o >.</span><span class=n >h5</span> <span class=c1 ># or with --model</span>
</pre></div> </div> <p>A model is told from the images by its contents (PDB, or mmCIF with atoms), gzipped or not. After merging it is <strong>placed</strong> — as a rigid body, or by molecular replacement where that does not place it or the model is a prediction (AlphaFold, ModelCIF) — then <strong>refined</strong> against the merge (restrained, maximum likelihood; seconds on a GPU, typically minutes on the CPU; <code class="docutils literal notranslate"><span class=pre >--no-refine</span></code> skips it) with its solvent as given; <code class="docutils literal notranslate"><span class=pre >--refine-solvent</span></code> (off by default, also with <code class="docutils literal notranslate"><span class=pre >--mode</span> <span class=pre >refine</span></code>) also rebuilds the solvent - waters added at difference peaks and removed from negative density, ions relabelled where their surroundings say so, each site audited - and the run writes the maps (σ<sub>A</sub>-weighted 2mFo−DFc / mFo−DFc), the placed and refined model, and the blobs of difference density the model does not explain. R-work / R-free are in the report.</p> <p>The model <strong>does not change the processing</strong>: the intensities, the cell and the resolution are the ones the data give without it. What it can change is the space group the files are labelled with: it names the hand of an enantiomorphic pair, which merged intensities cannot tell apart (see below). A different space group the molecular replacement prefers is never taken into the answer; it is written beside it as <code class="docutils literal notranslate"><span class=pre >&lt;prefix&gt;_mr.mtz</span></code>. The one further change is on serial stills with <code class="docutils literal notranslate"><span class=pre >-C</span></code> and <code class="docutils literal notranslate"><span class=pre >-S</span></code> in a space group that admits two indexings: there the model picks which of them the crystals are put on, so the merge comes out in the model’s indexing. Without a model the data resolve the ambiguity themselves, consistently but in an arbitrary one of the two. A reference reflection file (<code class="docutils literal notranslate"><span class=pre >-z</span> <span class=pre >reference.mtz</span></code>, also accepted as a positional input) does the same, and steers the processing from the start (see <a class="reference internal" href=RUGNUX_MODEL_AND_REFERENCE.html ><span class="std std-doc">Models and reference data</span></a>).</p> </section> <section id=output-files > <h3 id=output-files ><a class=toc-backref href="#id6" role=doc-backlink >Output files</a><a class=headerlink href="#output-files" title="Link to this heading"></a></h3> <p>A rotation run that merges — the default — leaves these files next to each other:</p> <div class="highlight-default notranslate"><div class=highlight ><pre><span></span><span class=n >myrun</span><span class=o >.</span><span class=n >mtz</span> <span class=n >merged</span> <span class=n >intensities</span> <span class=o >+</span> <span class=n >French</span><span class=o >-</span><span class=n >Wilson</span> <span class=n >amplitudes</span><span class=p >,</span> <span class=k >for</span> <span class=n >CCP4</span> <span class=o >/</span> <span class=n >phenix</span>
<span class=n >myrun</span><span class=o >.</span><span class=n >cif</span> <span class=n >the</span> <span class=n >same</span><span class=p >,</span> <span class=k >as</span> <span class=n >mmCIF</span> <span class=o >-</span> <span class=n >the</span> <span class=bp >self</span><span class=o >-</span><span class=n >describing</span> <span class=nb >format</span><span class=p >,</span> <span class=ow >and</span> <span class=n >what</span> <span class=n >to</span> <span class=n >deposit</span>
<span class=n >myrun</span><span class=o >.</span><span class=n >hkl</span> <span class=n >the</span> <span class=n >scaled</span> <span class=n >observations</span> <span class=n >unmerged</span><span class=p >,</span> <span class=k >as</span> <span class=n >SHELX</span> <span class=n >HKLF</span> <span class=mi >4</span> <span class=o >-</span> <span class=k >for</span> <span class=n >SHELXL</span><span class=p >,</span> <span class=n >SHELXC</span> <span class=o >/</span> <span class=n >ANODE</span>
<span class=n >myrun</span><span class=o >.</span><span class=n >ins</span> <span class=n >the</span> <span class=n >SHELX</span> <span class=n >instructions</span> <span class=n >to</span> <span class=n >go</span> <span class=k >with</span> <span class=n >it</span><span class=p >:</span> <span class=n >CELL</span><span class=p >,</span> <span class=n >ZERR</span> <span class=p >(</span><span class=n >the</span> <span class=n >cell</span><span class=s1 >'s e.s.d.s), LATT, SYMM</span>
<span class=n >myrun_unmerged</span><span class=o >.</span><span class=n >mtz</span> <span class=n >the</span> <span class=n >observations</span> <span class=n >unmerged</span><span class=p >,</span> <span class=n >scaled</span> <span class=n >by</span> <span class=n >the</span> <span class=n >merge</span><span class=p >,</span> <span class=k >for</span> <span class=n >pointless</span> <span class=o >/</span> <span class=n >aimless</span> <span class=o >-</span>
<span class=n >the</span> <span class=n >largest</span> <span class=n >file</span> <span class=n >of</span> <span class=n >the</span> <span class=n >run</span> <span class=p >(</span><span class=o >--</span><span class=n >no</span><span class=o >-</span><span class=n >export</span><span class=o >-</span><span class=n >unmerged</span> <span class=n >skips</span> <span class=n >it</span><span class=p >)</span>
<span class=n >myrun_report</span><span class=o >.</span><span class=n >txt</span> <span class=n >what</span> <span class=n >the</span> <span class=n >run</span> <span class=n >determined</span><span class=p >:</span> <span class=n >cell</span><span class=p >,</span> <span class=n >space</span> <span class=n >group</span><span class=p >,</span> <span class=n >statistics</span><span class=p >,</span> <span class=n >warnings</span>
<span class=n >myrun_plot</span><span class=o >.</span><span class=n >txt</span> <span class=n >one</span> <span class=n >row</span> <span class=n >per</span> <span class=n >image</span><span class=p >,</span> <span class=k >for</span> <span class=n >plotting</span> <span class=n >how</span> <span class=n >the</span> <span class=n >crystal</span> <span class=n >behaved</span> <span class=n >over</span> <span class=n >the</span> <span class=n >sweep</span>
<span class=n >myrun_detector</span><span class=o >.</span><span class=n >jpg</span> <span class=n >the</span> <span class=n >detector</span> <span class=k >with</span> <span class=n >the</span> <span class=n >pixel</span> <span class=n >mask</span> <span class=ow >and</span> <span class=n >the</span> <span class=n >beam</span><span class=o >-</span><span class=n >stop</span> <span class=n >shadow</span> <span class=n >drawn</span> <span class=n >on</span> <span class=n >it</span>
<span class=n >myrun_log</span><span class=o >.</span><span class=n >txt</span> <span class=n >the</span> <span class=n >full</span> <span class=n >timestamped</span> <span class=n >log</span> <span class=n >of</span> <span class=n >the</span> <span class=n >run</span> <span class=p >(</span><span class=n >debug</span> <span class=n >level</span><span class=p >)</span>
</pre></div> </div> <p>With a model, beside them:</p> <div class="highlight-default notranslate"><div class=highlight ><pre><span></span><span class=n >myrun_maps</span><span class=o >.</span><span class=n >mtz</span> <span class=nb >map</span> <span class=n >coefficients</span> <span class=n >on</span> <span class=n >the</span> <span class=n >placed</span> <span class=n >model</span> <span class=p >(</span><span class=n >Coot</span> <span class=ow >and</span> <span class=n >PyMOL</span> <span class=nb >open</span> <span class=n >it</span> <span class=k >as</span> <span class=n >maps</span><span class=p >)</span>
<span class=n >myrun_model</span><span class=o >.</span><span class=n >cif</span> <span class=o >/</span> <span class=o >.</span><span class=n >pdb</span> <span class=n >the</span> <span class=n >model</span> <span class=k >as</span> <span class=n >placed</span><span class=p >,</span> <span class=ow >in</span> <span class=n >the</span> <span class=n >cell</span> <span class=ow >and</span> <span class=n >space</span> <span class=n >group</span> <span class=n >of</span> <span class=n >myrun</span><span class=o >.</span><span class=n >mtz</span>
<span class=n >myrun_refined_model</span><span class=o >.</span><span class=n >cif</span> <span class=n >the</span> <span class=n >refined</span> <span class=n >model</span> <span class=p >(</span><span class=ow >and</span> <span class=o >.</span><span class=n >pdb</span><span class=p >)</span>
<span class=n >myrun_refined_maps</span><span class=o >.</span><span class=n >mtz</span> <span class=nb >map</span> <span class=n >coefficients</span> <span class=n >on</span> <span class=n >the</span> <span class=n >refined</span> <span class=n >model</span>
<span class=n >myrun_blobs</span><span class=o >.</span><span class=n >json</span> <span class=n >the</span> <span class=n >unexplained</span> <span class=n >difference</span><span class=o >-</span><span class=n >density</span> <span class=n >blobs</span>
<span class=n >myrun_solvent</span><span class=o >.</span><span class=n >json</span> <span class=k >with</span> <span class=o >--</span><span class=n >refine</span><span class=o >-</span><span class=n >solvent</span><span class=p >:</span> <span class=n >the</span> <span class=n >refined</span> <span class=n >model</span><span class=s1 >'s waters and ions, each scored by its surroundings, and the waters the build added and removed</span>
</pre></div> </div> <p>A stills run writes the same merged files (its <code class="docutils literal notranslate"><span class=pre >.hkl</span></code> holds the merged reflections) and, on a detector of several modules, <code class="docutils literal notranslate"><span class=pre >serial_module_placement.json</span></code> with where each module was placed (and <code class="docutils literal notranslate"><span class=pre >serial_modules.h5</span></code> where the refinement moved some). <a class="reference internal" href="RUGNUX_TUTORIAL.html#output-files"><span class="std std-ref">Output files</span></a> lists every file a run can write.</p> <p>A run uses all the machine’s threads by default. <code class="docutils literal notranslate"><span class=pre >-N</span></code> limits the thread count, or raises the per-image loop’s default ceiling of 16 workers per GPU.</p> <p>Read <code class="docutils literal notranslate"><span class=pre >myrun_report.txt</span></code> first: it says which space group was chosen and on what evidence, how far the data go, and anything that needs attention.</p> </section> <section id=terminal-output > <h3 id=terminal-output ><a class=toc-backref href="#id7" role=doc-backlink >Terminal output</a><a class=headerlink href="#terminal-output" title="Link to this heading"></a></h3> <p>The terminal shows the run as numbered steps, each with one-line results and the time it took, the warnings among them, and a summary at the end; everything else goes to <code class="docutils literal notranslate"><span class=pre >myrun_log.txt</span></code>. A note’s time is how long the step ran since the line above it, and the rule under a step gives its total, so the steps add up to the wall time. Abridged:</p> <div class="highlight-default notranslate"><div class=highlight ><pre><span></span><span class=n >Step</span> <span class=mi >3</span> <span class=n >Indexing</span>
<span class=o >...</span> <span class=n >beam</span> <span class=n >centre</span> <span class=n >kept</span><span class=p >:</span> <span class=n >measured</span> <span class=mf >7.5</span> <span class=n >px</span> <span class=n >off</span><span class=p >,</span> <span class=n >same</span> <span class=n >lattice</span> <span class=mf >1.36</span> <span class=n >s</span>
<span class=o >...</span> <span class=n >lattice</span> <span class=n >triclinic</span> <span class=n >P</span><span class=p >:</span> <span class=mf >28.56</span> <span class=mf >35.34</span> <span class=mf >63.56</span> <span class=mf >106.0</span> <span class=mf >90.3</span> <span class=mf >90.3</span> <span class=mf >0.00</span> <span class=n >s</span>
<span class=o >...</span> <span class=mi >52</span><span class=o >/</span><span class=mi >60</span> <span class=n >validation</span> <span class=n >frames</span><span class=p >,</span> <span class=mi >24</span><span class=o >%</span> <span class=n >of</span> <span class=n >their</span> <span class=n >spots</span> <span class=n >on</span> <span class=n >it</span> <span class=mf >0.00</span> <span class=n >s</span>
<span class=o >-------------------------------------------------------</span> <span class=n >done</span> <span class=ow >in</span> <span class=mf >1.36</span> <span class=n >s</span>
<span class=n >Step</span> <span class=mi >4</span> <span class=n >Integration</span> <span class=p >(</span><span class=n >geometry</span> <span class=n >pre</span><span class=o >-</span><span class=k >pass</span><span class=p >),</span> <span class=mi >1800</span> <span class=n >images</span>
<span class=o >...</span> <span class=mi >1800</span> <span class=n >images</span><span class=p >,</span> <span class=mi >836</span> <span class=n >per</span> <span class=n >second</span> <span class=mf >2.15</span> <span class=n >s</span>
<span class=o >-------------------------------------------------------</span> <span class=n >done</span> <span class=ow >in</span> <span class=mf >2.16</span> <span class=n >s</span>
<span class=o >...</span>
<span class=n >Step</span> <span class=mi >9</span> <span class=n >Scaling</span> <span class=ow >and</span> <span class=n >merging</span>
<span class=o >...</span> <span class=n >merge</span> <span class=ow >in</span> <span class=n >P1</span><span class=p >:</span> <span class=mi >14464</span> <span class=n >unique</span> <span class=mf >0.64</span> <span class=n >s</span>
<span class=o >...</span> <span class=n >space</span> <span class=n >group</span> <span class=n >P</span> <span class=mi >1</span> <span class=mi >21</span> <span class=mi >1</span> <span class=p >(</span><span class=n >No</span><span class=o >.</span> <span class=mi >4</span><span class=p >)</span> <span class=mf >0.05</span> <span class=n >s</span>
<span class=o >...</span> <span class=n >merge</span> <span class=ow >in</span> <span class=n >P21</span><span class=p >:</span> <span class=mi >16847</span> <span class=n >unique</span> <span class=mf >0.26</span> <span class=n >s</span>
<span class=o >...</span> <span class=n >resolution</span> <span class=mf >1.57</span> <span class=n >A</span> <span class=p >(</span><span class=n >CC1</span><span class=o >/</span><span class=mi >2</span> <span class=n >fall</span><span class=o >-</span><span class=n >off</span> <span class=n >at</span> <span class=mf >1.64</span> <span class=n >A</span><span class=p >)</span> <span class=mf >0.02</span> <span class=n >s</span>
<span class=o >-------------------------------------------------------</span> <span class=n >done</span> <span class=ow >in</span> <span class=mf >1.89</span> <span class=n >s</span>
<span class=o >...</span>
<span class=o >==============================================================================</span>
<span class=n >Result</span> <span class=n >WARNINGS</span><span class=p >:</span> <span class=n >Merged</span> <span class=n >to</span> <span class=mf >1.57</span> <span class=n >A</span> <span class=ow >in</span> <span class=n >P</span> <span class=mi >1</span> <span class=mi >21</span> <span class=mf >1.</span> <span class=mi >3</span> <span class=n >conditions</span> <span class=n >need</span>
<span class=n >attention</span><span class=p >:</span> <span class=n >SCALING_NOT_CONVERGED</span><span class=p >,</span> <span class=n >MULTIPLE_LATTICES</span><span class=p >,</span> <span class=n >ICE_RINGS</span><span class=o >.</span>
<span class=n >Space</span> <span class=n >group</span> <span class=n >P</span> <span class=mi >1</span> <span class=mi >21</span> <span class=mi >1</span>
<span class=n >Unit</span> <span class=n >cell</span> <span class=mf >35.337</span> <span class=mf >28.465</span> <span class=mf >62.937</span> <span class=mf >90.000</span> <span class=mf >105.824</span> <span class=mf >90.000</span>
<span class=n >Resolution</span> <span class=mf >1.57</span> <span class=n >A</span> <span class=n >written</span><span class=p >;</span> <span class=n >the</span> <span class=n >CC1</span><span class=o >/</span><span class=mi >2</span> <span class=n >fall</span><span class=o >-</span><span class=n >off</span> <span class=ow >is</span> <span class=n >fitted</span> <span class=n >at</span> <span class=mf >1.64</span> <span class=n >A</span>
<span class=n >Signal</span> <span class=n >I</span><span class=o >/</span><span class=n >sigma</span> <span class=mf >6.0</span> <span class=n >R_meas</span> <span class=mf >17.2</span> <span class=o >%</span> <span class=n >CC1</span><span class=o >/</span><span class=mi >2</span> <span class=mf >0.995</span> <span class=n >ISa</span> <span class=mf >10.2</span>
<span class=n >Wall</span> <span class=n >time</span> <span class=mf >11.78</span> <span class=n >s</span>
<span class=o >==============================================================================</span>
<span class=n >With</span> <span class=nb >any</span> <span class=n >question</span> <span class=n >about</span> <span class=n >this</span> <span class=n >run</span><span class=p >,</span> <span class=n >send</span> <span class=n >myrun_report</span><span class=o >.</span><span class=n >txt</span> <span class=ow >and</span> <span class=n >myrun_log</span><span class=o >.</span><span class=n >txt</span><span class=o >.</span>
</pre></div> </div> <p>On a terminal an integration pass draws a progress bar in place; written to a file or a pipe (a batch job’s log) every line starts with the time of day instead, there is no bar, and a long pass says how far it has got once a quarter. Warnings are marked <code class="docutils literal notranslate"><span class=pre >!!</span></code> and errors <code class="docutils literal notranslate"><span class=pre >**</span> <span class=pre >ERROR:</span></code>; a warning that comes back from a later merge is shown once more on one line and then only counted. <code class="docutils literal notranslate"><span class=pre >-v</span></code> puts the whole log on the terminal in place of the steps. The log file carries what is needed to answer a question about a run without the data: version, build, GPU, threads, the command line, the header geometry, every decision with its numbers, and a timestamp on every line.</p> <p>Notes on the defaults:</p> <ul class=simple > <li><p><strong>The reflection files are cut at the resolution where CC1/2 drops below 0.30.</strong> Every reflection file is resolution-trimmed automatically (<code class="docutils literal notranslate"><span class=pre >--resolution-cutoff</span> <span class=pre >cc-logistic</span></code>, one shell past the crossing); <code class="docutils literal notranslate"><span class=pre >--resolution-cutoff</span> <span class=pre >off</span></code> keeps the full measured range, <code class="docutils literal notranslate"><span class=pre >--scaling-high-resolution</span></code> fixes the limit by hand. If a Rugnux file reaches lower resolution than another program’s on the same data, this cutoff is usually the reason, not missing data.</p> <li><p><strong>Do not give <code class="docutils literal notranslate"><span class=pre >-C</span></code> or <code class="docutils literal notranslate"><span class=pre >-S</span></code> for rotation data.</strong> A known cell and space group are useful for serial data, where the <code class="docutils literal notranslate"><span class=pre >ffbidx</span></code> indexer needs a cell. On rotation data they often make low-symmetry cases worse. Let the cell and space group be determined from the data (see <a class="reference internal" href="RUGNUX_TUTORIAL.html#rotation-data"><span class="std std-ref">Rotation data</span></a>). <code class="docutils literal notranslate"><span class=pre >-S</span></code> takes a Hermann-Mauguin symbol (<code class="docutils literal notranslate"><span class=pre >P43212</span></code>) or a space-group number (<code class="docutils literal notranslate"><span class=pre >96</span></code>), whichever is to hand.</p> <li><p><strong><code class="docutils literal notranslate"><span class=pre >-A</span></code> is not needed for the anomalous signal.</strong> A rotation merge always keeps the Bijvoet split: a default run’s <code class="docutils literal notranslate"><span class=pre >.mtz</span></code> carries <code class="docutils literal notranslate"><span class=pre >I(+)</span></code>/<code class="docutils literal notranslate"><span class=pre >I(-)</span></code> beside <code class="docutils literal notranslate"><span class=pre >IMEAN</span></code>, its <code class="docutils literal notranslate"><span class=pre >.hkl</span></code> every observation at the index it was measured at, and the report gives <code class="docutils literal notranslate"><span class=pre >SIGANO</span></code>, <code class="docutils literal notranslate"><span class=pre >CC_ANOM</span></code> and the <code class="docutils literal notranslate"><span class=pre >ANOM_*</span></code> table (the same merge counted per hand, as an anomalous XDS run counts) on every run. On rotation data <code class="docutils literal notranslate"><span class=pre >-A</span></code> changes nothing in the processing, the files or the statistics; every decision is taken with Friedel mates merged, <code class="docutils literal notranslate"><span class=pre >-A</span></code> or not, and the report then only says <code class="docutils literal notranslate"><span class=pre >FRIEDELS_LAW=</span> <span class=pre >FALSE</span></code>. Serial stills are different: their merge keeps no split by default, and there <code class="docutils literal notranslate"><span class=pre >-A</span></code> is what creates one, merging each Bijvoet hand as a reflection of its own.</p> <li><p><strong>A model names the enantiomorph.</strong> Where the data accept the model — it is tested against a null of the same model in random orientations, and <code class="docutils literal notranslate"><span class=pre >MODEL_FIT=</span></code> in the report says the verdict — <code class="docutils literal notranslate"><span class=pre >--model</span></code> settles which of P4<sub>1</sub>2<sub>1</sub>2 and P4<sub>3</sub>2<sub>1</sub>2 the merged reflections are <em>labelled</em> with — a choice no merged intensity can make. It is a label and nothing more: the two groups have the same rotation operations, so no reflection moves, and in particular I(+) and I(-) are left exactly as measured. Whether the model agrees with the data about the hand is then a real question, and the anomalous difference map answers it — a run says so when the density at the model’s atoms comes out inverted.</p> <li><p><strong><code class="docutils literal notranslate"><span class=pre >-z</span></code> and <code class="docutils literal notranslate"><span class=pre >--model</span></code> overlap but are not the same.</strong> A reference MTZ steers the processing from the start; a model scores the merge and settles the frame it is written in — where the data accept it; a model they reject changes nothing. Either resolves an <a class="reference internal" href="RUGNUX_ADVANCED.html#the-indexing-ambiguity"><span class="std std-ref">indexing ambiguity</span></a> in its own indexing. On serial data the ambiguity decides whether the merged intensities are usable at all; there the space group (<code class="docutils literal notranslate"><span class=pre >-S</span></code>) alone already lets the run make the crystals consistent from the data.</p> <li><p><strong>Small-molecule data need no extra options.</strong> Short axes, spots wider than the integration disk and glide-plane space groups are handled by default. <code class="docutils literal notranslate"><span class=pre >myrun.hkl</span></code> can be given directly to SHELXT / SHELXL (<a class="reference internal" href="RUGNUX_TUTORIAL.html#small-molecule-data"><span class="std std-ref">Small-molecule data</span></a>).</p> <li><p><strong><code class="docutils literal notranslate"><span class=pre >--scaling-high-resolution</span> <span class=pre >&lt;d&gt;</span></code></strong>, where the resolution is already known, sharpens both the space-group search and the error model.</p> <li><p><strong>A run wants memory in proportion to what it integrates</strong>, not to the detector: up to about 14 GB of host RAM and 7 GB on the card for an ordinary sweep, both peaking in scaling and merging. <a class="reference internal" href="RUGNUX_INSTALL.html#memory"><span class="std std-ref">Installing Rugnux ▸ Memory</span></a> has the table and the two flags that lower it. A very large cell needs far more, and a CPU-only build most of all — tens of GB of host RAM (<a class="reference internal" href="RUGNUX_INSTALL.html#very-large-unit-cells"><span class="std std-ref">Very large unit cells</span></a>).</p> <li><p><strong>When a run fails</strong> it exits non-zero and says why on the terminal; <code class="docutils literal notranslate"><span class=pre >VERDICT=</span></code> and the <code class="docutils literal notranslate"><span class=pre >WARNING:</span></code> lines of the report say what needs attention on a run that finished (<a class="reference internal" href="RUGNUX_REPORT.html#the-summary-and-what-the-run-decided"><span class="std std-ref">The results report</span></a>). A rotation run that indexes nothing most often has a wrong header: the beam centre is measured on every run, but the distance and the wavelength are indexed at the values stated — <code class="docutils literal notranslate"><span class=pre >--detector-distance</span></code> and <code class="docutils literal notranslate"><span class=pre >--wavelength</span></code> override them (<code class="docutils literal notranslate"><span class=pre >--beam-x</span></code>/<code class="docutils literal notranslate"><span class=pre >--beam-y</span></code> the centre); serial stills that index poorly want the cell (<code class="docutils literal notranslate"><span class=pre >-C</span></code>). A run that ends with <code class="docutils literal notranslate"><span class=pre >Killed</span></code> ran out of memory (<a class="reference internal" href="RUGNUX_INSTALL.html#out-of-host-memory"><span class="std std-ref">Out of host memory</span></a>). With any question about a run, send <code class="docutils literal notranslate"><span class=pre >myrun_report.txt</span></code> and <code class="docutils literal notranslate"><span class=pre >myrun_log.txt</span></code>.</p> <li><p>Everything else is in <a class="reference internal" href="RUGNUX_TUTORIAL.html#running-rugnux"><span class="std std-ref">Running Rugnux</span></a> and the full <a class="reference internal" href=RUGNUX_CLI.html ><span class="std std-doc">Command-line options</span></a>.</p> </ul> </section> </section> <section id=manual-pages > <h2 id=manual-pages ><a class=toc-backref href="#id8" role=doc-backlink >Manual pages</a><a class=headerlink href="#manual-pages" title="Link to this heading"></a></h2> <p>The manual is split into one page per topic:</p> <ul class=simple > <li><p><a class="reference internal" href=RUGNUX_OVERVIEW.html ><span class="std std-doc">Overview</span></a> — the pipeline from images to merged data and, with a model, a refined structure, in order. Read this one first.</p> <li><p><a class="reference internal" href=RUGNUX_DOWNLOAD.html ><span class="std std-doc">Download Rugnux</span></a> — the archive for Linux, macOS and Windows, and the three commands that run it.</p> <li><p><a class="reference internal" href=RUGNUX_INSTALL.html ><span class="std std-doc">Installing Rugnux</span></a> — packages, the release archive, GPU drivers, building from source, hardware.</p> <li><p><a class="reference internal" href=RUGNUX_FORMATS.html ><span class="std std-doc">Input formats</span></a> — will it open your data: NXmx / EIGER masters, PILATUS miniCBF, marCCD and SMV (ADSC, Rigaku d*TREK) sweeps, one sweep per input, and serial XFEL stills from SACLA (Cheetah HDF5), Cheetah CXI single-panel files and LCLS-I XTC.</p> <li><p><a class="reference internal" href=RUGNUX_TUTORIAL.html ><span class="std std-doc">Running Rugnux</span></a> — a first run in detail, rotation, serial and small-molecule data, and every file a run writes.</p> <li><p><a class="reference internal" href=RUGNUX_INTEGRATION.html ><span class="std std-doc">Rugnux with other programs</span></a> — the reflection-file conventions, the unmerged export, and worked command lines for phenix, REFMAC, POINTLESS / AIMLESS, careless, Phaser, SHELXC/D/E and, for small molecules, SHELXT / SHELXL.</p> <li><p><a class="reference internal" href=RUGNUX_REPORT.html ><span class="std std-doc">The results report</span></a> — the <code class="docutils literal notranslate"><span class=pre >KEY=</span> <span class=pre >value</span></code> interface, sweep quality and the anisotropy section.</p> <li><p><a class="reference internal" href=RUGNUX_CLI.html ><span class="std std-doc">Command-line options</span></a> — how to run each mode, and every option with what it does.</p> <li><p><a class="reference internal" href=RUGNUX_ADVANCED.html ><span class="std std-doc">Advanced usage</span></a> — reference data and the indexing ambiguity, model validation and re-merging.</p> <li><p><a class="reference internal" href=RUGNUX_MODEL_AND_REFERENCE.html ><span class="std std-doc">Models and reference data</span></a> — every model and reference option, and decision by decision what a model can and cannot change.</p> <li><p><a class="reference internal" href=RUGNUX_CALIBRATION.html ><span class="std std-doc">Detector calibration</span></a> — the geometry from a calibrant’s powder rings (<code class="docutils literal notranslate"><span class=pre >--mode</span> <span class=pre >calibration</span></code>).</p> <li><p><a class="reference internal" href=RUGNUX_BENCHMARKING.html ><span class="std std-doc">Measuring Rugnux</span></a> — the validation battery, the REFMAC check, the timing benchmark, and how to take timings on another machine that compare with ours.</p> <li><p><a class="reference internal" href=CPU_DATA_ANALYSIS.html ><span class="std std-doc">CPU/GPU data analysis</span></a> — the algorithms behind all of it.</p> </ul> </section> <section id=the-three-analysis-tools > <h2 id=the-three-analysis-tools ><a class=toc-backref href="#id9" role=doc-backlink >The three analysis tools</a><a class=headerlink href="#the-three-analysis-tools" title="Link to this heading"></a></h2> <table> <thead> <tr class=row-odd ><th class=head ><p>Tool</p> <th class=head ><p>Mode</p> <th class=head ><p>Driven by</p> <th class=head ><p>Output</p> <tr class=row-even ><td><p><a class="reference internal" href=JFJOCH_BROKER.html ><span class="std std-doc"><code class="docutils literal notranslate"><span class=pre >jfjoch_broker</span></code></span></a></p> <td><p>Online, real-time streaming analysis on FPGA + GPU</p> <td><p>HTTP/REST + ZeroMQ</p> <td><p>Live results and statistics, images streamed to <a class="reference internal" href=JFJOCH_WRITER.html ><span class="std std-doc"><code class="docutils literal notranslate"><span class=pre >jfjoch_writer</span></code></span></a></p> <tr class=row-odd ><td><p><a class="reference internal" href=JFJOCH_VIEWER.html ><span class="std std-doc"><code class="docutils literal notranslate"><span class=pre >jfjoch_viewer</span></code></span></a></p> <td><p>Interactive, on-screen exploration</p> <td><p>Qt desktop application</p> <td><p>On screen; a processing job can write the same files as <code class="docutils literal notranslate"><span class=pre >rugnux</span></code></p> <tr class=row-even ><td><p><strong><code class="docutils literal notranslate"><span class=pre >rugnux</span></code></strong></p> <td><p><strong>Offline batch processing of a stored dataset</strong></p> <td><p><strong>Command-line interface</strong></p> <td><p><strong><code class="docutils literal notranslate"><span class=pre >.mtz</span></code>/<code class="docutils literal notranslate"><span class=pre >.cif</span></code>/<code class="docutils literal notranslate"><span class=pre >.hkl</span></code> and the report; <code class="docutils literal notranslate"><span class=pre >_process.h5</span></code> with <code class="docutils literal notranslate"><span class=pre >--no-merge</span></code> or <code class="docutils literal notranslate"><span class=pre >--write-process-h5</span></code></strong></p> </table> <p>Use <code class="docutils literal notranslate"><span class=pre >rugnux</span></code> to re-analyse data after acquisition, to experiment with processing parameters, or to produce merged intensities for downstream structure solution.</p> </section> <section id=how-to-cite > <h2 id=how-to-cite ><a class=toc-backref href="#id10" role=doc-backlink >How to cite</a><a class=headerlink href="#how-to-cite" title="Link to this heading"></a></h2> <p>If you find Rugnux useful, please cite F. Leonarski and M. Wang, “Rugnux: from diffraction images to structure at synchrotrons and XFELs in one program” (2026), bioRxiv <a class="reference external" href="https://doi.org/10.64898/2026.10.24.761522">doi:10.64898/2026.10.24.761522</a>. Rugnux prints this at startup and at the head of its report; the other papers are on the <a class="reference internal" href=PUBLICATIONS.html ><span class="std std-doc">Publications</span></a> page.</p> </section> </section> </article> </div> </div> </main> </div> <footer class=md-footer > <div class=md-footer-nav > <nav class="md-footer-nav__inner md-grid"> <a href=documentation.html title=Documentation class="md-flex md-footer-nav__link md-footer-nav__link--prev" rel=prev > <div class="md-flex__cell md-flex__cell--shrink"> <i class="md-icon md-icon--arrow-back md-footer-nav__button"></i> </div> <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title"> <span class=md-flex__ellipsis > <span class=md-footer-nav__direction > "Previous" </span> Documentation </span> </div> </a> <a href=RUGNUX_DOWNLOAD.html title="Download Rugnux" class="md-flex md-footer-nav__link md-footer-nav__link--next" rel=next > <div class="md-flex__cell md-flex__cell--stretch md-footer-nav__title"><span class=md-flex__ellipsis > <span class=md-footer-nav__direction > "Next" </span> Download Rugnux </span> </div> <div class="md-flex__cell md-flex__cell--shrink"><i class="md-icon md-icon--arrow-forward md-footer-nav__button"></i> </div> </a> </nav> </div> <div class="md-footer-meta md-typeset"> <div class="md-footer-meta__inner md-grid"> <div class=md-footer-copyright > <div class=md-footer-copyright__highlight > &#169; Copyright 2024, Paul Scherrer Institute. </div> Created using <a href="http://www.sphinx-doc.org/">Sphinx</a> 8.1.3. and <a href="https://github.com/bashtage/sphinx-material/">Material for Sphinx</a> </div> </div> </div> </footer> <script src="_static/javascripts/application.js"></script> <script>app.initialize({version: "1.0.4", url: {base: ".."}})</script>