Skip to content

Klusters interface

James Jun edited this page Jul 1, 2019 · 3 revisions

Importing a Neurosuite XML file format

  • To create a new parameter from the Neurosuite's XML format, run
    irc makeprm myparams.xml chanMap.mat
  • Make sure that there exists either .dat or .bin file with the same base name
    • e.g. myparams.dat for myparams.xml

Input

  1. myparams.xml is the Neurosuite XML file format.
  2. chanMap.mat is the KiloSort-compatible probe definition file in Matlab format. It should contain xcoords, ycoords, kcoords for each site (x coordinates, y coordinates, shank number).

Output

  1. A new parameter file myparams.prm is created in the directory containing myparams.xml.
  2. A new probe file chanMap.prb is created in the directory containing chanMap.mat.

Running irc

  • To run an automated sorting, run irc spikesort myparams.prm.
    • For longer recordings with minimal probe drift, you may wish to increase the batch length parameter.
    • Default batch length: batch_sec_drift = 300 (in seconds).

Exporting to Klusters format

  • Run irc export-klusters myparams.prm
    • It will create clu, res, fet, spk, par files for each shank
    • All output files are stored in the klusters directory under the main direcotry containing myparams.prm