Skip to main content

Automating calcium imaging analysis

Project description

Python Version PyPI Version License CI Code style: Ruff pre-commit

photon-mosaic logo photon-mosaic

photon-mosaic is a Snakemake-based toolkit for processing multiphoton datasets. It orchestrates a curated collection of algorithms to transform your raw data (e.g., TIFF files) into analysis-ready outputs, such as ΔF/F traces, NWB files, or inferred spikes.

Each analysis step is integrated into an automated workflow, allowing you to chain preprocessing, registration, signal extraction, and post-processing steps into a single, reproducible pipeline. The design prioritizes usability for labs that process many imaging sessions and need to scale across an HPC cluster.

photon-mosaic

This is made possible by Snakemake, a workflow management system that provides a powerful and flexible framework for defining and executing complex data processing pipelines. Snakemake automatically builds a directed acyclic graph (DAG) of all the steps in your analysis, ensuring that each step is executed in the correct order and that intermediate results are cached to avoid redundant computations. photon-mosaic also includes a SLURM executor plugin for Snakemake to seamlessly scale your analysis across an HPC cluster. To ensure consistency and reproducibility, photon-mosaic writes processed data according to the NeuroBlueprint data standard for organizing and storing multiphoton imaging data.

The goal of photon-mosaic is to provide a modular, extensible, and user-friendly framework for multiphoton data analysis that can be easily adapted to different experimental designs and analysis requirements. For each processing step, we aim to vet and integrate the best available open-source tools, providing sensible defaults tailored to the specific data type and experimental modality.

Roadmap

Current features

Planned additions

  • Registration using NoRMCorre for non-rigid motion correction.
  • ROI matching using ROICat for inter-session / inter-plane ROI matching.
  • Neuropil subtraction / decontamination: methods from the AllenSDK and AST-model.
  • Spike deconvolution: OASIS and CASCADE.

See issues on GitHub and the project board for more details and participate in planning. Please refer to our guidelines to understand how to contribute.

Installation

Photon-mosaic requires Python 3.11 or 3.12.

conda create -n photon-mosaic python=3.12
conda activate photon-mosaic
pip install photon-mosaic

To install with developer tools (e.g., testing and linting):

pip install 'photon-mosaic[dev]'

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

photon_mosaic_pipeline-0.3.2.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

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

photon_mosaic_pipeline-0.3.2-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

Details for the file photon_mosaic_pipeline-0.3.2.tar.gz.

File metadata

  • Download URL: photon_mosaic_pipeline-0.3.2.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for photon_mosaic_pipeline-0.3.2.tar.gz
Algorithm Hash digest
SHA256 a83b514090edb64619b9a4d2a8f3716bf01c86c6c22c0dcec5a5b7153d9cd8cb
MD5 4844567d7afe2f532143921bc34f0553
BLAKE2b-256 b6c8a82fe1c0e0d7312d290f2f9390dc089898ce7f5b1b2fbb9b7ac39c185c89

See more details on using hashes here.

File details

Details for the file photon_mosaic_pipeline-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for photon_mosaic_pipeline-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0264e4c1dc77cd58435554178a0b9fd8339e3994cc6f65fff590f0222d2c8140
MD5 6bb0d4e3832fc182fc6ed2874e79df56
BLAKE2b-256 13183d5dbff4d71420442ff119ad8410a0362997aec55e3d22ef1826b95d107a

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