Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 15 18:11
    JCKMes commented #99
  • May 15 17:43
    kushalkolar commented #99
  • May 15 17:30
    JCKMes commented #99
  • May 15 16:25
    kushalkolar commented #99
  • May 15 16:13
    JCKMes commented #99
  • May 15 09:19
    kushalkolar commented #99
  • May 15 00:29
    JCKMes commented #99
  • May 14 19:24
    kushalkolar commented #99
  • May 14 19:24
    kushalkolar commented #99
  • May 14 19:23
    kushalkolar commented #99
  • May 14 19:08
    JCKMes labeled #99
  • May 14 19:08
    JCKMes opened #99
  • May 14 19:08
    JCKMes assigned #99
  • May 04 13:00
    AlbertoLombardini13 closed #98
  • May 04 13:00
    AlbertoLombardini13 commented #98
  • Apr 29 02:49
    kushalkolar closed #95
  • Apr 29 02:49
    kushalkolar commented #95
  • Apr 26 18:18
    kushalkolar commented #98
  • Apr 26 15:54
    AlbertoLombardini13 labeled #98
  • Apr 26 15:54
    AlbertoLombardini13 assigned #98
Kushal Kolar
@kushalkolar
as shown in those, if you decide that you want the non-negativity constraint you can enter bas_nonneg=True in the Use CNMF kwargs box just as you would enter the kwarg in a script http://docs.mesmerizelab.org/en/master/user_guides/viewer/modules/cnmfe.html
Eric Thomson
@EricThomson

In the mesmerize environment in a Jupyter notebook, trying to start a cluster cm.cluster.setup_cluster() I get an error that there is already one running (even if this is the first command I try to run: Exception: A cluster is already runnning. Terminate with dview.terminate() if you want to restart.).

I assume mesmerize environment fires up threads by default or something? I wonder if I can just access these and feed as argument to dview in setup_cluster(), or can I access/terminate the mesmerize cluster within Jupyter?

