Suite2P icon indicating copy to clipboard operation
Suite2P copied to clipboard

OASISpreprocess returns baseline-subtracted calcium instead of the baseline?

Open synapticlee opened this issue 7 years ago • 1 comments

Hi, not sure if this matters (or if this was intentional) but I noticed in the code for deconvolution using OASIS, when OASISpreprocess is called here: https://github.com/cortex-lab/Suite2P/blob/2d2b3e4663b55bc4ec611fee67f399d6802a7638/SpikeDetection/wrapperDECONV.m#L65

it returns "Fbase" as its fourth output, yet the fourth output of OASISpreprocess is actually "F1", which is the calcium subtracted by the baseline, Fbase.

synapticlee avatar Oct 04 '18 10:10 synapticlee

Thanks for catching that bug. I am not sure when we introduced it, but we never really use the baselines so we never noticed.

marius10p avatar Oct 17 '18 02:10 marius10p