Skip to main content

Photostimulation artifact removal via interpolation

Project description

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

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

stiminterp-0.2.2.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

stiminterp-0.2.2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file stiminterp-0.2.2.tar.gz.

File metadata

  • Download URL: stiminterp-0.2.2.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for stiminterp-0.2.2.tar.gz
Algorithm Hash digest
SHA256 e068507298e0ade7dc4eb83967a67a94a4bd8f580beb4c9103baae519f04ff19
MD5 c1cc2382fb26f5858470f1887a071472
BLAKE2b-256 63701f4627c30357f76fb3448deb52c70fce85645c18143f6a4ee850398d69ab

See more details on using hashes here.

File details

Details for the file stiminterp-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: stiminterp-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for stiminterp-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c19060b534222e024dd163fdf6b5b01aa60b154c1c5a8395a068e379e11d86bc
MD5 8045ca324838b107c650a4e00e536072
BLAKE2b-256 f5be9b7dcbd0ccf46a3884121025fc9372146005cfc4385ee8a76748385c6ea0

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