Skip to main content

Particle Picking of Cryo-EM Datasets

Project description

PyPI Downloads License: MIT PyPI version Documentation Status DOI Code style: black codecov Tests

cryoblob

cryoblob is a JAX-based, JIT-compiled, scalable package for detection of amorphous blobs in low SNR cryo-EM images.

Features

  • JAX-powered: Leverages JAX for high-performance computing with automatic differentiation
  • GPU acceleration: Can utilize both CPUs and GPUs for processing
  • Adaptive filtering: Includes adaptive Wiener filtering and thresholding
  • Blob detection: Advanced blob detection using Laplacian of Gaussian (LoG) methods
  • Batch processing: Memory-optimized batch processing for large datasets
  • Validation: Comprehensive parameter validation using Pydantic models

Installation

pip install cryoblob

Quick Start

import cryoblob as cb

# Load an MRC file
mrc_image = cb.load_mrc("your_file.mrc")

# Process a folder of images
results = cb.folder_blobs("path/to/folder/")

# Plot results
cb.plot_mrc(mrc_image)

Package Structure

The cryoblob package is organized into the following modules:

  • adapt: Adaptive image processing with gradient descent optimization
  • blobs: Core blob detection algorithms and preprocessing
  • files: File I/O operations and batch processing
  • image: Basic image processing functions (filtering, resizing, etc.)
  • plots: Visualization functions for MRC images and results
  • types: Type definitions and PyTree structures
  • valid: Parameter validation using Pydantic models

Package Organization

  • The codes are located in /src/cryoblob/
  • The notebooks are located in /tutorials/

Documentation

For detailed API documentation and tutorials, visit: https://cryoblob.readthedocs.io

License

This project is licensed under the MIT License - see the LICENSE file for details.

Authors

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

cryoblob-2025.5.27.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

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

cryoblob-2025.5.27-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

Details for the file cryoblob-2025.5.27.tar.gz.

File metadata

  • Download URL: cryoblob-2025.5.27.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for cryoblob-2025.5.27.tar.gz
Algorithm Hash digest
SHA256 5a0cfdb82dc617eba9830664215e5e2c54fc3754bfc5a9065115d53aa990edb4
MD5 b298cbe77d8d61d91e269285fa15e583
BLAKE2b-256 656903f3db08617bd07b7966f2095379556c8dbd4db3ce76ad8ab598f33b95a3

See more details on using hashes here.

File details

Details for the file cryoblob-2025.5.27-py3-none-any.whl.

File metadata

  • Download URL: cryoblob-2025.5.27-py3-none-any.whl
  • Upload date:
  • Size: 29.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for cryoblob-2025.5.27-py3-none-any.whl
Algorithm Hash digest
SHA256 a462caaaf5c798f25becca939b0c6b9cbd8195844ba1c1336e671193ab45034c
MD5 39e0eb6c9578603162fdba1314f027e4
BLAKE2b-256 63fb0949c223227255c8087f0e058ad758fbeb77a0c61b2f65f735fec8940723

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