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 will be publicly available in the near future.

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


Release history Release notifications | RSS feed

This version

0.1

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.1.tar.gz (15.6 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.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for stiminterp-0.1.tar.gz
Algorithm Hash digest
SHA256 0d2bb120637d2573fb754d99581aa64267de73b1b4bfab6ca437114a8e7eefd7
MD5 9b7a3126819cea55b5629c7476adbbe9
BLAKE2b-256 1e5761efde2a322f13d20630aae2a1dc2f050fe4df91ed5374ef0fff87bbec4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stiminterp-0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f799d9b85841a479c801ca9e30fa786c124fc97b66d0e6c92eda0f549e04af7
MD5 2ce671d49b8f907ec353865530a2518b
BLAKE2b-256 3b2234729900fd42f662efc6d1c2702083d8d5165edea1a7b8e1e84d91f5617a

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