Diffractem
Pre-processing and data management for serial electron diffraction data.
Install / Use
/learn @robertbuecker/DiffractemREADME
diffractem
Pre-processing software for serial electron diffraction (SerialED) data. See https://doi.org/10.1101/682575 for example results.
Diffractem is intended for usage within Jupyter notebooks - get a set of examples here: https://github.com/robertbuecker/serialed-examples.
Installation
diffractem is tailored to pre-processing SerialED data primarily for crystallographic analysis using CrystFEL, version 0.10.0 or higher: https://www.desy.de/~twhite/crystfel/index.html.
To make most of diffractem's functionality, if you do not have it already, please download and install CrystFEL following the installation instructions given on its homepage.
During the build process of CrystFEL using meson, the pinkIndexer component will automatically be downloaded and installed.
Create conda enivronment
We strongly suggest to use the Anaconda3 Python distribution/package manager, and create a dedicated environment within it for diffractem.
If you do not have Anaconda installed, it is sufficient to obtain the minimal Miniconda of the conda package manager at https://docs.conda.io/en/latest/miniconda.
Once installed, please create a new anaconda environment for diffractem, and activate it:
conda create -n diffractem -c conda-forge python=3.10 numpy scipy pandas dask distributed jupyterlab ipywidgets ipympl tifffile h5py
conda activate diffractem
Install diffractem
Finally install diffractem itself, either from PyPi:
pip install diffractem
or, if you want to play/develop a bit more and stay up-to-date, you can clone this git repository and install diffractem in developer mode:
git clone https://github.com/robertbuecker/diffractem
cd diffractem
pip install -e .
Now you should be ready to go! To get started, why don't you download the example notebooks:
git clone https://github.com/robertbuecker/serialed-examples
And get example raw data at MPDL Edmond: https://edmond.mpdl.mpg.de/imeji/collection/32lI6YJ7DZaF5L_K.
And when you're ready to go: just make your own branches of the notebooks for your own projects, and have fun!
diffractem, (C) 2019-2022 Robert Bücker, robert.buecker@rigaku.com
peakfinder8, (C) 2014-2019 Deutsches Elektronen-Synchrotron DESY
Related Skills
node-connect
336.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
83.0kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
83.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
336.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
