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.26.tar.gz (39.8 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.26-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cryoblob-2025.5.26.tar.gz
  • Upload date:
  • Size: 39.8 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.26.tar.gz
Algorithm Hash digest
SHA256 20d9c29a18cbea1be6021dff3aa5bbfa67e40a0a3acb413abfc4396887eabb2b
MD5 ea8d8bb5d44ba6ca1b9d91ded55a2385
BLAKE2b-256 ca61ee5e0814c516f2e21d58c9659331cedd9059923284ed3682a08c65f7ad42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cryoblob-2025.5.26-py3-none-any.whl
  • Upload date:
  • Size: 29.2 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.26-py3-none-any.whl
Algorithm Hash digest
SHA256 afeb0afe58bdbf634e65a697f63e23b902eec4ed11492da929462273e6206ae5
MD5 cabad1cd37a91b3d10004f0f9d782720
BLAKE2b-256 bd74a0c428cc886342896a7af837613ee6891676425712b71dcbd89aae77f7d5

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