Software Open Access

Pyret: A Python package for analysis of neurophysiology data

Naecker, Benjamin; Maheswaranathan, Niru; Ganguli, Surya; Baccus, Stephen

The pyret package contains tools for analyzing neural electrophysiology data.
It focuses on applications in sensory neuroscience, broadly construed as any experiment in which one would like to characterize neural responses to a sensory stimulus. Pyret contains methods for manipulating spike trains (e.g. binning and smoothing), pre-processing experimental stimuli (e.g. resampling), computing spike-triggered averages and ensembles, estimating linear-nonlinear cascade models to predict neural responses to different stimuli, part of which follows the scikit-learn API, as well as a suite of visualization tools for all the above. We designed pyret to be simple, robust, and efficient with broad applicability across a range of sensory neuroscience analyses.

Full API documentation and a short tutorial can be found at

-- NORMAL --

Files (6.4 MB)
Name Size
6.4 MB Download
All versions This version
Views 1515
Downloads 00
Data volume 0 Bytes0 Bytes
Unique views 1313
Unique downloads 00


Cite as