This repository accompanies the manuscript Disruption of theta-timescale spiking impairs learning but spares hippocampal replay (Joshi A, Comrie AE, Bray S, Mankili A, Guidera JA, et al., 2025).
It provides:
-
Ready-to-use scripts to process wideband data into LFP and spikes, and to perform spike sorting, clusterless decoding, and LFP analysis using Spyglass.
-
Tools to examine stimulus-driven entrainment and suppression, changes in pairwise correlations, spatial fields, theta sequences, replay, and learning.
-
Figure notebooks that reproduce the main and supplementary results.
Results demonstrate the effects of rhythmic and theta-phase-specific closed-loop optogenetic activation of medial septum parvalbumin-expressing neurons on hippocampal LFPs, spatiotemporal coding, and task learning.
Demo: Theta-phase-specific stimulation of medial septum PV neurons suppresses the rhythmicity of hippocampal ahead-behind sweeps of location during track traversal.
To install the package with custom analysis tables and run the associated notebooks (recommended), follow these steps:
- Clone the repository to your local system.
- Navigate to the cloned directory and run:
pip install .
Todo:
- PyPI release
If you want to apply the analysis pipelines to new datasets, you can install the package and use the custom tables together with your existing database and the spyglass ecosystem.
All raw data and derived results (e.g., spike sorting, LFP) will be made available through the DANDI archive (upcoming).
We also plan to release a Docker image that includes:
- a pre-built conda environment
- the notebooks from this repository, and
- a populated SQL database with all information needed to query and retrieve results from the DANDI archive.
(Docker build in progress)
-
non_local_detector: tools for clusterless decoding of hippocampal population activity.
-
spyglass: database framework for managing electrophysiology and behavioral data.
-
trodes: acquisition and stimulation software used in these experiments.
-
ndx-optogenetics: NWB extension for representing optogenetic stimulation protocols and metadata.
-
ndx-franklab-novela: Frank Lab–specific NWB extension for storing lab-specific data in NWB/DANDI.
| Animal | Alias | Targeted |
|---|---|---|
| Winnie | V | 1 |
| Frodo | F | 1 |
| Totoro | T | 1 |
| Banner | B | 1 |
| Odins | O | 1 |
| Wallie | W | 0 |
| Olive | L | 0 |
| Yoshi | Y | 0 |
| Bilbo | I | 0 |
