neuralib.spikes.oasis.oasis_dcnv
- neuralib.spikes.oasis.oasis_dcnv(dff, tau, fs, batch_size=300)[source]
Computes non-negative deconvolution (no sparsity constraints)
- Parameters:
dff (ndarray) – The observed calcium fluorescence trace in 2D numpy array(multiple neurons) or 1D numpy array(single cell). Array[float, [N, F]|F]
tau (float) – The time constant of the calcium indicator in ms
fs (float) – The sampling frequency of the calcium imaging data in hz
batch_size (int) – number of frames processed per batch
- Returns:
Deconvolved fluorescence. Array[float, [N,F]|F]
- Return type:
ndarray