Minian Decay Times

Skip to first unread message


Oct 5, 2022, 9:31:06 PM10/5/22
to Miniscope
Dear all,

we were running experiments with the V4 miniscopes and started to analyze them using minian. We are quite happy with the preprocessing steps and it's also cool how the pipeline leads one through the parameter exploration / selection.

However, we see largely prolonged decay times in the computed calcium traces C, if compared to the raw traces. I know there is no single parameter to drive for this, but I have played around with the others quite extensivley and couldnt find settings that have a major impact on the decay times. Caiman has a parameter to play with for decay times, and without tweaking any of the native settings, the deconvolved traces look much better on the same data set already (the fov seems to be reversed as well).

Did anybody encounter similar phenomenons on decay times and/or has tips how to deal with it? For example, are there parameters in the source code one can change to tweak that?


Daniel Aharoni

Oct 12, 2022, 2:01:22 PM10/12/22
to Miniscope
Hi Marek,
You bring up good points and often times, this deconvolution step is the most tricky and can lead to the biggest issues in downstream analysis when not done properly. Minian, along with most other 1-photon CA+2 processing pipelines, attempt to automate the process of finding the proper time-constants for the deconvolution algorithm. This, unfortunately, often leads to less than optimal output. 

What my group does is changes which deconvolution equation is used (we usually use the double exponential) and then have a workflow for determining the 2 time constants that best fit our data. We apply the same 2 constants to all cells/traces within a give recording. 

The details of how specifically we do this are probably a bit too in-depth for this form but I will see if we can write something up and share it here.


Oct 16, 2022, 8:12:21 PM10/16/22
to Miniscope
Hi Daniel,

Many thanks for your answer! I'm also using a double exponential equation, but it would be great to know a bit more about how you determine the time constants! A write up about that would be super informativ, I guess also for other starters. However, some code snippets would help as well if you are short in time!
Reply all
Reply to author
0 new messages