cortex-lab / Suite2P

Tools for processing 2P recordings
Other
122 stars 66 forks source link

wrapperDECONV not returning spikes #110

Closed delrosni closed 6 years ago

delrosni commented 6 years ago

Hi Marius,

After running wrapperDECONV on my processed somatic traces, I get results that look similar to my original raw trace:

exproblemtraces

I have added OASIS to the path and ran the OASIS setup script. I specified my sensor tau (0.5) and frames per second (3.7) in the ops structure. Interestingly, when I run OASIS's deconvolveCa wrapper with just the method specified as 'constrained_foopsi', I get spikes that look more reasonable.

Not relevant but for a spatial reference, the trace I'm showing is from the selected cell:

exproblemmean exproblemroi

marius10p commented 6 years ago

Hi,

Given your tau (0.5 seconds) and frame rate (3.7Hz), you should expect transients to decay in ~2 frames, which is much faster than the apparent decay. Your transients seem to last for ~20-30 frames. Either your timescale is not really 2 frames, or you have bursts of sustained activity, in which case the result is correct.

carsen-stringer commented 6 years ago

Did changing the timescale help? Please reopen this issue if you're still having problems with this, thanks