Closed JSignoretGenest closed 6 years ago
@JeSiggen I looked into it. kde
will fail if your traces contain Inf values but it can tolerate a moderate amount of NaN values. the problem is more general with the df/f in micro-endoscopic data. In general this should be avoided since the background signal is very strong there and dominated from out of focus fluorescence (and not baseline fluorescence where a DF/F transformation would make change). I suggest you omit this step in your analysis.
Thanks for the answer. I disabled both the DF/F and the corresponding "trace_fit_extreme", it now reaches the end (the results are a bit strange, but I'll play with the parameters to see if it gets better).
@JeSiggen Thanks. Bear in mind that the CNMF-E package from Pengcheng Zhou is better suited for micro-endoscopic data although several people have reported good results with this package as well.
Hi,
I've encountered an error while trying to run the demo_patches_class on a motion corrected endoscope movie (300x300x1000 frames), and more precisely:
The error was in kde, but the problem seems to be the "data" input: in the faulty calls, there are some Inf values inside (kde runs just fine on some patches, but displays the error on some others, and it changes depending on the patch size).
As far as I could check by looking at the data size and the presence of Inf/NaN values along the chain, the problem seems to appear during a call to detrend_df_f (after the call, the matrices contain NaN and Inf values), but I am unable to solve the issue.
Thank you for your help!