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

What is the best way to estimate event rate in 1p using CaImAn? #1408

Open
programerkotik opened this issue Sep 25, 2024 · 1 comment
Open

Comments

@programerkotik
Copy link

I'd like to obtain a reliable estimate of the event rate (number of calcium peaks per unit time). What would be the best way to do this using CaImAn? I have already fitted the model and computed dF/F.

Thank you!
Anna

@pgunn
Copy link
Member

pgunn commented Sep 25, 2024

Hello,
Probably the best way to do this is to save the traces in C (there's some code in demo_pipeline showing how to do that) to a pandas dataframe or a file and after that, it should be pretty easy to iterate over the bodies you care about (or all of them) and calculate a rate.

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

2 participants