Skip to content

Humphries-Lab/Motor_Cortex_Simultaneous_Coding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motor_Cortex_Simultaneous_Coding

MATLAB code that generates the figures from the paper "Independent latent encoding of arm movement direction and extent in motor cortex"

Summary

The main objective of this code is to perform PCA on the neural activity of PMd and M1 recorded while non-human primates performed a sequential movement task (see Lawlor et al,. 2018 for a full description of the task). Movements and neural activity are binned into 32 conditions (4 duration bins and 8 direction bins). A full description of the datset format can be found here

Running the analysis

The script Main_analyses.m sets all the initial parameters and executes the code to perform PCA on all the neural recordings

  1. Download the folders Data and Code
  2. Set the Matlab Path to the folder Data
  3. Open Main_analyses.m and run adding to the path.

Expected output

This script generates 13 figures:

-7 figures from the main text (Figure 5 of the paper is divided into 2 Matlab figures)

-5 supplementary figures.

About

This code reproduces the figures from the paper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages