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.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-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stiminterp-0.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.tar.gz
Algorithm Hash digest
SHA256 d9eca2e01d57dd51762a6168f2533d612d2f8dcaa96cc26862bfda514ef69a51
MD5 104ad91b2f200eccbb6bf3445c0bd8eb
BLAKE2b-256 8a8fb607dece2dbafd3af43c7b1e399c92604a85f7234ec2c1e3898679590ef4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stiminterp-0.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-py3-none-any.whl
Algorithm Hash digest
SHA256 8178f10ed57818ba508260c1648cdce45319ab427cb7833ad075393faa146786
MD5 81c00ff1d9e2218c2f46f17589222d72
BLAKE2b-256 922e44878fab2a6761836734450c8a8646a710c24eb4e528382c43c9ce91159b

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