This documentation is for the older Mesmerize legacy desktop application. Please see the home page or GitHub repo for information on the latest packages.

Stimulus Tuning

Get the stimulus tuning and tuning curves of neurons.

The output from this plot node can also be used for various things downstream, such as hierarchical clustering to sort your cells based on their tuning, visualizing the tuning of each neuron using a SpaceMap plot, and much more. See the video tutorial for examples.

Video Tutorial

This tutorial uses part of the CRCNS pvc-7 dataset from the Allen Institute to get stimulus tuning curves, perform hierarchical clustering and dimensionality reduction.







Data column used to determine the stimulus tuning of the cells


Use one of mean, median, max or min response within a stimulus period to determine the tuning

start offset

Use a start offset for the stimulus periods (can be either positive or negative)

end offset

Use a end offset for the stimulus periods (can be either positive or negative)

DPT column

Data column that is shown in the Datapoint Tracer.


Set the stimulus extraction parameters defined above.


Save the plot data and state in an interactive form


  1. Set the desired parameters for data_column, method, start offset, end offset and DPT column.

  2. Click Set.

  3. Choose a Sample from the list.

  4. Click on an ROI number to view the tuning curve, and corresponding spatial localization and curve in the Datapoint Tracer.

  5. You can use the output of this plot node for further analysis, as show in the tutorial video.