/tSort

Igor Pro GUI which offers a spike sorting environment for extracellular recordings.

Primary LanguageIGOR ProMIT LicenseMIT

tSort

An Igor Pro GUI which offers a spike sorting environment for extracellular recordings with microelectrodes.

Getting Started

Prerequisites

This code has been tested in Igor Pro version 6.3.7.2. for Windows and supposed to work in Igor Pro 6.1 or later.

Installing

  1. Install Igor Pro 6.1 or later.
  2. Put GlobalProcedure.ipf of tUtility or its shortcut into the Igor Procedures folder, which is normally located at My Documents\WaveMetrics\Igor Pro 6 User Files\Igor Procedures.
  3. SetWindowExt.xop or its shortcut into the Igor Extensions folder, which is normally located at My Documents\WaveMetrics\Igor Pro 6 User Files\Igor Extensions.
  4. Optional: SetWindowExt Help.ipf or its shortcut into the Igor Help Files folder, which is normally located at My Documents\WaveMetrics\Igor Pro 6 User Files\Igor Help Files.
  5. Put tSort.ipf or its shortcut into the Igor Procedure folder.
  6. Restart Igor Pro.

How to initialize the tSort GUI

  • Click "tSortInitialize" in "Initialize" submenu of "tSort" menu.
  • Main control panel (tSortMainControlPanel), main graph (tSortMainGraph), event graph (tSortEventGraph), master table (tSortMasterTable), and slave table (tSortSlabeTable) windows will appear.

How to use

Spike detection and sorting

  1. Get your waves into the List on "Main" tab of the main control panel using "GetAll" or "GetWL" buttons. The names of source waves on the list can directly be edited by clicking "EditList" button. Spike, LFP, ECoG, EMG, and Marker fields suppose to have high-pass filtered waves, low-pass filtered waves, LFP of another brain region, EMG, and TTL signal for stimulation. The list must have at least waves in the Spike field.
  2. Set parameters for spike detection in "Extract" tab of the main control panel.
  3. Set a source wave for analysis by clicking "srcWave" button on the Main tab of the main control panel.
  4. Make the master table and the main graph ready for spike detection by clicking "MTablePrep" and then "DisplayInit" buttons on the Main tab.
  5. Detect spikes on the source wave by clicking "AutoSearch" button on the Main tab.
  6. Calculate several parameters associated with spikes (interevent intervals etc.) by clicking "EachParam" button on the Main tab.
  7. Move on the next sweep (wave) by clicking "Next Sw" button on the panel of the main graph.
  8. Repeat 5 to 7 over your all waves on the list.
  9. Extract waveforms of all events by clicking "Extract" button of the event graph.
  10. Do principal component analysis and get the first three figures for each spike by clicking "PCA" button on the Cluster tab of the main control panel.
  11. Do clustering by clicking "FPC" button in Minimum group on the Cluster tab.
  12. Calculate indexed interevent intervals and pattern index by clicking "IndexedIEI" and "PatternIndex" buttons on the master table.
  13. Sort each unit whether burst or non-burst by clicking "BurstIndex" button on the panel of the main graph.

Analysis of spontaneous firing

  1. Set the analysis mode as Spontaneous by "Analysis Mode" pull-down menu on the Hist tab of the main control panel.
  2. Make the slave table ready for the analysis by clicking "STablePrep" button on the Hist tab.
  3. Specify source wave for analysis.
  4. Display the source wave and then detect spikes on it by clicking "DisplayInit" and "AutoSearch" buttons on the Hist tab.
  5. Repeat 2 to 3.
  6. Sort each unit whether burst or non-burst by clicking "BurstIndex" button on the slave table.
  7. Make raster waves by clicking "Raster" button on the Hist tab of the main control panel.
  8. Make a summary of firing rate of each unit by clicking "Sponta Hz" button on the Hist tab.
  9. Have firing rate histogram by clicking "Histogram" button on the Hist tab.

Anasysis of evoked firing (peri-stimulus time histogram)

  1. Set the analysis mode as PSTH by "Analysis Mode" pull-down menu on the Hist tab of the main control panel.
  2. Make the slave table ready for the analysis by clicking "STablePrep" button on the Hist tab.
  3. Set detection analytical parameters on the Hist tab (number of trials, time window width etc.).
  4. Specify source wave for analysis.
  5. Display the source wave and then detect spikes on it by clicking "DisplayInit" and "AutoSearch" buttons on the Hist tab.
  6. Repeat 3 to 4.
  7. Sort each unit whether burst or non-burst by clicking "BurstIndex" button on the slave table.
  8. Make raster waves by clicking "Raster" button on the Hist tab of the main control panel.
  9. Have firing rate histogram by clicking "Histogram" button on the Hist tab.

Making output reports

  • Main Graph: Select components to display by check boxes and have a view by clicking "Transform" button on the DispMode tab of the main control panel. After that have a new graph by clicking "tWaveSortGraph" button on the Hist tab of the main control panel.
  • Traces of single trial: Specify a specific trial number on the Hist tab and then click "EachTrialGraph" button.
  • Traces of all trials: Click "AllTrialGraph" button on the Hist tab.
  • Waveform graph: Click "PlainEvents" button on the Hist tab.
  • 3D feature plot: Click "NewPCGizmo" and "ExportGizmo" buttons for creation and export.

Help

  • Click "Help" in "tSort" menu.

DOI

DOI

Versioning

We use SemVer for versioning.

Releases

  • Version 1.0.0, 2017/06/10
  • Prerelease, 2017/06/06

Authors

  • Yuichi Takeuchi, PhD - Initial work - GitHub

License

This project is licensed under the MIT License.

Acknowledgments

References

tSort has been used for the following works:

  • Takeuchi Y, Osaki H, Yagasaki Y, Katayama Y, Miyata M (2017) Afferent Fiber Remodeling in the Somatosensory Thalamus of Mice as a Neural Basis of Somatotopic Reorganization in the Brain and Ectopic Mechanical Hypersensitivity after Peripheral Sensory Nerve Injury. eNeuro 4: e0345-0316.
  • Nagumo Y, Ueta Y, Nakayama H, Osaki H, Takeuchi Y, Uesaka N, Kano M, Miyata M (2020) Tonic GABAergic inhibition is essential for nerve injury-induced afferent remodeling in the somatosensory thalamus and associated ectopic sensations. Cell Rep 31: 107797.