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

CNMF Errors/Trouble Shooting #1450

Open
ViciousPlants opened this issue Jan 16, 2025 · 1 comment
Open

CNMF Errors/Trouble Shooting #1450

ViciousPlants opened this issue Jan 16, 2025 · 1 comment

Comments

@ViciousPlants
Copy link

ViciousPlants commented Jan 16, 2025

My setup:

  1. MacOS
  2. M1Pro and RAM: 16 gb
  3. Python Version: 3.11.11
  4. Caiman version: 1.11.3
  5. Which demo exhibits the problem: demo_pipeline.ipynb
  6. How you installed Caiman: miniforge
  7. Details: Issues with identifying the correct parameters for CNMF for data set.

Hello! I have recently been trying to use Caiman to determine calcium activity in response to a stimulus. Our group has no experience analyzing calcium data before so I have just been following the demos and applying our data to the demos.

When I ran CNMF on my data set (2D timelapse image with 31 time frames), I encountered the following error:
image
I am not sure what the "nperseg" variable represent and if it is critical.

The components found from CNMF were all incredibly small:
image

However, I did try to modify the critical CNMF parameters:
image

Please let me your thoughts and advice on things to try for correctly identifying components.

More information on my dataset:
My raw data is 3D with 103 timepoints (each timepoint is 40 seconds). The test data I am using to learn Caiman is a z-slice of my 3D data.

@kushalkolar
Copy link
Collaborator

Hello! I have recently been trying to use Caiman to determine calcium activity in response to a stimulus. Our group has no experience analyzing calcium data before so I have just been following the demos and applying our data to the demos.

Andrea's videos are the best place to start if you haven't watched already:

https://github.com/flatironinstitute/CaImAn?tab=readme-ov-file#videos

When I ran CNMF on my data set (2D timelapse image with 31 time frames), I encountered the following error: image I am not sure what the "nperseg" variable represent and if it is critical.

This is a warning not an error

The components found from CNMF were all incredibly small: image

I can't say much from this, what kinds of cells are these, are they homogenous in size, what gSig did you use. You can post a video in a github comment (just drag & drop) if it's under 10MB.

More information on my dataset: My raw data is 3D with 103 timepoints (each timepoint is 40 seconds). The test data I am using to learn Caiman is a z-slice of my 3D data.

Are you only analyzing ~100 frames of data? What exactly is this, it doesn't seem like neuronal imaging which is what caiman is meant for. At the least you must not use deconvolution because it makes no sense if your imaging rate is 40 seconds per frame.

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