How to compute the features for a probe
This guide shows you how to compute the per-channel electrophysiology features that the Channel Prediction models run on.
Prerequisites
The
ephysatlasextra installed (see How to install the optional extras).The raw SpikeGLX AP and LF files of the probe (
.binor.cbin), each with its.metafile.
Steps
Compute the features with
ibleatools, following its guide How to compute features from SpikeGLX AP/LF files. It gives a table of features with one row per channel.Save the table as a parquet file, for example
df.to_parquet('/path/to/probe00/features.pqt'). Parquet keeps the table’s attributes, including the features’ vintage (features_version), which the GUI checks against the model.Repeat for every probe you want to run the models on.
Point the GUI at the file (see How to give each shank its features file).
Note
The published models need all four feature families. The waveforms family needs the full
install of ibleatools (ibleatools[full]). The feature computation also assumes a single-shank
probe: on a multi-shank recording some features can fail or mix the shanks.
The features must be of the vintage the model was trained on. If they are not, see How to fix a feature vintage mismatch.