BinConverter is a Python Graphical User Interface (GUI) that converts the raw data (.bin) recorded from Axona's DacqUSB1 to the Tint format. Although you can perform a conversion from .bin to Tint using the DacqUSB software provided by Axona (this will use whichever threshold was set during the recording), BinConverter was designed so that we could retroactively decide on a threshold based upon statistical analysis of the entirety of the session (standard deviation).
When recording using the DacqUSB you must decide on a threshold before you begin the recording. You are essentially deciding on a threshold based off of the spike data you visualize in the DacqUSB software at that point in time. You do not have the whole picture, nor do you know what is going to happen to this signal during the recording. Therefore, I made BinConverter, as a way so that the user can choose a threshold based off statistical analysis (# of standard deviations from the mean). This provides a more standardized thresholding method instead of choosing an arbitrary threshold value at the beginning of the session.
Python: This code was written using Python 3.7, however the compatibility really only depends on PyQt5, which requires Python 2.6+. This was written in Python 3 so I suggest getting the latest version of Python2. 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).
- Operating System: BinConverter does not technically have any Operating System (OS) requirements. However you have the ability to sort the newly converted data using Tint (KlustaKwik), and Tint does require Windows3. Some Linux users have been starting to use this, so I have been working out any bugs that maybe be caused by Linux. The .set file is encoded in cp1252, which Python does not default to when reading text files.
- BinConverter allows you to use BatchTINTV34 to sort the newly converted data. For this functionality to work properly you need to first ensure that you have Tint downloaded, and that this version has the command line interface (might need to e-mail Jim from Axona for that).
- Once Tint is downloaded, you will also need to ensure that the Tint file-path is added to the Path environmental variable, this will prevent any
'tint' is not recognized as an internal or external command, operable program or batch file.errors raised from the Command Prompt. To add the Tint filepath perform the following:
- Navigate to the Environment Variables window (Control Panel -> System -> Advanced System Settings -> Environmental Variables)
- Edit the "Path" option in the System Variables list
- Add the file-path to tint.exe to this list, an example would be the following:
C:\Program Files (x86)\Axona\Tint
- I have uploaded BinConverter as a PyPI package, therefore you can simply use the
pipmodule to install, for example:
python -m pip install BinConverter
- Now you can launch the GUI using the following command:
python -m BinConverter
- Alternatively the code exists in a GitHub repository5 so you can install using the following command:
git clone "https://github.com/HussainiLab/BinConverter.git"
- Axona's Company Website: http://www.axona.com
- Python Downloads: https://www.python.org/downloads/
- Axona's Compatible Operating Systems: http://axona.com/support/faq#S1
- BatchTINTV3 Project: https://geba.technology/project/batchtintv3
- BinConverter GitHub Repository: https://github.com/HussainiLab/BinConverter