Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Mesmerize Banner

PyPI version Downloads License: GPL v3 Documentation Status Gitter

Mesmerize is a platform for the annotation and analysis of neuronal calcium imaging data. Mesmerize encompasses the entire process of calcium imaging analysis from raw data to interactive visualizations. Mesmerize allows you to create FAIR-functionally linked datasets that are easy to share. The analysis tools are applicable for a broad range of biological experiments and come with GUI interfaces that can be used without requiring a programming background.

Nature Communications paper:

Video Tutorials!

We have recently created detailed video tutorials! The main tutorial series provides a quick overview that takes you from raw imaging data, to downstream analysis and interactive visualizations:

Additional videos on specific aspects of Mesmerize will be posted here:


You can install mesmerize natively using conda or virtual environments. If you want a quick and easy installation you can import a VM that comes with mesmerize pre-installed and ready-to-go with all features.

Virtual/Conda Environments

If you're familiar with anaconda or virtual environments, install with pip:

pip install mesmerize

After installation just call mesmerize from inside the virtual environment to launch it.

See the docs for more detailed instructions on all operating systems:


In order to use CaImAn features you will need to have CaImAn installed into your environment. See the Mesmerize installation instructions linked above for more details:

Caiman is used for the following Viewer modules: CNMF, 3D CNMF, CNMFE, caiman motion correction and Detrend DFOF.


In order to use tslearn features you will need tslearn. This can be installed via pip or conda, see the detailed installation instructions for more details:

tslearn is used for KShape clustering, cross-correlation analysis, and some of the flowchart nodes.


In order to use nuset segmentation you will need tensorflow v1.15. You can use either tensorflow (CPU bound) or tensorflow-gpu

pip install --upgrade pip setuptools
pip install tensorflow~=1.15

VM (no virtual/conda environment setup required)

If you do not want to setup conda or virtual environments, you can import a VM with Mesmerize pre-installed and ready to go with all features:


Documentation is available here:


Feel free to ask questions or discuss things on gitter. For larger bugs/issues please use the issue tracker.


Issue tracker:


See the changelog for more details

November 2021

Version 0.8.0 released

  • Module for directly importing .isxd movies created by Inscopix Acquisition Software

November 2020


  • Bokeh based plots that use a bokeh-based datapoint tracer, still in very early stages
  • k-Shape "gridsearch", select a n-partitions range and number of combinations, returns heatmap of all k-Shape runs with inertia values NOTE: The gridsearch is not saved when the plot is saved. Only the chosen kshape iteration will be saved. This will be fixed in a future release
  • Plot neural dynamics in PCA or LDA space
  • PadArrays flowchart node to pad dataframe arrays when sizes don't match, useful when splicing is undesired
  • View mean, max, or std projection of caiman motion correction outputs by selecting them from the batch manager

September 2020

Version 0.3 released


  • Cross correlation plots with stimulus maps.
  • Support for Femtonics .mes and .mesc recordings.
  • Segmentation using deep learning via NuSeT.

July 2020


  • Mesmerize can now be installed via pip.
  • Much easier to import imaging meta data from other sources.
  • Create stimulus tuning curve plots.
  • ΔF/F must now be extracted at the Viewer stage for caiman data, or set through other methods. Spikes and ΔF/F can be visualized in the Viewer.

June 2020

Version 0.2 released.


  • Windows is now supported!
  • The Viewer can handle 3D data and 3D ROIs.
  • For development, classes are provided for creating Volumetic ROI types, and a Volumetic ROI manager.
  • Caiman 3D CNMF is supported.
  • Updated CNMF(E) and motion correction modules to use the latest release of CaImAn. Parameter entry GUIs are much more flexible now.
  • CNMF(E) data can be imported directly from hdf5 files from Caiman. Therefore you can use your own scripts/notebooks and existing CNMF hdf5 files for downstream analysis in Mesmerize.
  • More customizable support for use of caiman modules within the Mesmerize viewer's script editor.
  • Suite2p importer added, allowing you to perform downstream analysis of Suite2p output data in Mesmerize.
  • Some cleanup with the batch manager
  • bug fixes

Please note that batches from v0.1 and v0.2 are not inter-compatible. Use the v0.1 branch if you need v0.1

Nov 2019:

See our recent biorxiv manuscript where we use Mesmerize to analyze a calcium imaging dataset from Ciona intestinalis as well as other model organisms!

manuscript on biorxiv


  • Experimental use of the bioformats importer for the Viewer.
  • Export lite versions of projects for easier sharing.
  • Browsers based visualizations for sharing analysis results.


  • pyqtgraph developers for creating such an expansive library, which we built upon to create many of the interactive elements of Mesmerize.
  • CaImAn developers have created a very robust library for pre-processing and signal extraction of calcium imaging data, which Mesmerize is able to interface with.
  • Simon Daste provided sample data and assistance which allowed for creation of the Suite2p importer module.
  • Jordi Zwiggelaar created the Mesmerize logo & banner.