slap2-utils: Tools for Processing SLAP2 Data
Two-photon microscopy enables the measurements of neural activity in vivo, deep within the brain using fluorescent biosensors.However, capturing neural activity with voltage indicators, fast calcium or neurotransmitter biosensors, or slower indicators across 3D volumes requires sampling speeds that far exceed capabilities of conventional laser-scanning two-photon microscopes.The recently developed Scanned Line Angular Projection-2 (SLAP2) microscope has overcome these limitations by employing novel ultra-fast random-access scanning techniques to record neural activity at kilohertz sampling rates.Unlike traditional raster imaging, where pixels are recorded sequentially by spatial position, SLAP2's random-access acquisition optimizes the sampling order of regions of interest for speed.These recordings are stored in a complex file structure, which tracks the non-sequentially sampled coordinates.This novel data structure is incompatible with post-imaging analysis tools designed for traditional image formats, such as TIF or CZI files.Here, we present our Python library, slap2-utils, to interact with the custom data structure generated from SLAP2.slap2-utils allows users to extract neuronal activity directly from the SLAP2 binary files in a Python environment.
Authors
- Kurt Haas (ORCID: https://orcid.org/0000-0003-4754-1560)
- Peter William Hogg (ORCID: https://orcid.org/0000-0003-2176-4977)
- Jerry Shijie Tong (ORCID: https://orcid.org/0009-0007-4141-556X)
Institutions
- University of British Columbia (CA)
Publication Details
- Journal
- The Journal of Open Source Software
- Published
- 2025-08-20
- DOI
- https://doi.org/10.21105/joss.08054
- Primary Topic
- Genomics and Phylogenetic Studies
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Science Foundation
- Canadian Institutes of Health Research