Skip to main content

Python Version PyPI Version License

stiminterp

stiminterp provides an 1D-interpolation-based solution for removing photostimulation artefacts from multiphoton calcium imaging data.

The holographic stimulation saturates the PMTs and causes data loss. By identifying lines with the stimulation artefacts, this pipeline can replace the pixel rows containing the stimulation artefacts with the average values from corresponding rows in the preceding and following frames.


Installation

Create a fresh environment and install via pip:

conda create -n stiminterp-env python=3.12
conda activate stiminterp-env
pip install stiminterp

Overview

Understanding the causal role of brain dynamics is one of the fundamental questions in systemns neuroscience. Multiphoton holographic optogenetics, combined with multiphoton calcium imaging, enables causal testing of circuit models at single-cell resolution. However, photostimulation can saturate PMTs, producing line artefacts in the imaging data.

With stiminterp you can:

  • Detect artefact-contaminated lines from HDF5 generated by ScanImage
  • Perform spatiotemporal 1D-interpolation using scipy.interpolate
  • Recover calcium imaging movies that can be fed into standard analysis pipelines such as suite2p

Data Source & Funding

Sample data used for examples and figures can be found on Gin.

All microscopy data has been acquired using a custom two-photon microscope by Sumiya Kuroda in the Mrsic-Flogel Lab and Dale Elgar from COSYS Ltd..

This work represents a joint collaboration between Stanford University and the Sainsbury Wellcome Centre for Neural Circuits and Behaviour, University College London, supported by the Gatsby Charitable Foundation.


References

Previous work on artefact removal of all-optical imaging movies:

This package was inspired by previous calcium imaging analysis pipeline at Deisseroth lab.

This repo was made using neuroinformatics-unit/python-cookiecutter. See here for more info.


Contributing

Contributions are welcome. Please open an issue or submit a pull request on GitHub.


License

BSD-3-Clause

Metadata

Release files for stiminterp 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stiminterp 0.2.2
File Size Uploaded
stiminterp-0.2.2.tar.gz 17.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stiminterp 0.2.2
File Interpreter ABI Platform
stiminterp-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 31.0 kB

Release files / stiminterp-0.2.2.tar.gz

Download URL stiminterp-0.2.2.tar.gz
Size 17.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e068507298e0ade7dc4eb83967a67a94a4bd8f580beb4c9103baae519f04ff19
BLAKE2b-256 checksum
How to use checksums
63701f4627c30357f76fb3448deb52c70fce85645c18143f6a4ee850398d69ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release files / stiminterp-0.2.2-py3-none-any.whl

Download URL stiminterp-0.2.2-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c19060b534222e024dd163fdf6b5b01aa60b154c1c5a8395a068e379e11d86bc
BLAKE2b-256 checksum
How to use checksums
f5be9b7dcbd0ccf46a3884121025fc9372146005cfc4385ee8a76748385c6ea0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page