spikeinterface
0.96.0

Contents:

  • Overview
  • Installation
  • Getting started tutorial
  • Modules documentation
  • Modules tutorials
    • Core tutorials
    • Extractors tutorials
    • Preprocessing tutorial
    • Sorters tutorials
    • Postprocessing tutorial
    • Quality metrics tutorial
    • Comparison tutorials
    • Widgets tutorials
      • Core tutorials
      • Extractors tutorials
      • Preprocessing tutorial
      • Sorters tutorials
      • Postprocessing tutorial
      • Quality metrics tutorial
      • Comparison tutorials
      • Widgets tutorials
        • RecordingExtractor Widgets Gallery
        • SortingExtractor Widgets Gallery
        • Waveforms Widgets Gallery
        • Peaks Widgets Gallery
  • Compatible Technology
  • Containerized Sorters
  • Installing Spike Sorters
  • SpikeInterface-based spike sorters
  • Viewers
  • Contribute
  • API
  • Release notes
  • Contact Us
spikeinterface
  • »
  • Modules tutorials »
  • Widgets tutorials »
  • SortingExtractor Widgets Gallery
  • Edit on GitHub

Note

Click here to download the full example code

SortingExtractor Widgets Gallery¶

Here is a gallery of all the available widgets using SortingExtractor objects.

import matplotlib.pyplot as plt

import spikeinterface.extractors as se
import spikeinterface.widgets as sw

First, let’s create a toy example with the extractors module:

recording, sorting = se.toy_example(duration=100, num_channels=1, seed=0, num_segments=1)

plot_rasters()¶

w_rs = sw.plot_rasters(sorting)
plot 2 sort gallery

plot_isi_distribution()¶

w_isi = sw.plot_isi_distribution(sorting, window_ms=150.0, bin_ms=5.0)
plot 2 sort gallery

plot_autocorrelograms()¶

w_ach = sw.plot_autocorrelograms(sorting, window_ms=150.0, bin_ms=5.0, unit_ids=[1, 2, 5])
1, 2, 5
/home/docs/checkouts/readthedocs.org/user_builds/spikeinterface/conda/0.96.0/lib/python3.8/site-packages/spikeinterface/postprocessing/correlograms.py:189: DeprecationWarning: symmetrize is deprecated. It will always be True soon.
  return _compute_correlograms(waveform_or_sorting_extractor, window_ms=window_ms,

plot_crosscorrelograms()¶

w_cch = sw.plot_crosscorrelograms(sorting, window_ms=150.0, bin_ms=5.0, unit_ids=[1, 2, 5])

plt.show()
1, 2, 5
/home/docs/checkouts/readthedocs.org/user_builds/spikeinterface/conda/0.96.0/lib/python3.8/site-packages/spikeinterface/postprocessing/correlograms.py:189: DeprecationWarning: symmetrize is deprecated. It will always be True soon.
  return _compute_correlograms(waveform_or_sorting_extractor, window_ms=window_ms,

plot_presence()¶

w_pr = sw.plot_presence(sorting)

plt.show()
plot 2 sort gallery

Total running time of the script: ( 0 minutes 1.838 seconds)

Download Python source code: plot_2_sort_gallery.py

Download Jupyter notebook: plot_2_sort_gallery.ipynb

Gallery generated by Sphinx-Gallery

Previous Next

© Copyright 2022, Alessio Paolo Buccino, Samuel Garcia, Cole Hurwitz, Jeremy Magland, Matthias Hennig. Revision 837f8817.

Built with Sphinx using a theme provided by Read the Docs.