Replies: 3 comments 5 replies
-
Please see demo_seeded_CNMF.ipynb which shows how to do this. It's a demo I need to work on some more, but it should contain what you need. |
Beta Was this translation helpful? Give feedback.
-
@pbl007 The canonical use case is to run motion correction on a structural channel (e.g., red), and then apply the shifts to a different channel (green). Unfortunately, one weakness in Caiman is we don't currently have a good way to save these motion correction parameters after a run to save them for later use on the different channel/movie. This is obviously a serious problem in the code, and we should fix it! You cannot reconstruct it from the memmapped file, as that just saves the motion corrected file. What we need to do is create a save function, like we have for the CNMF object. This should be done for every major estimator in the caiman pipeline. I don't know why it doesn't exist for the motion correction object, but I'll open an issue about this now. Sorry I didn't appreciate the nature of your question before. This is something that has bothered me for a while and is something that should be fixed. |
Beta Was this translation helpful? Give feedback.
-
Added issue for this: #1246 In the meantime, currently the shifts are not saved, so you need to apply the discovered shifts to the second channel straight away. Sorry about this! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I would deeply appreciated if someone could tell me how to obtain the "shifts" computed for each frame and apply those to a different channel (e.g. Channel 1 Ca2+ data, Channel 2 cell-specific marker).
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions