-
Notifications
You must be signed in to change notification settings - Fork 15
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
Fix motion correction and CNMF for 3D movies #300
Conversation
rebase this on main once #298 is merged |
wait until next release of caiman and then pin the next release of mescore to that |
Caiman PR is merged, but still waiting for next release to mark as ready for review. |
Caiman 1.11.2 is released |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry for the response, few minor comments mostly because I haven't been keeping up with what's happening on caiman
Lgtm! |
The mcorr algorithm currently fails when run on a 3D movie during correlation image calculation. This is due to some code in caiman that could probably also be changed to get it to work (flatironinstitute/CaImAn#1363 does half of it), but this PR should fix mcorr in a way that is also compatible with existing caiman versions:
load_file_chain
does not get called, which meansis3D
is not needed (otherwise this throws an error).This PR is dependent on #298 (to avoid an ugly merge) so I'm submitting it as a draft for now. Also, it would be good to add a test case for 3D motion correction (with test data and everything). But at least the current tests pass (except for the 2 that are always failing) so it doesn't break 2D mcorr.