Sovereign 8s.is mirror of standardgalactic/rscvp
  • Python 89.2%
  • Shell 4.4%
  • Jupyter Notebook 2.2%
  • C++ 1.8%
  • ImageJ Macro 1.3%
  • Other 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-03-19 23:24:24 +01:00
.idea deprecate rtd doc, move data desc to zenodo 2026-03-19 23:24:24 +01:00
bash save 2025-11-14 00:31:39 +01:00
colab update based on new sources 2026-01-13 15:28:40 +01:00
configs save 2025-11-10 09:21:57 +01:00
demo rm token and public demo dataset 2026-01-13 10:53:16 +01:00
docs/source/_static deprecate rtd doc, move data desc to zenodo 2026-03-19 23:24:24 +01:00
res nullable for fov schema 2025-11-09 14:42:58 +01:00
src/rscvp update based on new sources 2026-01-13 15:28:40 +01:00
test fix import 2026-01-12 00:27:28 +01:00
.gitignore init port by internal project 2025-05-07 14:22:47 +02:00
.python-version fix import 2026-01-12 00:27:28 +01:00
.readthedocs.yaml try uv build rtd 2025-10-29 11:36:23 +01:00
LICENSE add license and installtion pipeline 2025-05-08 11:40:31 +02:00
pyproject.toml fix import 2026-01-12 00:27:28 +01:00
README.md deprecate rtd doc, move data desc to zenodo 2026-03-19 23:24:24 +01:00
uv.lock fix import 2026-01-12 00:27:28 +01:00

rscvp

Anterior and posterior retrosplenial cortex form distinct visuospatial circuits in the mouse

Yu-Ting Wei et al., 2026. Nature Communications

DOI

Overview

This repository contains the complete analysis pipeline for the RSC (Retrosplenial Cortex) visuo-spatial project, including:

  • Two-photon calcium imaging analysis - Neural activity recordings during visual and spatial tasks
  • Anatomical tracing analysis - Retrograde tracing and CCF registration pipeline
  • Behavioral analysis - Virtual reality and head-fixed treadmill paradigms
  • Statistical modeling - Bayesian decoding, tuning curve analysis, and reliability metrics

Dependencies

This pipeline builds on:


How to set up in a local machine?

1. Clone or download the project locally

2. Create uv or conda environment

  • uv (recommended)
    # Create virtual environment
    uv venv

    # Activate environment
    source .venv/bin/activate         # Linux/macOS
    .venv\Scripts\activate           # Windows

    # Install package in development mode
    uv pip install -e .[all]
  • conda
    # Create conda environment with Python 3.10
    conda create -n rscvp python=3.11 -y

    # Activate environment
    conda activate rscvp

    # Install package in development mode
    pip install -e .[all]

Run Example in Google Colab

Physiology Dataset

Open In Colab

Histology Dataset

Open In Colab

Analysis Workflow

Physiological dataset

physiological_data_analysis_workflow.png

Histological dataset

histology_data_analysis_workflow.png

Code availability

  • Code for reproduce the paper figure are wei2026-v* git tagged
  • The archived code are accessible via DOI

Data Availability

All datasets are publicly available on Zenodo and Figshare with DOIs:

Example Dataset (Demo & Colab)

Zenodo Figshare

Contains:

  • Example two-photon imaging data (suite2p extracted)
  • Example behavioral data
  • Anatomical tracing results (CCF-registered)
  • Processed aggregated dataframes
  • Pre-computed analysis caches
  • SQL Database for session information

Note: The dataset is automatically downloaded when running demo scripts or Colab notebooks.

SQLite Database

rscvp_sql_schema.png

Citation

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

@article{wei2026rsc,
  title={Anterior and posterior retrosplenial cortex form distinct visuospatial circuits in the mouse},
  author={Wei, Yu-Ting and others},
  journal={Nature Communications},
  year={2026},
  doi={10.5281/zenodo.18234117}
}

Contact

Yu-Ting Wei Email: ytsimon2004@gmail.com GitHub: @ytsimon2004