SortingRhino
In this guide, we outline information needed to run automatic sorting and manual selection of Combinato on Rhino.
Overview
Raw neural data is typically very large. Spike sorting can be a computationally expensive process as well.
Maintaining an organized server with the data as well as computation resources is crucial.
As of 2025, the Jacobs lab uses UPenn’s Rhino to organize its data, run preprocessing and analyses. Using Rhino to sort data is not straightforward, but the access to the resources pays off - so bare with us!
While the current guide is specific to Rhino, it may be useful to those with other SLURM servers.
Resources
This template assumes you have access to a Windows or Apple computer. Their operating systems interact differently with Rhino. This is especially important for the manual selection step.
Installing Combinato
For tutorials and documentation, see the Wiki
Clone the repository
We strongly suggest that cloning the HSNPipeline combinato fork instead of the original repo: git clone https://github.com/HSNPipeline/combinato.git
Set up your environment
Option 1 (recommended)
conda create -n combinato python=3.7.4
conda activate combinato
conda install scipy==1.3.1 matplotlib==3.1.1
Option 2
conda env create -f combinato_environment.yml
Install
First navigate to where you git cloned your repo to, then:
python3 setup_options.py
GUI Set Up
To manually curate the automatically sorted neural data, you need to let Rhino access your display resources, which can then be used by the combinato GUI.
As mentioned, to set this access, Windows and MacOS systems work differently.
Windows
Instructions adapted from here:
- Install xming and set it up
- Install putty (recommended: follow the instructions here)
- Open putty
- Write
rhino2.psych.upenn.eduas the host - Go to SSH/X11 (in blue) and set X11 forwarding
- Go to (in red) “Authentication parameters”>”Browse…” >”Private key file for authentication”
- Locate your “id_rsa.ppk” private key and click “Open”
- Set
DISPLAY 127.0.0.1:0.0
We recommend saving those session settings to putty so that you don’t have to input them every time you want to use the combinato GUI.
Putty then will prompt you to input your Rhino username, password, then duo code (just as a terminal ssh would).
Mac
- Install XQuartz 2.8.0 / 2.8.1 on your mac
- Run on mac terminal
write org.xquartz.X11 enable_iglx -bool YES - Run on rhino
export LIBGL_ALWAYS_INDIRECT=1
GUI Usage
Once your files are split, and you ran the automatic sorting, you need to manually sort. To do so, you need to open the combinato GUI. Once more, a Windows and a Mac will need different strategies.
Windows
- Open Xming (nothing should happen, just the xming icon should appear at the bottom right of your screen)
- Open putty
- Load your saved Rhino settings (or go back to GUI Set Up and follow the steps)
- Login
- Navigate to the parent folder where your channel folders with the automatically sorted data is.
css-gui
Mac
- ssh into rhino with the
-Xtag.ssh -X $USER@rhino2.psych.upenn.edu - Login
- Navigate to the parent folder where your channel folders with the automatically sorted data is.
css-gui