Skip to content
TheDeanLabPublic

About

Reusable cyclic expansion microscopy registration workflows

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

317 Commits

Folders and files

Repository files navigation

Cy-ExM

Cy-ExM registers volumetric images acquired across cyclic expansion microscopy rounds. It supports whole-image and memory-conscious serial-chunked registration, applies the resulting transforms to additional imaging channels, and can resume validated intermediate work after interruption.

Cy-ExM requires Python 3.12 and retains the academic-research-use terms in LICENSE.md. See the complete documentation for scientific guidance, workflow configuration, and advanced execution.

New users should begin with the installation and two-image example below.

Installation

Install Python 3.12 and uv, then clone the repository and create its locked base environment:

git clone https://github.com/TheDeanLab/Cy-ExM.git
cd Cy-ExM
uv sync --locked --no-dev

Confirm that the package is available in the managed environment:

uv run python -c "import cyexm; print(cyexm.__version__)"

The installation guide explains optional capabilities for notebooks, YAML workflows, local parallel execution, HPC execution, and development.

Register two images

Supply a fixed reference TIFF, a moving TIFF, and the physical voxel spacing measured for your data. Save this example as register_images.py:

The quick start assumes that:

  • both inputs are scalar 3-D TIFF volumes;
  • reference.tif defines the fixed coordinate system;
  • moving.tif is the image transformed onto that system; and
  • pixel_size contains the measured voxel spacing for the input data.
from pathlib import Path

from cyexm.registration import register_round

register_round(
    fixed_image_path=Path("data/reference.tif"),
    moving_image_path=Path("data/moving.tif"),
    save_directory=Path("results/round-2"),
    imaging_round=2,
    pixel_size=(0.15, 0.15, 0.40),
    linear_accuracy="low",
    nonlinear_accuracy="high",
    nonlinear_metric="CC",
)

Run it in the managed environment:

uv run python register_images.py

Cy-ExM writes restart-safe registration artifacts below results/round-2. Running the same request again reuses artifacts whose completion evidence is still valid.

Before adapting the example, read the guides to registration strategies, image geometry, and outputs and recovery.

Register multiple imaging rounds

For several imaging rounds and channels, Cy-ExM can read a scientific dataset manifest together with a separate execution profile. Start with the example manifest and sequential execution profile, then follow the YAML workflow guide.

The checked-in YAML files are editable starting points. Supply the corresponding images and replace their paths before validating or running them.

Documentation

License

Cy-ExM is available for academic research under the terms in LICENSE.md.

About

Reusable cyclic expansion microscopy registration workflows

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages