Skip to content

This repository contains the code for analyzing single-cell electrophysiological recordings from the barrel cortex.

License

Notifications You must be signed in to change notification settings

Nishant-codex/single_cell_analysis

Repository files navigation

Single-Cell Electrophysiology Analysis & Clustering

Paper DOI License: MIT

This repository contains the analysis code, Jupyter notebooks, and extracted feature files accompanying the publication:

Neuronal Identity is Not Static—An Input-Driven Perspective, Nishant Joshi, Sven van Der Burg, Tansu Celikel, Fleur Zeldenrust, https://doi.org/10.1101/2024.10.16.618657


Overview

This project provides the computational workflows for analyzing single-cell electrophysiological recordings and reproduces the results presented in the associated paper.

Key methods and analyses:

  • Feature extraction from electrophysiological recordings
  • Model fitting using GLIF models (see https://github.com/Nishant-codex/GIFFittingToolbox/tree/master)
  • Clustering of single-cell responses across experimental conditions (ACSF vs. drug)
  • Dimensionality reduction: PCA, UMAP, and probabilistic CCA (pCCA)
  • Manifold alignment for comparing cell populations
  • MCFA for comparing extracted features for heterogeneity
  • Exploratory analyses of cluster stability, spike train metrics, and impedance profiles

Repository Structure

notebooks_acsf/        # Analysis under ACSF conditions
notebooks_drug/        # Analysis under drug conditions
residual_code/         # Exploratory / legacy notebooks and scripts
│   └── Infomation_transfer/   # Cluster analysis, PCA, UMAP, stability checks
LICENSE
README.md              # Project description and usage

Installation

Clone the repository and install dependencies:

git clone https://github.com/your-username/single_cell_analysis-clustering.git
cd single_cell_analysis-clustering
pip install -r requirements.txt

Alternatively, create a conda environment:

conda env create -f environment.yml
conda activate singlecell

Usage

To reproduce the analyses, open the Jupyter notebooks:

jupyter notebook notebooks_acsf/Clustering_attribute_sets.ipynb
  • notebooks_acsf/ → Main analysis for ACSF
  • notebooks_drug/ → Drug condition analysis
  • residual_code/ → Supplemental and exploratory analyses

Figures and results generated from these notebooks correspond directly to the analyses presented in the paper.


Workflow

Below is a simplified workflow of the analysis pipeline:

flowchart TD
    A[Raw Electrophysiology Data] --> B[Feature Extraction]
    B --> D[Clustering & Manifold Alignment]
	D --> E[Multi-set correlation and Factor Analysis]
    E --> F[Comparative Analysis: ACSF vs Drug]
    F --> G[Figures & Results]
Loading

Citation

If you use this code or workflows in your research, please cite:


@article {Joshi2024.10.16.618657,
	author = {Joshi, Nishant and van Der Burg, Sven and Celikel, Tansu and Zeldenrust, Fleur},
	title = {Neuronal Identity is Not Static{\textemdash}An Input-Driven Perspective},
	elocation-id = {2024.10.16.618657},
	year = {2025},
	doi = {10.1101/2024.10.16.618657},
	publisher = {Cold Spring Harbor Laboratory},
	journal = {bioRxiv}
}

License

This project is licensed under the MIT License.

About

This repository contains the code for analyzing single-cell electrophysiological recordings from the barrel cortex.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published