BatchTINTV3 - Batch Spike Sorting Solution for Tint Draft

Posted by Geoff, Published: 4 years, 11 months ago (Updated: 4 years, 11 months ago)

A few years ago (starting in May of 2016) I was tasked with optimizing the way electrophysiology (ephys) data is sorted in the lab. If you happen to be using Axona's1 dacqUSB in order to record ephys data, then this might be a project you are interested in. Back in 2016, Axona provided an update (Version 4.3 of Tint), which allowed users to run Tint in the background via the Command Prompt (CMD). BatchTINTV3 leverages this functionality to batch sort the ephys data using Tint's builtin KlustaKwik method.

Requirements

  • Operating System (OS): BatchTINTV3 does not necessarily have any OS requirements, however Tint requires Windows. Thus I will recommend using Windows. Axona lists their compatible Windows versions2, however I do not believe the list is complete. I run Tint on Windows 10 perfectly fine.
  • Python: this code was written using Python 3.7, however this compatibility really only relies on PyQt5, which requires Python 2.6+. Like I said, this was written in Python 3 so I suggest getting the latest version of Python3. It will make the installation process easier as PyQt5 used to be a pain to download in the older versions (3.4 for example). If you happen to have problems downloading PyQ5t, you will need to search for a wheel (.whl) file for PyQt5 for your version (of Python and OS).

Python Dependencies

  1. BatchTINTV3
  2. PyQt5
  3. PyQt5-sip

Installation

  1. Ensure that you have Tint downloaded, and that the Tint filepath is added to the Path environmental variable
    1. Navigate to the Environment Variables window (Control Panel -> System -> Advanced System Settings -> Environmental Variables)
    2. Edit the "Path" option in the System Variables list
    3. Add the filepath to tint.exe to this list, an example would be the following:
      C:\Program Files (x86)\Axona\Tint​
  2. I have uploaded BatchTINTV3 to PyPI, so you can install BatchTINTV3 using pip by performing the following command (case sensitive): python -m pip install BatchTINTV3​​
  3. Now if you have installed it correctly you should be able to launch the GUI using the following command:
    python -m BatchTINTV3​
    • If you have successfully opened BatchTINTV3 then you should see a main window that looks like the following below:
  4. Alternatively, I have uploaded the code to a GitHub repository4 so you can install using git with the following git command:
    git clone "https://github.com/HussainiLab/BatchTINTV3.git"
    Note: this command will download the Python package in whichever directory you are in within the command prompt.

References

  1. Axona's Company Website: http://www.axona.com
  2. Axona's Compatible Operating Systems: http://axona.com/support/faq#S1
  3. Python Downloads: https://www.python.org/downloads/
  4. BatchTINTV3 GitHub Repository: https://github.com/HussainiLab/BatchTINTV3

Project Contents

BatchTINTV3 User Guide Draft

Getting Started:

  1. Launch BatchTINTV3. Once you launch the GUI you should see a window with the title "BatchTINT - Main Window", pictured below.
  2. Choose a directory. Near the upper left portion of the Main Window lives a "Choose Directory" button. Adjacent to this button is a text field that states the directory that will be analyzed by this GUI. If this is the first time you have launched BatchTINTV3 you will likely see text in this field that states something to the effect of "Choose a …

Read More →

Comments

Post Comment