Automated MicroED diffraction data collection and analysis package
Project description
Diffraction Map Processing Pipeline (REyes v3.4)
Quick Start
# Install the package
pip install .
# Run automated pipeline
reyes-monitor --microscope Arctica-CETA --autoprocess
Overview
pyREyes is a Python package to support REyes (Reciprocal Eyes), an end-to-end autonomous electron diffraction data collection and processing pipeline. REyes generates diffraction heatmaps, identifies key targets, and manages navigator files for SerialEM.
Key Features
- Grid squares detection and atlas management
- Manual or automated grid square selection
- Eucentricity correction
- Diffraction pattern quality classification using DQI (Diffraction Quality Index)
- Navigation file generation with spatial awareness
- Comprehensive visualization suite
- Automated data processing with state machine monitoring
- Optional movie processing and structure solution integration
Diffraction Quality Analysis
REyes uses advanced quality metrics to assess diffraction patterns:
LQP (Lattice Quality Peaks): A number of peaks in an FFT of the thresholded and binarized diffraction snapshot that correspond to lattice quality.
DQI (Diffraction Quality Index): A quality metric calculated as the ratio of LQP to total diffraction peaks (DQI = LQP / Diffraction Peaks). DQI values above 3.0 indicate higher crystalline quality with better-ordered lattice structures. This index is used to automatically classify and prioritize crystal targets for data collection.
Pipeline Components
Core Modules
- Grid Squares Searcher
- Navigator Eucentricity Corrector
- Diffraction Map Processor
- Navigation File Generator
- Final Targets Processor
- Collection Executor
Pipeline Orchestration:
- Processing Monitor - Automatically runs all steps above and pauses for user input on optional manual steps
Directory Structure
working_directory/
├── dif_maps/ # Diffraction maps and visualizations
│ └── diff_blocks_maps/ # Block-specific maps
├── grid_squares/ # Grid square & eucentricity outputs
├── movies/ # Continuous rotation diffraction movies
├── REyes_logs/ # Processing logs
└── targets/ # Navigation files and diffraction snapshots
Reference
The REyes methodology and its applications to small molecules, materials, and protein crystallography are described in detail in:
Eremin, D.B.; Jha, K.K.; Delgadillo, D.A.; Zhang, H.; Foxman, S.H.; Johnson, S.N.; Vlahakis, N.W.; Cascio, D.; Lavallo, V.; Rodríguez, J.A.; Nelson, H.M. "Spatially-Aware Diffraction Mapping Enables Fully Autonomous MicroED" ChemRxiv 2025, DOI: 10.26434/chemrxiv-2025-4p4c3
Data Availability
Electron diffraction data are publicly available through the Caltech.
Repository: https://miledd.caltech.edu/shared/
ZENODO Dataset: Complete Raw and Processed REyes Dataset: Autonomous MicroED Collection for (S,S)-Salen Ligand - https://doi.org/10.5281/zenodo.16971798
Support
For support and questions, please contact:
- 📫 Dmitry Eremin - eremin@caltech.edu
Developers
Patent Disclosure
Dmitry B. Eremin, Hongyu Zhang, Jose A. Rodríguez, and Hosea M. Nelson have filed a provisional patent application related to the methods implemented in this software:
Patent Application: CIT-9295-P2, filed May 8, 2025
This disclosure is provided in accordance with academic transparency standards. The software remains available for academic and research use under the terms specified in the license.
Copyright © 2025, California Institute of Technology (Caltech). All rights reserved. Use of this software is permitted for academic and non‑commercial research only. Commercial use is prohibited without a license, please contact Caltech Office of Technology Transfer & Corporate Partnerships.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyreyes-3.4.0.tar.gz.
File metadata
- Download URL: pyreyes-3.4.0.tar.gz
- Upload date:
- Size: 39.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8146f0787c0240bffcdbc44290373ff4d914fa46ae4a6c4c9c5561ce137f606e
|
|
| MD5 |
6248cb05379bbcdcfef2753901be59f8
|
|
| BLAKE2b-256 |
cb546a635738401b7c28a9edb4c73c423281fcd34fd5d74aa58645e7cdfd96ef
|
File details
Details for the file pyreyes-3.4.0-py3-none-any.whl.
File metadata
- Download URL: pyreyes-3.4.0-py3-none-any.whl
- Upload date:
- Size: 107.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f44e6e247464fed14be8c9ddad0b3690e8584795a51dd9788598d43868d38847
|
|
| MD5 |
f01996eff4c885ca23903220124ee578
|
|
| BLAKE2b-256 |
acecc6457dc471c42b2337c5bdc1f979a5273297035ae7b77ffe45ec430e42d8
|