Coder Social home page Coder Social logo

oopsi's People

Contributors

jovo avatar rysk-t avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oopsi's Issues

Parameter fitting in fast_oopsi.m fails for b

Nice code! I was trying to do parameter estimation using fast_oopsi, and I found that the likelihood oscillates if I try to estimate the baseline flourescence.

A minimum working example:

V = struct();
V.dt = 0.03
V.est_sig = 1;
V.est_lam = 1;
V.est_gam = 1;
V.est_a = 1;
V.fast_ignore_post = 1;
V.fast_iter_max = 100;
V.fast_plot = 1;

%The critical line
V.est_b = 1;

fast_oopsi(ones(1, 10000), V);

The problem appears to be in estimating b --- if we set V.est_b=0, then the oscillations disappear.

fluorescence time series

Hi Joshua,

Could you provide the real calcium trace data that you used for your papers please?

Thanks.

Typo in the definition of P.lam

oopsi/demo.m, Line 12:
P.lam = 0.1; % firing rate = lam*dt

Here, I believe the comment should be "firing rate = lam/dt".
To avoid confusion, it may be better to substitute P.lam with P.fr, and use lam exclusively for the expected number of spike counts for each time bin (dt).

Receiving errors like "Undefined function or variable "C1" when using it for a single time series

I have been trying to quantify spontaneous Ca recordings in the Olfactory bulb, when i came across your very attractive code on Github, fast-oopsi.
As I am new to the concept of spike deconvolution, i tried to include my traces in a Matlab matrix (a modification to your demo.m is attached), but i get an error:
"Undefined function or variable "C1.
Error in fast_oopsi/est_MAP (line 306)
C = C1; % update C
Error in fast_oopsi (line 166)
[n C posts(1)] = est_MAP(F,P);
Error in oopsie_test (line 35)
[data(l).Nhat data(l).Phat] = fast_oopsi(F2,V,P);"
As suggested, I have tried passing each time-series as a vector on its own, but the same error persists.
Could you please help me figure out the problem. Thanks a lot in advance.
Highly obliged for your kind attention
Regards,
Soham

a.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.