Skip to content

Applying TCA on neuronal recording code repo used in UoE dissertation 2021

License

Notifications You must be signed in to change notification settings

ttansuwan/tca-attention-switching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Applying Tensor Decomposition Methods to Neural Population Recordings

The goal of this project is to apply tensor decomposition methods to data recorded from populations of neurons in visual cortex of mice as they switch between a visual discrimination task and an olfactory discrimination task. We mainly observed the structure identified by the TCA method and its implications for how task-switching influence neuronal population activity in visual cortex.

Installation

Install the dependencies of this project via requirements.txt.

pip install -r requirements.txt

Usage

Preprocess data tensor

python3 preprocess/run.py 

Run TCA

python3 tca_run/run.py --replicates_no {int} --no_components {int} --save_data_dir {str} --data_dir {str} --tca 

Run TCA cross validation

python3 tca_run/run.py --replicates_no {int} --no_components {int} --save_data_dir {str} --data_dir {str} --cross_val

Refitting

python3 tca_run/refitting.py --processed_dir {str}--data_dir {str} --mouse_no {int}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Acknowlegments

Thank you Angus Chadwick for supporting me throughout my thesis process and UoE for giving me an opportunity to study there for my master.

This project mainly used tensortools, and hypothesize based on this paper.

Resources

My slides are available here. I sometimes update the slides so please check for any updates and the thesis is available in this github.

The data tested on this project is not publicly available.

License

MIT

About

Applying TCA on neuronal recording code repo used in UoE dissertation 2021

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages