is a simulation and analysis framework for studying hippocampal place cells and evaluating the performance of spatial tuning metrics under controlled conditions. It allows researchers to generate synthetic neural data with customizable tuning properties, apply standard place cell detection methods, and visualize their behavior across varied parameter regimes.
-
Flexible Place Cell Simulation Generate synthetic neurons with configurable spatial tuning, peak firing rates, background activity, and noise.
-
Evaluation of Spatial Metrics Compare detection performance of spatial information, ANOVA, across simulated conditions.
-
Modular Design Code is organized into distinct modules for simulation, analysis, plotting, and utilities.
-
Reproducible Analysis Pipelines Includes Jupyter notebooks and figure scripts used for generating analyses and manuscript figures.
Simulates spike trains and tuning properties.
cells.py: Simulated place cell modelsnoise.py: Noise injection and variabilityplacefield.py: Place field generationparams.py: Parameter definitionsoccupancy.py: Occupancy simulationtrials.py: Simulating Trial Structurepeak.py: Place Cell Peak Modelsconfig.py: Centralized configuration file for simulation and analysis settings (e.g., default parameters).param_vals.py: Defines sets of parameter values and sweeps for systematic exploration of simulation conditions.
Functions for computing metrics and visualizing results.
methods.py: Visualize comparison between spatial info and ANOVA.firingrate.py: Visualize Firing rate.stats.py: Visualize parameter vs metric statstrial.py: Trial-level data visualizationscell.py: Single-cell visualizationssettings.py: Plotting configspca.py: Principal component analysis visualization
utils.py: Helper functions
- Defines helper functions and model specifications for running ANOVA-based spatial tuning analyses.
Step-by-step simulation pipelines and experiments.
00-Sim_PlaceField_Components.ipynb: Place field components01-Sim_PeakModels.ipynb: Peak modulation02-Sim_PlaceFields.ipynb: Complete field simulation03-Sim_Trials.ipynb: Trial-based spike generation04-Sim_Cells_wParam_Updates.ipynb: Parametric sweeps
Jupyter notebooks for generating main and supplemental figures:
FIGURE_1a_SimPlaceField.ipynb: Simulates and visualizes example single place fields (Figure 1a).FIGURE_5a_PlaceFieldSimulation.ipynb: Runs place field simulations across conditions (Figure 5a).FIGURE_5bc_SimParams.ipynb: Explores simulation parameters (e.g., tuning width, noise) and summarizes effects (Figures 5b, 5c).FIGURE_6a_PlaceFieldParams.ipynb: Analyzes place field parameters (e.g., peak rate, field size) and generates plots (Figure 6a).FIGURE_6bc_ParamsMethods.ipynb: Compares parameter estimation/statistical methods (Figures 6b, 6c).FIGURE_FeatureEstimate.ipynb: Computes feature estimates.FIGURE_PCA.ipynb: Performs PCA on simulated features to visualize high-dimensional relationships.
-
Clone the repository:
git clone https://github.com/HSNPipeline/SimPlaceCells cd SimPlaceCells -
Install dependencies:
pip install -r requirements.txt
- Analyze how tuning properties affect place cell detection.
- Test detection metrics across different parameter regimes.
- Visualize simulated rate maps, and tuning curves.
- Reproduce figures for publication or presentations.
For questions or contributions, please open an issue or contact the maintainers.