Skip to main content

Automated processing and analysis of MicroED data

Project description

Crystallography Data Processing Suite

Overview

This suite consists of three Python scripts designed for automated processing and analysis of MicroED (Micro-Electron Diffraction) data:

  • autoprocess.py: Core script for automated MicroED data processing
  • batch_reprocess.py: Batch reprocessing tool with specific space group and unit cell parameters
  • mrc2tif.py: Utility for converting MRC files to TIF format

Requirements

Software Dependencies

  1. XDS Software Suite: Required for crystallographic data processing

    • Must be accessible via the xds command
    • Available from xds.mr.mpg.de
  2. Pointless: Required for space group analysis (pointless)

Script Details

1. autoprocess.py

Description

Primary script for automated MicroED data processing using the XDS suite. Handles image conversion, indexing, integration, and initial analysis.

Key Features

  • Automated conversion of .ser/.mrc files to XDS-compatible formats
  • Dynamic optimization of XDS processing parameters
  • Automatic space group determination using CCP4's pointless
  • Support for multiple microscope configurations
  • Comprehensive error handling and logging

Supported Microscopes

  • Arctica-CETA
  • Arctica-EM-core
  • Talos-Apollo

Usage

autoprocess [options]

Options:
  --microscope MICROSCOPE    Choose instrument (default: Arctica-CETA)
  --rotation-axis AXIS      Override rotation axis
  --frame-size SIZE        Override frame size
  --signal-pixel VALUE     Override signal pixel value
  --min-pixel VALUE       Override minimum pixel value
  --background-pixel VALUE Override background pixel value
  --pixel-size VALUE      Override pixel size value
  --beam-center-x VALUE   Override beam center X coordinate
  --beam-center-y VALUE   Override beam center Y coordinate
  --detector-distance VALUE Override detector distance
  --exposure VALUE        Override exposure time
  --rotation VALUE        Override rotation value

2. batch_reprocess

Description

Tool for batch reprocessing of previously processed data with specific space group and unit cell parameters.

Key Features

  • Reprocess multiple datasets with consistent parameters
  • Specify space group and unit cell parameters
  • Custom processing parameter optimization
  • Detailed processing logs and statistics

Usage

batch_reprocess [options]

Options:
  --microscope MICROSCOPE    Choose instrument (default: Arctica-CETA)
  --space-gr NUMBER        Space group number
  --a VALUE               Unit cell parameter a
  --b VALUE               Unit cell parameter b
  --c VALUE               Unit cell parameter c
  --alpha VALUE           Unit cell angle alpha
  --beta VALUE            Unit cell angle beta
  --gamma VALUE           Unit cell angle gamma
  --folder NAME           Subfolder name for reprocessed data
  --default-params        Use default processing parameters
  --signal-pixel VALUE    Signal pixel value
  --min-pixel VALUE      Minimum pixel value
  --background-pixel VALUE Background pixel value (max 5)

3. mrc2tif

Description

Utility script for converting MRC movie files to TIF format with detailed verification and logging.

Key Features

  • Single and multi-frame MRC file support
  • Optional pedestal value addition
  • Detailed conversion verification
  • Comprehensive logging of conversion statistics
  • Raw data conversion option

Usage

mrc2tif [options]

Options:
  --folder PATH           Path to folder containing MRC files
  --ped VALUE            Pedestal value to add (default: 0)
  --tif-name NAME        Base name for output TIF files
  --recursive            Search for MRC files recursively
  --raw                  Convert data without modifications

File Naming Convention

For .ser Files

sample-name_distance_rotation_exposure_additional-notes.ser

Example: sample-mov1_960_0.3_3_n60top10_g8sp10_cryo.ser

  • distance: Detector distance in mm
  • rotation: Rotation speed in degrees/second
  • exposure: Exposure time in seconds

Directory Structure

working_directory/
├── sample_name/
│   ├── images/
│   │   └── (converted image files)
│   ├── auto_process/
│   │   └── (XDS processing files)
│   └── batch_reprocess/
│       └── (reprocessed data files)
├── autoprocess_logs/
│   └── (processing log files)
└── logs/
    └── (conversion log files)

Error Handling

  • All scripts include comprehensive error handling and logging
  • Detailed logs are generated in the respective log directories
  • Processing statistics and verification results are recorded
  • Failed processes are clearly identified in the logs

Contributing

Contributions are welcome! Please submit issues and pull requests to the project repository.

License

This project is licensed under the MIT License.

Acknowledgments

Version History

  • v2.0.0: Added batch processing and MRC conversion capabilities
  • v1.0.0: Initial autoprocess.py release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyautoprocess-0.0.4.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyautoprocess-0.0.4-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file pyautoprocess-0.0.4.tar.gz.

File metadata

  • Download URL: pyautoprocess-0.0.4.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for pyautoprocess-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6c310aed8bc6d20a24040dcb367d2445ed450e2457a29d6336bc120b267a852d
MD5 179f0ee6706ee526425018e440ab77dc
BLAKE2b-256 3270425b42a2debf82e0c130eb60861694748ec8bf11dab5d0afbdd473a1dad3

See more details on using hashes here.

File details

Details for the file pyautoprocess-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pyautoprocess-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for pyautoprocess-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c6ba9aaa0589e0a154765c2e8233ef9ab5a576e85ede09e2c9e73793e3a3afb0
MD5 011c85b7179c9a4d09748d46f0c74d93
BLAKE2b-256 8cb3537cebc5b1f01dd4d23f509d9d931b7c4eff5b99d58e9d6289f948ce8bb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page