neuralib.imaging.spikes.oasis
Computes non-negative deconvolution (no sparsity constraints) |
|
Performs spike deconvolution for a single neuron's calcium imaging trace using a greedy method |
OASIS
Fast online deconvolution of calcium imaging dat
Method source
This script adapted from suite2p.suite2p.extraction.dcnv
(Copyright © 2023 Howard Hughes Medical Institute, Authored by Carsen Stringer and Marius Pachitariu)
Example of usage
from neuralib.imaging.spikes.oasis import oasis_dcnv
# 2D dF/F array. Array[float, [nNeurons, nFrames]] or Array[float, nFrames]
dff = ...
tau = 1.5 # time constant of the calcium indicator (ms)
fs = 30 # sampling frequency of the calcium imaging data (hz)
spks = oasis_dcnv(dff, tau, fs)