CaImAn icon indicating copy to clipboard operation
CaImAn copied to clipboard

Analysis inside a region designated by a Binary Mask

Open ggmirandac opened this issue 1 year ago • 2 comments

Please fill in the following for any issues

Your setup:

  1. Operating System (Linux, MacOS, Windows): MacOS
  2. Hardware type (x86, ARM..) and RAM: M1 16 gb
  3. Python Version (e.g. 3.9): 3.10
  4. Caiman version (e.g. 1.9.12): last one
  5. Which demo exhibits the problem (if applicable): demo_seeded_CNMF.ipynb
  6. How you installed Caiman (pure conda, conda + compile, colab, ..): jupyter notebook using micromamba to install
  7. Details:

Hi

Sorry for so many questions.

I am currently working on analyzing the calcium traces on A. thaliana and CaImAn doesn't seem to work well because of the weird shape of the cells (I am using your tool because it not seems to be a better one to analyze calcium). And I'm trying to use a set of binary masks for the analysis of the specific region that I am trying to understand the behavior.

My main issues are that, on one side, the binary masks are weirdly shaped because I am analyzing the cell wall: (one example provided, I have approximately 120 more)

binary_mask_105

And CaImAn doesn't seem to work good on this, because when I run the seeded analysis based on the .ipynb file that I gives me the following output for the analysis:

Screenshot 2023-08-24 at 18 29 59

And as you can see, the region that was selected by the CNMF algorithm is different from the presented on the binary mask.

Is there a way to just extract the calcium traces on the cell wall using CaImAn as a tool for background signal extraction and deconvolution of the data extracted, but still extracting the traces on the region marked with the binary mask?

Best regards

ggmirandac avatar Aug 24 '23 22:08 ggmirandac