How to convert data with SpikeInterface
This guide shows you how to create the GUI’s input files from any recording system or spike sorter that SpikeInterface can read, such as Open Ephys.
Prerequisites
SpikeInterface installed in your analysis environment.
A
SortingAnalyzerfor the sorting, with thetemplates,spike_amplitudesandquality_metricsextensions computed.
Steps
Build the
SortingAnalyzerand compute the extensions the exporter needs, following the SpikeInterface documentation.Export it with
export_to_ibl_gui. Pass the LF band recording aslfp_recordingto also get the LF RMS and power spectrum plots:from spikeinterface.exporters import export_to_ibl_gui export_to_ibl_gui( sorting_analyzer, output_folder='/path/to/output', lfp_recording=lfp_recording, )
The AP band RMS is computed only if the analyzer has its recording attached.
Check that the output folder holds
spikes.*,clusters.*andchannels.*files, and the_iblqc_*files.In the session YAML, use the output folder as both the
spike_sortingand theprocessed_ephysfolder (see How to write a session YAML for one probe).
The exporter’s good_units_query sets which units are labelled good in clusters.metrics.csv,
which the unit filters use (see How to show only well-isolated units).