TravNet is a suite of functions to fully automate the seperation of neurons from noise. It uses preprocessing to take a binary data file and convert it to a waveblob (waveforms and their corresponding principal components). The waveblobs are then sorted using a pretrained convolutional neural network, trained on human sorted batches. The output is a file containing the waveforms corresponding cluster ID (neuron template), and timestamp.
You can follow the steps below to quickly get up and running with TravNet models.
-
Create a conda env
-
In the top-level directory run:
pip install -e .
-
To download model weights and sample data:
python3 download_samples.py
-
Once the model weights and data are available you can run the model using the command below:
python3 example_sorter.py