Or just as likely there is another better option and I'm thinking about this wrong. :)
Kushal Kolar
@kushalkolar
@EricThomson I have to figure out where the existing cluster is coming from, you can pass ignore_preexisting=True to caiman.cluster.setup_cluster() to get a new one
Kushal Kolar
@kushalkolar
There's isn't a worker pool, there's a SyncManager which is started. The caiman function just checks if multiprocessing.active_children() > 0. The SyncManager might be a pyqtgraph thing
Kushal Kolar
@kushalkolar
So basically, there is no divew intsance that's already running, it's a SyncManager and caiman.cluster.setupcluster() just checks multiprocessing.active_children() which contains a SyncManager. Pass ignore_preexisting=True to setup_cluster.
Eric Thomson
@EricThomson
Ah ok thanks I didn't noticed that parameter before will give this a go!
Eric Thomson
@EricThomson
Yes that did the trick.
katherinekelly2012
@katherinekelly2012
Hi, I am trying to do max projections and the program is not allowing me to export the videos. They load fine, but the program does not respond in any manner when I press export video. What do you think the error would be?
Kushal Kolar
@kushalkolar
Which export button are you clicking
@katherinekelly2012 the one above the histogram of the viewer?
katherinekelly2012
@katherinekelly2012
@kushalkolar Yes that's the one in the max projection pop up
Kushal Kolar
@kushalkolar
Ah, you can't export a video from a max projection. But you can export a video from the movie/image sequence shown in the viewer
I think you might need ffmpeg to be installed for the export.
katherinekelly2012
@katherinekelly2012
Yes, that is correct. I just installed ffmpeg into my mesmerize environment and I still can't seem to export the max projection.
Kushal Kolar
@kushalkolar
Yea, you can't make a movie from the max projection
But you can export the movie itself
@katherinekelly2012 click the same button but not in the max projection and you should be able to export
Kushal Kolar
@kushalkolar
image.png
you will get an export window like this
katherinekelly2012
@katherinekelly2012
Ok do you know why I would be getting this error: AssertionError: Unknown encoder extension? I've installed ffmpeg and x264. I previously thought it was functioning because I got the popup but when I go further it throws the previously mentioned error.
Kushal Kolar
@kushalkolar
@katherinekelly2012 I need the entire traceback
And what OS are you on etc.
BTW the issue tracker on GitHub is better for these types of things :)
katherinekelly2012
@katherinekelly2012
Ok thanks I can post there
Pradeep Rajasekhar
@pr4deepr
Hi @kushalkolar
If I import ROIs from ImageJ, instead of CNMF how will it affect the downstream analysis?
Cheers
Pradeep
i.e, can I still do peak analysis, k-shape etc?
Kushal Kolar
@kushalkolar
there's no difference, everything gets packaged into a project sample regardless of the signal extraction method
Pradeep Rajasekhar
@pr4deepr
Thanks @kushalkolar
Also, is there a spatiotemporal analysis component as well? Perhaps am missing something obvious.
Kushal Kolar
@kushalkolar
what do you mean?
Pradeep Rajasekhar
@pr4deepr
i.e., using coordinates or locations of the cells and their peak features to figure out changes in intercellular communication?
Kushal Kolar
@kushalkolar
You can add any number of labels you want to ROIs, which then get stored as categorical variables and you could see if peak features or the kshape clusters that data fall into are different based on those categoricla variables
Pradeep Rajasekhar
@pr4deepr
Maybe its the terminology I use. I should rephrase it to I am looking at correlations in activity between cells, so it still applies?
Kushal Kolar
@kushalkolar
correlation in activity is a different thing
Pradeep Rajasekhar
@pr4deepr
ahh
Pradeep Rajasekhar
@pr4deepr
So with the correlation we are using the temporal component, right?
Is it possible to add the spatial component to it as well?
Kushal Kolar
@kushalkolar
you mean ROI tags?
If you tag ROIs and then use the cross correlation GUI you can see the corresponding ROI tags in the plot http://docs.mesmerizelab.org/en/master/_images/cross_cor.gif
Eric Thomson
@EricThomson
I have many users that now want to use mesmerize, and we are wondering what the kind of minimal requirements are? I assume similar to caiman. I know caiman doesn't require NVidia GPU but does benefit from high RAM, high core count, good CPU, etc.. Is there a kind of "minimum suggested build" for mesmerize? There are people with gov't issued laptops that are not amazing. In terms of RAM it seems 64 is good can we get away with 32?
Eric Thomson
@EricThomson
(We are doing cnmf-e so don't use cnn based component exclusion so no need for gpu)
Kushal Kolar
@kushalkolar

@EricThomson Yup in general the same requirements as Caiman if you're using those modules.

CNMFE is more resource intensive than CNMF. If your imaging resolution is ~512x512 and your movies are shorter than 10 mins you might be able to get away with 32GB or less. For longer movies I think it's recommended to use CNMFE online anyways. Faster RAM and quad channel RAM also seems to help for both CNMFE and motion correction (quad channel is usually only availalbe on Xeon and Threadripper I think).

For certain downstream things like computing Earth Mover's Distances like in our papers, very high thread count (64+) is necessary for large datasets (thousands of traces) and the computation will take days. Similar for kshape clustering.

Eric Thomson
@EricThomson
Thanks that's really helpful I will take this into consideration
Eric Thomson
@EricThomson
To run caiman motion correction in mesmerize without the piecewise motion correction, should it be enough to check the Use motion correction kwargs box and manually add in pw_rigid=False, and then just set the rigid correction params I want (and ignore the Elastic correction params)?
Kushal Kolar
@kushalkolar
Nope, I haven't added the option to perform just the rigid correction, is there a usecase where non-rigid doesn't work?
Eric Thomson
@EricThomson
There are cases where rigid is sufficient. Since it is a lot faster it is preferable in those cases (e.g., we have animals under anesthesia where there is not much movement, and rigid works well).
Eric Thomson
@EricThomson
To "delete" a project (e.g., a test project I was using to play with) I can just delete its associated directory? Or I guess my question is: is this the recommended way? :)
Kushal Kolar
@kushalkolar
Yes, and yup that's the recommended way
Irene Ayuso
@AyusoAa
Hi all! I am trying to use the Mesmerize VM. I successfully installed it and mesmerize is in the venvs folder. However, when I double click in the desktop icon, mesmerize doe snot start. A terminal window opens, no message pops up, and the it disappears. Mesmerize also does not start when typing mesmerize in the terminal. Did anyone encounter such issues? Cheers
Kushal Kolar
@kushalkolar
@AyusoAa When you say you installed it, do you mean that you imported the VM? You don't need to install Mesmerize within the VM, Mesmerize is pre-installed.
Irene Ayuso
@AyusoAa
Yes, I meant, I imported it. I did not install mesmerize.