Skip to main content

Wave-optical simulations and deconvolution of optical properties

Project description

Image

Python package index PyPI monthly downloads Total downloads GitHub contributors GitHub Repo stars GitHub forks PyPI - Python Version

Label-agnostic computational microscopy of architectural order.

Overview

waveorder is a generalist framework for label-agnostic computational microscopy of architectural order, i.e., density, alignment, and orientation of biomolecules with the spatial resolution down to the diffraction limit. The framework implements wave-optical simulations and corresponding reconstruction algorithms for diverse label-free and fluorescence computational imaging methods that enable quantitative imaging of the architecture of dynamic cell systems.

Our goal is to enable modular and user-friendly implementations of computational microscopy methods for dynamic imaging across the scales of organelles, cells, and tissues.

The framework is described in the following preprint.

https://github.com/user-attachments/assets/4f9969e5-94ce-4e08-9f30-68314a905db6

`waveorder` enables simulations and reconstructions of label-agnostic microscopy data as described in the following [preprint](https://arxiv.org/abs/2412.09775) Chandler et al. 2024

@article{chandler_2024,
    author = {Chandler, Talon and Hirata-Miyasaki, Eduardo and Ivanov, Ivan E. and Liu, Ziwen and Sundarraman, Deepika and Ryan, Allyson Quinn and Jacobo, Adrian and Balla, Keir and Mehta, Shalin B.},
	title = {waveOrder: generalist framework for label-agnostic computational microscopy},
	journal = {arXiv},
	year = {2024},
	month = dec,
	eprint = {2412.09775},
	doi = {10.48550/arXiv.2412.09775}
}

Computational Microscopy Methods

waveorder framework enables simulations and reconstructions of data for diverse one-photon (single-scattering based) computational microscopy methods, summarized below.

Label-free microscopy

Quantitative label-free imaging with phase and polarization (QLIPP)

Acquisition, calibration, background correction, reconstruction, and applications of QLIPP are described in the following E-Life Paper:

Unveiling the invisible

Guo et al. 2020

@article{guo_2020,
	author = {Guo, Syuan-Ming and Yeh, Li-Hao and Folkesson, Jenny and Ivanov, Ivan E. and Krishnan, Anitha P. and Keefe, Matthew G. and Hashemi, Ezzat and Shin, David and Chhun, Bryant B. and Cho, Nathan H. and Leonetti, Manuel D. and Han, May H. and Nowakowski, Tomasz J. and Mehta, Shalin B.},
	title = {Revealing architectural order with quantitative label-free imaging and deep learning},
	journal = {eLife},
	volume = {9},
	pages = {e55502},
	year = {2020},
	doi = {10.7554/eLife.55502}
}

Permittivity tensor imaging (PTI)

PTI provides volumetric reconstructions of mean permittivity ($\propto$ material density), differential permittivity ($\propto$ material anisotropy), 3D orientation, and optic sign. The following figure summarizes PTI acquisition and reconstruction with a small optical section of the mouse brain tissue:

Data_flow

The acquisition, calibration, background correction, reconstruction, and applications of PTI are described in the following paper published in Nature Methods:

Yeh et al. 2024

@article{yeh_2024,
	author = {Yeh, Li-Hao and Ivanov, Ivan E. and Chandler, Talon and Byrum, Janie R. and Chhun, Bryant B. and Guo, Syuan-Ming and Foltz, Cameron and Hashemi, Ezzat and Perez-Bermejo, Juan A. and Wang, Huijun and Yu, Yanhao and Kazansky, Peter G. and Conklin, Bruce R. and Han, May H. and Mehta, Shalin B.},
	title = {Permittivity tensor imaging: modular label-free imaging of 3D dry mass and 3D orientation at high resolution},
	journal = {Nature Methods},
	volume = {21},
	number = {7},
	pages = {1257--1274},
	year = {2024},
	month = jul,
	issn = {1548-7105},
	publisher = {Nature Publishing Group},
	doi = {10.1038/s41592-024-02291-w}
}

Quantitative phase imaging (QPI) from defocus

phase from a volumetric brightfield acquisition (2D phase/3D phase)

Image

Jenkins and Gaylord 2015 (2D QPI from defocus)

	@article{Jenkins:15,
	author = {Micah H. Jenkins and Thomas K. Gaylord},
	journal = {Appl. Opt.},
	keywords = {Phase retrieval; Partial coherence in imaging; Interferometric imaging ; Imaging systems; Microlens arrays; Optical transfer functions; Phase contrast; Spatial resolution; Three dimensional imaging},
	number = {28},
	pages = {8566--8579},
	publisher = {Optica Publishing Group},
	title = {Quantitative phase microscopy via optimized inversion of the phase optical transfer function},
	volume = {54},
	month = {Oct},
	year = {2015},
	url = {https://opg.optica.org/ao/abstract.cfm?URI=ao-54-28-8566},
	doi = {10.1364/AO.54.008566},
}
Soto, Rodrigo, and Alieva 2018 (3D QPI from defocus)

@article{Soto:18,
author = {Juan M. Soto and Jos\'{e} A. Rodrigo and Tatiana Alieva},
journal = {Appl. Opt.},
keywords = {Coherence and statistical optics; Image reconstruction techniques; Optical transfer functions; Optical inspection; Three-dimensional microscopy; Acoustooptic modulators; Illumination design; Inverse design; LED sources; Three dimensional imaging; Three dimensional reconstruction},
number = {1},
pages = {A205--A214},
publisher = {Optica Publishing Group},
title = {Optical diffraction tomography with fully and partially coherent illumination in high numerical aperture label-free microscopy \[Invited\]},
volume = {57},
month = {Jan},
year = {2018},
url = {https://opg.optica.org/ao/abstract.cfm?URI=ao-57-1-A205},
doi = {10.1364/AO.57.00A205},
}

QPI with differential phase contrast

phase from differential phase contrast

Work in progress

Fluorescence microscopy

Widefield deconvolution microscopy

fluorescence density from a widefield volumetric fluorescence acquisition.

Swedlow 2013

@article{Swedlow:13,
author = {Swedlow, John R.},
journal = {Methods Cell Biol.},
title = {Quantitative fluorescence microscopy and image deconvolution},
year = {2013},
volume = {114},
pages = {407--26},
doi = {10.1016/B978-0-12-407761-4.00017-8}
}

Oblique plane light-sheet microscopy

fluorescence density from oblique plane light-sheet microscopy.

Ivanov, Hirata-Miyasaki, Chandler et al. 2024

@article{ivanov_2024,
author = {Ivanov, Ivan E. and Hirata-Miyasaki, Eduardo and Chandler, Talon and Cheloor-Kovilakam, Rasmi and Liu, Ziwen and Pradeep, Soorya and Liu, Chad and Bhave, Madhura and Khadka, Sudip and Arias, Carolina and Leonetti, Manuel D. and Huang, Bo and Mehta, Shalin B.},
title = {Mantis: High-throughput 4D imaging and analysis of the molecular and physical architecture of cells},
journal = {PNAS Nexus},
volume = {3},
number = {9},
pages = {pgae323},
year = {2024},
doi = {10.1093/pnasnexus/pgae323}

Citation

Please cite this repository, along with the relevant publications and preprints, if you use or adapt this code. The citation information can be found by clicking "Cite this repository" button in the About section in the right sidebar.

Installation

Create a virtual environment:

conda create -y -n waveorder python=3.12
conda activate waveorder

Most users should install waveorder with:

pip install waveorder[visual]

We also maintain three dependency sets for different interfaces:

pip install waveorder          # API, CLI
pip install waveorder[visual]  # API, CLI, GUI
pip install waveorder[all]     # API, CLI, GUI, docs, dev dependencies

(M1 users) pytorch has incomplete GPU support, so please use export PYTORCH_ENABLE_MPS_FALLBACK=1 to allow some operators to fallback to CPU if you plan to use GPU acceleration for polarization reconstruction.

Examples

The examples illustrate simulations and reconstruction for 2D QLIPP, 3D phase from brightfield, and 2D/3D PTI methods. To run examples, use

git clone https://github.com/mehta-lab/waveorder.git
cd waveorder
pip install -e .[all]
python ./docs/examples/models/phase_thick_3d.py

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

waveorder-3.0.0.tar.gz (66.8 MB view details)

Uploaded Source

Built Distribution

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

waveorder-3.0.0-py3-none-any.whl (247.8 kB view details)

Uploaded Python 3

File details

Details for the file waveorder-3.0.0.tar.gz.

File metadata

  • Download URL: waveorder-3.0.0.tar.gz
  • Upload date:
  • Size: 66.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for waveorder-3.0.0.tar.gz
Algorithm Hash digest
SHA256 ffed02744f27ad65d05257adc9f9daab819d404e16693a402e2b1575af39dd7a
MD5 39a0ff3b126f59d3ade104a15bd3b7cb
BLAKE2b-256 0f80188f46fb3b7d090aa4ac49b828d50fc933da2a623eeb357a09658cf2953f

See more details on using hashes here.

File details

Details for the file waveorder-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: waveorder-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 247.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for waveorder-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3bfb30b93166ca2d49275b97371c09626105c6a7435ed86775a75fa129d84204
MD5 5b89dd9ebbc2516c78d2e0f70be0ce39
BLAKE2b-256 97b8f9e475467382fd819e4981431a27e05f43113cb1367f2d3afb362999b6fb

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