Skip to content
Nick Steinmetz edited this page Feb 22, 2019 · 21 revisions

Kilosort2

The GUI

The GUI is intended as a launcher for Kilosort, to help you run it on your data without errors and to do some sanity checks that it is working properly. It does NOT include any functionality for manually curating/revising/editing the results of the algorithm, so it is NOT a replacement for Phy or for other careful manual inspection.


1. Installation and running the GUI

To install, first follow the instructions at the main page.

Next, navigate to the kilosort directory and run 'kilosort':

>> cd \my\kilosort2\directory\
>> kilosort

2. Loading a dataset

To get started, choose a dataset by clicking "select data file" in the upper left. The data file should be a raw binary file containing just the data matrix, size [nChannels x nTimepoints], with int16 datatype. For more on data files, see below.

After you select the file, Kilosort will try to load it using the default channel map and


3. Viewing data

The Probe View (middle) shows the layout of your probe as specified in the channel map. Green/yellow channels are ones selected currently for viewing in the Data View. Blue/red channels are not currently visible in Data View. Yellow/Red channels are excluded from analysis, and do not appear in Data View.

The Data View shows the data from your file as kilosort will see it. If you can't see spikes, there's a problem! See troubleshooting. In colormap-mode, the Data View has an image showing channels (y-axis) by time (x-axis) voltage values. In this mode, only one of the available datasets (raw, filtered, prediction, residual) can be seen at a time.

In traces-mode, the Data View shows a set of traces for the selected channels, spaced out along the y-axis.

Here is a detailed list of controls available:

for Data View (right)

  • Click main data plot - re-center the view on that timepoint/channel
  • Click on the grey timeline bar (bottom) - jump to that timepoint
  • Scroll up/down - advance forward/backward in time
  • Ctrl+Scroll up/down - make the data view contain fewer/more channels of data

for Probe View (middle)

  • Click - select channels to view that are nearest to where you click
  • Scroll up/down - zoom in/out on the probe view
  • Right click on a channel -

4. Running kilosort

Click "Run all" in the bottom left. Note that while it is running, the gui will mostly be un-responsive. You will get status messages in the log box, and more detailed messages at the command window. Figures may appear.


5. Troubleshooting

I can't see spikes in the data view, or something looks funny about what I see.

My data file is of type XX. Can I use it?

One of the hotkeys isn't working in the gui.

Try clicking somewhere (returning the focus to the window) and try again. Or, be patient for it to finish computing something. If not that, close and re-open the gui.

Some other problem.

Try resetting the GUI with the Reset GUI button at upper right and starting over. No? Create an issue with a detailed description.

Clone this wiki locally