Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using constrained methods from deconvolveCa #5

Open
ziyizhu1996 opened this issue Nov 1, 2019 · 0 comments
Open

Error when using constrained methods from deconvolveCa #5

ziyizhu1996 opened this issue Nov 1, 2019 · 0 comments

Comments

@ziyizhu1996
Copy link

ziyizhu1996 commented Nov 1, 2019

When I am running constrained foopsi method on my calcium df/f traces given decay constants, sometimes I get the following error:

code:
[c, s, options] = deconvolveCa(trace,'constrained','ar1', 0.9381, 'optimize_b');

error:

Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 1-by-8500.

Error in constrained_oasisAR1/update_lam_b (line 189)
active_set(end,1) = active_set(end,1) - lam*g^(active_set(end,4));

Error in constrained_oasisAR1 (line 125)
update_lam_b();

Error in deconvolveCa (line 114)
[c, s, options.b, options.pars, options.lambda] = constrained_oasisAR1(y,...

This is the plot of calcium traces that is being deconvoluted:

dff_trace_for_bug_deconv_8500frames

Also, if I just run with foopsi method, no error occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant