Skip to content

realwsq/brainwide-RRR-encoding-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brainwide-RRR-encoding-model

Overview

This project implements a simple but efficient linear encoding model for describing the single-neuron, task-driven responses. See (Methods of) [1] for detailed information about the implemented encoding model.

Current Status

The core functions are implemented in RRRGD.py and RRRGD_main_CV.py.

If you are interested in fitting the model to your data, you can check the example0 folder for a minimum, toy example of fitting a reduced-rank regression (RRR) encoding model to an example IBL session with 100 trials. I attached the data in the example0 folder so that you can run the code directly and get a hands-on experience.

If you are interested in fitting the model to IBL data, you can check the example1 folder for a comprehansive example of fitting a reduced-rank regression (RRR) encoding model to a large dataset including 100+ session Neuropixels recordings of 10,000+ neurons.

In case you have any questions, please get in touch with me: shuqi.wang@epfl.ch

References:

[1] Posani, L., Wang, S., Muscinelli, S. P., Paninski, L., & Fusi, S. (2025). Rarely categorical, always high-dimensional: how the neural code changes along the cortical hierarchy. bioRxiv, 2024-11.

About

Simple yet efficient linear encoding model.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages